Skip to content

Commit

Permalink
PDFium version v125.0.6378.0 chromium/6378 [master]
Browse files Browse the repository at this point in the history
+public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotGetFileAttachment(global::PDFiumCore.FpdfAnnotationT annot)
+public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotAddFileAttachment(global::PDFiumCore.FpdfAnnotationT annot, ref ushort name)
  • Loading branch information
DJGosnell committed Mar 27, 2024
1 parent d6226eb commit 0f3f600
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 7 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 142657744 false
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 148145837 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>123.0.6309.0</Version>
<Version>125.0.6378.0</Version>
</PropertyGroup>
</Project>
55 changes: 50 additions & 5 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/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
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6378
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/148145837
// PDFium version v125.0.6378.0 chromium/6378 [master]
// Built on: Wed, 27 Mar 2024 15:55:45 GMT
// ----------------------------------------------------------------------------
// <auto-generated>
// This is autogenerated code by CppSharp.
Expand Down Expand Up @@ -4495,13 +4495,20 @@ public partial struct __Internal

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_SetURI", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFAnnotSetURI(__IntPtr annot, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string uri);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_GetFileAttachment", CallingConvention = __CallingConvention.Cdecl)]
internal static extern __IntPtr FPDFAnnotGetFileAttachment(__IntPtr annot);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_AddFileAttachment", CallingConvention = __CallingConvention.Cdecl)]
internal static extern __IntPtr FPDFAnnotAddFileAttachment(__IntPtr annot, ushort* name);
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Check if an annotation subtype is currently supported for creation.</para>
/// <para>Currently supported subtypes:</para>
/// <para>- circle</para>
/// <para>- fileattachment</para>
/// <para>- freetext</para>
/// <para>- highlight</para>
/// <para>- ink</para>
Expand Down Expand Up @@ -5666,6 +5673,39 @@ public static int FPDFAnnotSetURI(global::PDFiumCore.FpdfAnnotationT annot, stri
var __ret = __Internal.FPDFAnnotSetURI(__arg0, uri);
return __ret;
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Get the attachment from |annot|.</para>
/// <para>annot - handle to a file annotation.</para>
/// <para>Returns the handle to the attachment object, or NULL on failure.</para>
/// </summary>
public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotGetFileAttachment(global::PDFiumCore.FpdfAnnotationT annot)
{
var __arg0 = annot is null ? __IntPtr.Zero : annot.__Instance;
var __ret = __Internal.FPDFAnnotGetFileAttachment(__arg0);
var __result0 = global::PDFiumCore.FpdfAttachmentT.__GetOrCreateInstance(__ret, false);
return __result0;
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Add an embedded file with |name| to |annot|.</para>
/// <para>annot - handle to a file annotation.</para>
/// <para>name - name of the new attachment.</para>
/// <para>Returns a handle to the new attachment object, or NULL on failure.</para>
/// </summary>
public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotAddFileAttachment(global::PDFiumCore.FpdfAnnotationT annot, ref ushort name)
{
var __arg0 = annot is null ? __IntPtr.Zero : annot.__Instance;
fixed (ushort* __name1 = &name)
{
var __arg1 = __name1;
var __ret = __Internal.FPDFAnnotAddFileAttachment(__arg0, __arg1);
var __result0 = global::PDFiumCore.FpdfAttachmentT.__GetOrCreateInstance(__ret, false);
return __result0;
}
}
}

[SuppressUnmanagedCodeSecurity, UnmanagedFunctionPointer(__CallingConvention.Cdecl)]
Expand Down Expand Up @@ -9819,6 +9859,10 @@ public static void FPDFPageObjTransform(global::PDFiumCore.FpdfPageobjectT page_
/// <para>|a c e|</para>
/// <para>|b d f|</para>
/// <para>and used to scale, rotate, shear and translate the page object.</para>
/// <para>For page objects outside form objects, the matrix values are relative to the</para>
/// <para>page that contains it.</para>
/// <para>For page objects inside form objects, the matrix values are relative to the</para>
/// <para>form that contains it.</para>
/// <para>Returns TRUE on success.</para>
/// </summary>
public static int FPDFPageObjGetMatrix(global::PDFiumCore.FpdfPageobjectT page_object, global::PDFiumCore.FS_MATRIX_ matrix)
Expand Down Expand Up @@ -13577,6 +13621,7 @@ public static void FPDF_AddInstalledFont(__IntPtr mapper, string face, int chars
/// <para>Return Value:</para>
/// <para>None</para>
/// <para>Comments: Platform support implementation should implement required methods of FFDF_SYSFONTINFO interface, then call this function during PDFium initialization process.</para>
/// <para>Call this with NULL to tell PDFium to stop using a previously set |FPDF_SYSFONTINFO|.</para>
/// </summary>
public static void FPDF_SetSystemFontInfo(global::PDFiumCore.FPDF_SYSFONTINFO pFontInfo)
{
Expand Down Expand Up @@ -13610,7 +13655,7 @@ public static void FPDF_SetSystemFontInfo(global::PDFiumCore.FPDF_SYSFONTINFO pF
/// <para>pFontInfo - Pointer to a FPDF_SYSFONTINFO structure</para>
/// <para>Return Value:</para>
/// <para>None</para>
/// <para>Comments: This function should be called on the output from FPDF_SetSystemFontInfo() once it is no longer needed.</para>
/// <para>Comments: This function should be called on the output from FPDF_GetDefaultSystemFontInfo() once it is no longer needed.</para>
/// </summary>
public static void FPDF_FreeDefaultSystemFontInfo(global::PDFiumCore.FPDF_SYSFONTINFO pFontInfo)
{
Expand Down

0 comments on commit 0f3f600

Please sign in to comment.