|
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 |
5 | 5 | // ----------------------------------------------------------------------------
|
6 | 6 | // <auto-generated>
|
7 | 7 | // This is autogenerated code by CppSharp.
|
@@ -4495,13 +4495,20 @@ public partial struct __Internal
|
4495 | 4495 |
|
4496 | 4496 | [SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFAnnot_SetURI", CallingConvention = __CallingConvention.Cdecl)]
|
4497 | 4497 | 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); |
4498 | 4504 | }
|
4499 | 4505 |
|
4500 | 4506 | /// <summary>
|
4501 | 4507 | /// <para>Experimental API.</para>
|
4502 | 4508 | /// <para>Check if an annotation subtype is currently supported for creation.</para>
|
4503 | 4509 | /// <para>Currently supported subtypes:</para>
|
4504 | 4510 | /// <para>- circle</para>
|
| 4511 | + /// <para>- fileattachment</para> |
4505 | 4512 | /// <para>- freetext</para>
|
4506 | 4513 | /// <para>- highlight</para>
|
4507 | 4514 | /// <para>- ink</para>
|
@@ -5666,6 +5673,39 @@ public static int FPDFAnnotSetURI(global::PDFiumCore.FpdfAnnotationT annot, stri
|
5666 | 5673 | var __ret = __Internal.FPDFAnnotSetURI(__arg0, uri);
|
5667 | 5674 | return __ret;
|
5668 | 5675 | }
|
| 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 | + } |
5669 | 5709 | }
|
5670 | 5710 |
|
5671 | 5711 | [SuppressUnmanagedCodeSecurity, UnmanagedFunctionPointer(__CallingConvention.Cdecl)]
|
@@ -9819,6 +9859,10 @@ public static void FPDFPageObjTransform(global::PDFiumCore.FpdfPageobjectT page_
|
9819 | 9859 | /// <para>|a c e|</para>
|
9820 | 9860 | /// <para>|b d f|</para>
|
9821 | 9861 | /// <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> |
9822 | 9866 | /// <para>Returns TRUE on success.</para>
|
9823 | 9867 | /// </summary>
|
9824 | 9868 | 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
|
13577 | 13621 | /// <para>Return Value:</para>
|
13578 | 13622 | /// <para>None</para>
|
13579 | 13623 | /// <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> |
13580 | 13625 | /// </summary>
|
13581 | 13626 | public static void FPDF_SetSystemFontInfo(global::PDFiumCore.FPDF_SYSFONTINFO pFontInfo)
|
13582 | 13627 | {
|
@@ -13610,7 +13655,7 @@ public static void FPDF_SetSystemFontInfo(global::PDFiumCore.FPDF_SYSFONTINFO pF
|
13610 | 13655 | /// <para>pFontInfo - Pointer to a FPDF_SYSFONTINFO structure</para>
|
13611 | 13656 | /// <para>Return Value:</para>
|
13612 | 13657 | /// <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> |
13614 | 13659 | /// </summary>
|
13615 | 13660 | public static void FPDF_FreeDefaultSystemFontInfo(global::PDFiumCore.FPDF_SYSFONTINFO pFontInfo)
|
13616 | 13661 | {
|
|
0 commit comments