-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No longer generates csproj file, but takes the runtimes and exports t…
…hem to the PDFiumCore project in the src directory. Added RenderFlags. Added ignores to prevent committing of binary or generated files.
- Loading branch information
Showing
8 changed files
with
109 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/src/PDFiumCore/PDFiumCore.cs | ||
PDFium-LICENSE | ||
/output | ||
PDFium.cs | ||
pdfium.so | ||
pdfium.dylib | ||
pdfium.dll |
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,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/Dtronix/PDFiumCore</PackageProjectUrl> | ||
<Description>PDFiumCore is a wrapper to generate pinvoke bindings to allow for usage in all languages which support .NET Standard 2.1. Includes the runtime native binary files for Linux, OSX & Windows.</Description> | ||
<PackageTags>pinvoke dotnet interop pdf pdfium</PackageTags> | ||
<RepositoryUrl>https://github.com/Dtronix/PDFiumCore</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<Authors>DJGosnell</Authors> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="runtimes/**" PackagePath="runtimes" /> | ||
</ItemGroup> | ||
</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,59 @@ | ||
using System; | ||
|
||
namespace PDFiumCore | ||
{ | ||
[Flags] | ||
public enum RenderFlags | ||
{ | ||
/// <summary> | ||
/// FPDF_ANNOT: Set if annotations are to be rendered. | ||
/// </summary> | ||
RenderAnnotations = 0x01, | ||
|
||
/// <summary> | ||
/// FPDF_LCD_TEXT: Set if using text rendering optimized for LCD display. This flag will only take effect if anti-aliasing is enabled for text. | ||
/// </summary> | ||
OptimizeTextForLcd = 0x02, | ||
|
||
/// <summary> | ||
/// FPDF_NO_NATIVETEXT: Don't use the native text output available on some platforms | ||
/// </summary> | ||
NoNativeText = 0x04, | ||
|
||
/// <summary> | ||
/// FPDF_GRAYSCALE: Grayscale output | ||
/// </summary> | ||
Grayscale = 0x08, | ||
|
||
/// <summary> | ||
/// // FPDF_RENDER_LIMITEDIMAGECACHE: Limit image cache size | ||
/// </summary> | ||
LimitImageCacheSize = 0x200, | ||
|
||
/// <summary> | ||
/// FPDF_RENDER_FORCEHALFTONE: Always use halftone for image stretching | ||
/// </summary> | ||
ForceHalftone = 0x400, | ||
|
||
/// <summary> | ||
/// FPDF_PRINTING: Render for printing | ||
/// </summary> | ||
RenderForPrinting = 0x800, | ||
|
||
/// <summary> | ||
/// FPDF_RENDER_NO_SMOOTHTEXT: Set to disable anti-aliasing on text. This flag will also disable LCD optimization for text rendering | ||
/// </summary> | ||
DisableTextAntialiasing = 0x1000, | ||
|
||
|
||
/// <summary> | ||
/// FPDF_RENDER_NO_SMOOTHIMAGE: Set to disable anti-aliasing on images. | ||
/// </summary> | ||
DisableImageAntialiasing = 0x2000, | ||
|
||
/// <summary> | ||
/// FPDF_RENDER_NO_SMOOTHPATH: Set to disable anti-aliasing on paths. | ||
/// </summary> | ||
DisablePathAntialiasing = 0x4000 | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
src/PDFiumCoreBindingsGenerator/build.bat → ...umCoreBindingsGenerator/CreatePackage.bat
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
PDFiumCoreBindingsGenerator.exe "https://api.github.com/repos/bblanchon/pdfium-binaries/releases/latest" "0" >> build.log | ||
PDFiumCoreBindingsGenerator.exe "https://api.github.com/repos/bblanchon/pdfium-binaries/releases/latest" "0" | ||
pause |
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