Skip to content

Commit 0f3f600

Browse files
committed
PDFium version v125.0.6378.0 chromium/6378 [master]
+public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotGetFileAttachment(global::PDFiumCore.FpdfAnnotationT annot) +public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotAddFileAttachment(global::PDFiumCore.FpdfAnnotationT annot, ref ushort name)
1 parent d6226eb commit 0f3f600

File tree

3 files changed

+52
-7
lines changed

3 files changed

+52
-7
lines changed

download_package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dotnet build src/PDFiumCoreBindingsGenerator/PDFiumCoreBindingsGenerator.csproj -c Release
2-
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 142657744 false
2+
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 148145837 false

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>123.0.6309.0</Version>
4+
<Version>125.0.6378.0</Version>
55
</PropertyGroup>
66
</Project>

src/PDFiumCore/PDFiumCore.cs

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6309
2-
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/142657744
3-
// PDFium version v123.0.6309.0 chromium/6309 [master]
4-
// Built on: Mon, 19 Feb 2024 22:35:48 GMT
1+
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6378
2+
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/148145837
3+
// PDFium version v125.0.6378.0 chromium/6378 [master]
4+
// Built on: Wed, 27 Mar 2024 15:55:45 GMT
55
// ----------------------------------------------------------------------------
66
// <auto-generated>
77
// This is autogenerated code by CppSharp.
@@ -4495,13 +4495,20 @@ public partial struct __Internal
44954495

44964496
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_SetURI", CallingConvention = __CallingConvention.Cdecl)]
44974497
internal static extern int FPDFAnnotSetURI(__IntPtr annot, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string uri);
4498+
4499+
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_GetFileAttachment", CallingConvention = __CallingConvention.Cdecl)]
4500+
internal static extern __IntPtr FPDFAnnotGetFileAttachment(__IntPtr annot);
4501+
4502+
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_AddFileAttachment", CallingConvention = __CallingConvention.Cdecl)]
4503+
internal static extern __IntPtr FPDFAnnotAddFileAttachment(__IntPtr annot, ushort* name);
44984504
}
44994505

45004506
/// <summary>
45014507
/// <para>Experimental API.</para>
45024508
/// <para>Check if an annotation subtype is currently supported for creation.</para>
45034509
/// <para>Currently supported subtypes:</para>
45044510
/// <para>- circle</para>
4511+
/// <para>- fileattachment</para>
45054512
/// <para>- freetext</para>
45064513
/// <para>- highlight</para>
45074514
/// <para>- ink</para>
@@ -5666,6 +5673,39 @@ public static int FPDFAnnotSetURI(global::PDFiumCore.FpdfAnnotationT annot, stri
56665673
var __ret = __Internal.FPDFAnnotSetURI(__arg0, uri);
56675674
return __ret;
56685675
}
5676+
5677+
/// <summary>
5678+
/// <para>Experimental API.</para>
5679+
/// <para>Get the attachment from |annot|.</para>
5680+
/// <para>annot - handle to a file annotation.</para>
5681+
/// <para>Returns the handle to the attachment object, or NULL on failure.</para>
5682+
/// </summary>
5683+
public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotGetFileAttachment(global::PDFiumCore.FpdfAnnotationT annot)
5684+
{
5685+
var __arg0 = annot is null ? __IntPtr.Zero : annot.__Instance;
5686+
var __ret = __Internal.FPDFAnnotGetFileAttachment(__arg0);
5687+
var __result0 = global::PDFiumCore.FpdfAttachmentT.__GetOrCreateInstance(__ret, false);
5688+
return __result0;
5689+
}
5690+
5691+
/// <summary>
5692+
/// <para>Experimental API.</para>
5693+
/// <para>Add an embedded file with |name| to |annot|.</para>
5694+
/// <para>annot - handle to a file annotation.</para>
5695+
/// <para>name - name of the new attachment.</para>
5696+
/// <para>Returns a handle to the new attachment object, or NULL on failure.</para>
5697+
/// </summary>
5698+
public static global::PDFiumCore.FpdfAttachmentT FPDFAnnotAddFileAttachment(global::PDFiumCore.FpdfAnnotationT annot, ref ushort name)
5699+
{
5700+
var __arg0 = annot is null ? __IntPtr.Zero : annot.__Instance;
5701+
fixed (ushort* __name1 = &name)
5702+
{
5703+
var __arg1 = __name1;
5704+
var __ret = __Internal.FPDFAnnotAddFileAttachment(__arg0, __arg1);
5705+
var __result0 = global::PDFiumCore.FpdfAttachmentT.__GetOrCreateInstance(__ret, false);
5706+
return __result0;
5707+
}
5708+
}
56695709
}
56705710

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

0 commit comments

Comments
 (0)