Skip to content

Commit

Permalink
PDFium version v101.0.4915.0 chromium/4915 [master]
Browse files Browse the repository at this point in the history
+public static int FPDF_StructElementGetMarkedContentIdCount(global::PDFiumCore.FpdfStructelementT struct_element)
+public static int FPDF_StructElementGetMarkedContentIdAtIndex(global::PDFiumCore.FpdfStructelementT struct_element, int index)
  • Loading branch information
DJGosnell committed Feb 28, 2022
1 parent 9f37571 commit 14b748e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 6 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/net5.0/PDFiumCoreBindingsGenerator.dll 60018834 false
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net5.0/PDFiumCoreBindingsGenerator.dll 60579847 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>101.0.4901.0</Version>
<Version>101.0.4915.0</Version>
</PropertyGroup>
</Project>
47 changes: 43 additions & 4 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/4901
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/60018834
// PDFium version v101.0.4901.0 chromium/4901 [master]
// Built on: Mon, 21 Feb 2022 15:38:56 GMT
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/4915
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/60579847
// PDFium version v101.0.4915.0 chromium/4915 [master]
// Built on: Mon, 28 Feb 2022 19:59:32 GMT
// ----------------------------------------------------------------------------
// <auto-generated>
// This is autogenerated code by CppSharp.
Expand Down Expand Up @@ -3151,6 +3151,7 @@ public static void FPDF_SetSandBoxPolicy(uint policy, int enable)
/// <para>Return value:</para>
/// <para>A handle to the loaded document, or NULL on failure.</para>
/// <para>Comments: Loaded document can be closed by FPDF_CloseDocument(). If this function fails, you can use FPDF_GetLastError() to retrieve the reason why it failed.</para>
/// <para>The encoding for |file_path| is UTF-8.</para>
/// <para>The encoding for |password| can be either UTF-8 or Latin-1. PDFs, depending on the security handler revision, will only accept one or the other encoding. If |password|'s encoding and the PDF's expected encoding do not match, FPDF_LoadDocument() will automatically convert |password| to the other encoding.</para>
/// </summary>
public static global::PDFiumCore.FpdfDocumentT FPDF_LoadDocument(string file_path, string password)
Expand Down Expand Up @@ -12262,6 +12263,12 @@ public partial struct __Internal

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDF_StructElement_Attr_GetBlobValue", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDF_StructElementAttrGetBlobValue(__IntPtr struct_attribute, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string name, __IntPtr buffer, uint buflen, uint* out_buflen);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDF_StructElement_GetMarkedContentIdCount", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDF_StructElementGetMarkedContentIdCount(__IntPtr struct_element);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDF_StructElement_GetMarkedContentIdAtIndex", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDF_StructElementGetMarkedContentIdAtIndex(__IntPtr struct_element, int index);
}

/// <summary>
Expand Down Expand Up @@ -12735,6 +12742,38 @@ public static int FPDF_StructElementAttrGetBlobValue(global::PDFiumCore.FpdfStru
return __ret;
}
}

/// <summary>
/// <para>Function: FPDF_StructElement_GetMarkedContentIdCount</para>
/// <para>Get the count of marked content ids for a given element.</para>
/// <para>Parameters:</para>
/// <para>struct_element - Handle to the struct element.</para>
/// <para>Return value:</para>
/// <para>The count of marked content ids or -1 if none exists.</para>
/// </summary>
public static int FPDF_StructElementGetMarkedContentIdCount(global::PDFiumCore.FpdfStructelementT struct_element)
{
var __arg0 = struct_element is null ? __IntPtr.Zero : struct_element.__Instance;
var __ret = __Internal.FPDF_StructElementGetMarkedContentIdCount(__arg0);
return __ret;
}

/// <summary>
/// <para>Function: FPDF_StructElement_GetMarkedContentIdAtIndex</para>
/// <para>Get the marked content id at a given index for a given element.</para>
/// <para>Parameters:</para>
/// <para>struct_element - Handle to the struct element.</para>
/// <para>index - The index of the marked content id, 0-based.</para>
/// <para>Return value:</para>
/// <para>The marked content ID of the element. If no ID exists, returns</para>
/// <para>-1.</para>
/// </summary>
public static int FPDF_StructElementGetMarkedContentIdAtIndex(global::PDFiumCore.FpdfStructelementT struct_element, int index)
{
var __arg0 = struct_element is null ? __IntPtr.Zero : struct_element.__Instance;
var __ret = __Internal.FPDF_StructElementGetMarkedContentIdAtIndex(__arg0, index);
return __ret;
}
}

public unsafe partial class FPDF_SYSFONTINFO : IDisposable
Expand Down

0 comments on commit 14b748e

Please sign in to comment.