-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add separate project for iTextSharp pdf text extractor. * Add readme and itextsharp dll to the package.
- Loading branch information
Showing
12 changed files
with
297 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
#if DEBUG | ||
[assembly: AssemblyTitle("SenseNet.TextExtractors.Pdf (Debug)")] | ||
#else | ||
[assembly: AssemblyTitle("SenseNet.TextExtractors.Pdf (Release)")] | ||
#endif | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("Sense/Net Inc.")] | ||
[assembly: AssemblyCopyright("Copyright © Sense/Net Inc.")] | ||
[assembly: AssemblyProduct("sensenet iTextSharp PDF text extractor")] | ||
[assembly: AssemblyTrademark("Sense/Net Inc.")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
[assembly: AssemblyVersion("7.0.0.0")] | ||
[assembly: AssemblyFileVersion("7.0.0.0")] | ||
[assembly: AssemblyInformationalVersion("7.0.0.0")] | ||
|
||
[assembly: ComVisible(false)] | ||
[assembly: Guid("67ec265e-a47c-4939-aad3-a405eec062f9")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## iTextSharp text extractor for sensenet | ||
This is a legacy package containing a PDF text extractor for sensenet, built on the last free version of _iTextSharp_. The package is built on the .Net Framework so cannot be used in a .Net Core environment. | ||
|
||
## Usage | ||
Install the following NuGet package: | ||
|
||
[![NuGet](https://img.shields.io/nuget/v/SenseNet.TextExtractors.Pdf.svg)](https://www.nuget.org/packages/SenseNet.TextExtractors.Pdf) | ||
|
||
To configure the text extractor, please go to the `Indexing` settings in the Content Repository and set the following class for the `pdf` extension. | ||
|
||
```json | ||
{ | ||
"TextExtractors": { | ||
"pdf": "SenseNet.TextExtractors.Pdf.iTextSharpPdfTextExtractor" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{67EC265E-A47C-4939-AAD3-A405EEC062F9}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>SenseNet.TextExtractors.Pdf</RootNamespace> | ||
<AssemblyName>SenseNet.TextExtractors.Pdf</AssemblyName> | ||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="itextsharp"> | ||
<HintPath>..\References\itextsharp.dll</HintPath> | ||
</Reference> | ||
<Reference Include="SenseNet.Tools, Version=3.1.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\SenseNet.Tools.3.1.0\lib\netstandard2.0\SenseNet.Tools.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Configuration" /> | ||
<Reference Include="System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\System.Configuration.ConfigurationManager.4.5.0\lib\net461\System.Configuration.ConfigurationManager.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Data.OracleClient" /> | ||
<Reference Include="System.Diagnostics.EventLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\System.Diagnostics.EventLog.4.5.0\lib\net461\System.Diagnostics.EventLog.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Net" /> | ||
<Reference Include="System.Security.AccessControl, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\System.Security.AccessControl.4.5.0\lib\net461\System.Security.AccessControl.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Security.Permissions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\System.Security.Permissions.4.5.0\lib\net461\System.Security.Permissions.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Security.Principal.Windows, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\System.Security.Principal.Windows.4.5.0\lib\net461\System.Security.Principal.Windows.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.ServiceProcess" /> | ||
<Reference Include="System.Transactions" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="iTextSharpPdfTextractor.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="app.config" /> | ||
<None Include="packages.config" /> | ||
<None Include="Readme.md" /> | ||
<None Include="SenseNet.TextExtractors.Pdf.nuspec" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\ContentRepository\SenseNet.ContentRepository.csproj"> | ||
<Project>{786e6165-ca02-45a9-bf58-207a45d7d6df}</Project> | ||
<Name>SenseNet.ContentRepository</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>SenseNet.TextExtractors.Pdf</id> | ||
<version>7.0.0</version> | ||
<title>sensenet iTextSharp pdf text extractor</title> | ||
<authors>kavics,tusmester</authors> | ||
<owners>Sense/Net</owners> | ||
<licenseUrl>https://github.com/SenseNet/sensenet/blob/master/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/SenseNet/sensenet</projectUrl> | ||
<iconUrl>https://raw.githubusercontent.com/SenseNet/sn-resources/master/images/sn-icon/sensenet-icon-64.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Legacy iTextSharp PDF text extractor for the sensenet platform.</description> | ||
<releaseNotes>See release notes on GitHub.</releaseNotes> | ||
<copyright>Copyright © Sense/Net Inc.</copyright> | ||
<tags>sensenet ecm ecms pdf textextractor</tags> | ||
<dependencies> | ||
<dependency id="SenseNet.Services" version="7.5.1.3" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="bin\Release\itextsharp.*" target="lib\net461" /> | ||
<file src="bin\Release\SenseNet.TextExtractors.Pdf.*" target="lib\net461" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
Oops, something went wrong.