Skip to content

Commit

Permalink
PDFium version v123.0.6309.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DJGosnell committed Feb 19, 2024
1 parent 2683d05 commit d6226eb
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 15 deletions.
2 changes: 1 addition & 1 deletion download_package.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dotnet build src/PDFiumCoreBindingsGenerator/PDFiumCoreBindingsGenerator.csproj -c Release
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 137923693 false
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 142657744 false
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>122.0.6259.0</Version>
<Version>123.0.6309.0</Version>
</PropertyGroup>
</Project>
52 changes: 39 additions & 13 deletions src/PDFiumCore/PDFiumCore.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6259
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/137923693
// PDFium version v122.0.6259.0 chromium/6259 [master]
// Built on: Thu, 25 Jan 2024 16:08:05 GMT
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6309
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/142657744
// PDFium version v123.0.6309.0 chromium/6309 [master]
// Built on: Mon, 19 Feb 2024 22:35:48 GMT
// ----------------------------------------------------------------------------
// <auto-generated>
// This is autogenerated code by CppSharp.
Expand Down Expand Up @@ -9492,6 +9492,9 @@ public partial struct __Internal
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFText_LoadStandardFont", CallingConvention = __CallingConvention.Cdecl)]
internal static extern __IntPtr FPDFTextLoadStandardFont(__IntPtr document, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string font);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFText_LoadCidType2Font", CallingConvention = __CallingConvention.Cdecl)]
internal static extern __IntPtr FPDFTextLoadCidType2Font(__IntPtr document, byte* font_data, uint font_data_size, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string to_unicode_cmap, byte* cid_to_gid_map_data, uint cid_to_gid_map_data_size);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFTextObj_GetFontSize", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFTextObjGetFontSize(__IntPtr text, float* size);

Expand Down Expand Up @@ -10998,14 +11001,14 @@ public static int FPDFTextSetCharcodes(global::PDFiumCore.FpdfPageobjectT text_o

/// <summary>
/// <para>Returns a font object loaded from a stream of data. The font is loaded</para>
/// <para>into the document.</para>
/// <para>document - handle to the document.</para>
/// <para>data - the stream of data, which will be copied by the font object.</para>
/// <para>size - size of the stream, in bytes.</para>
/// <para>font_type - FPDF_FONT_TYPE1 or FPDF_FONT_TRUETYPE depending on the font</para>
/// <para>type.</para>
/// <para>cid - a boolean specifying if the font is a CID font or not.</para>
/// <para>The loaded font can be closed using FPDFFont_Close.</para>
/// <para>into the document. Various font data structures, such as the ToUnicode data,</para>
/// <para>are auto-generated based on the inputs.</para>
/// <para>document - handle to the document.</para>
/// <para>data - the stream of font data, which will be copied by the font object.</para>
/// <para>size - the size of the font data, in bytes.</para>
/// <para>font_type - FPDF_FONT_TYPE1 or FPDF_FONT_TRUETYPE depending on the font type.</para>
/// <para>cid - a boolean specifying if the font is a CID font or not.</para>
/// <para>The loaded font can be closed using FPDFFont_Close().</para>
/// <para>Returns NULL on failure</para>
/// </summary>
public static global::PDFiumCore.FpdfFontT FPDFTextLoadFont(global::PDFiumCore.FpdfDocumentT document, byte* data, uint size, int font_type, int cid)
Expand All @@ -11023,7 +11026,7 @@ public static int FPDFTextSetCharcodes(global::PDFiumCore.FpdfPageobjectT text_o
/// <para>for example 'Helvetica-BoldItalic'.</para>
/// <para>document - handle to the document.</para>
/// <para>font - string containing the font name, without spaces.</para>
/// <para>The loaded font can be closed using FPDFFont_Close.</para>
/// <para>The loaded font can be closed using FPDFFont_Close().</para>
/// <para>Returns NULL on failure.</para>
/// </summary>
public static global::PDFiumCore.FpdfFontT FPDFTextLoadStandardFont(global::PDFiumCore.FpdfDocumentT document, string font)
Expand All @@ -11034,6 +11037,29 @@ public static int FPDFTextSetCharcodes(global::PDFiumCore.FpdfPageobjectT text_o
return __result0;
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Returns a font object loaded from a stream of data for a type 2 CID font. The</para>
/// <para>font is loaded into the document. Unlike FPDFText_LoadFont(), the ToUnicode</para>
/// <para>data and the CIDToGIDMap data are caller provided, instead of auto-generated.</para>
/// <para>document - handle to the document.</para>
/// <para>font_data - the stream of font data, which will be copied by</para>
/// <para>the font object.</para>
/// <para>font_data_size - the size of the font data, in bytes.</para>
/// <para>to_unicode_cmap - the ToUnicode data.</para>
/// <para>cid_to_gid_map_data - the stream of CIDToGIDMap data.</para>
/// <para>cid_to_gid_map_data_size - the size of the CIDToGIDMap data, in bytes.</para>
/// <para>The loaded font can be closed using FPDFFont_Close().</para>
/// <para>Returns NULL on failure.</para>
/// </summary>
public static global::PDFiumCore.FpdfFontT FPDFTextLoadCidType2Font(global::PDFiumCore.FpdfDocumentT document, byte* font_data, uint font_data_size, string to_unicode_cmap, byte* cid_to_gid_map_data, uint cid_to_gid_map_data_size)
{
var __arg0 = document is null ? __IntPtr.Zero : document.__Instance;
var __ret = __Internal.FPDFTextLoadCidType2Font(__arg0, font_data, font_data_size, to_unicode_cmap, cid_to_gid_map_data, cid_to_gid_map_data_size);
var __result0 = global::PDFiumCore.FpdfFontT.__GetOrCreateInstance(__ret, false);
return __result0;
}

/// <summary>
/// <para>Get the font size of a text object.</para>
/// <para>text - handle to a text.</para>
Expand Down

0 comments on commit d6226eb

Please sign in to comment.