Skip to content

Commit

Permalink
Update to chromium/4370.
Browse files Browse the repository at this point in the history
Adds int FPDFAnnotGetBorder(global::PDFiumCore.FpdfAnnotationT annot, ref float horizontal_radius, ref float vertical_radius, ref float border_width)
  • Loading branch information
DJGosnell committed Dec 28, 2020
1 parent 00c2791 commit 3d311b1
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 4 deletions.
40 changes: 37 additions & 3 deletions src/PDFiumCore/PDFiumCore.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/4348
// PDFium version chromium/4348 [00c189677bec91cd04ba4b8c272f6cbbd13b959c]
// Built on: Thu, 10 Dec 2020 22:14:17 GMT
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/4370
// PDFium version chromium/4370 [00c189677bec91cd04ba4b8c272f6cbbd13b959c]
// Built on: Mon, 28 Dec 2020 16:10:23 GMT
// ----------------------------------------------------------------------------
// <auto-generated>
// This is autogenerated code by CppSharp.
Expand Down Expand Up @@ -3808,6 +3808,11 @@ public partial struct __Internal
EntryPoint="FPDFAnnot_GetLine")]
internal static extern int FPDFAnnotGetLine(global::System.IntPtr annot, global::System.IntPtr start, global::System.IntPtr end);

[SuppressUnmanagedCodeSecurity]
[DllImport("pdfium", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="FPDFAnnot_GetBorder")]
internal static extern int FPDFAnnotGetBorder(global::System.IntPtr annot, float* horizontal_radius, float* vertical_radius, float* border_width);

[SuppressUnmanagedCodeSecurity]
[DllImport("pdfium", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="FPDFAnnot_HasKey")]
Expand Down Expand Up @@ -4448,6 +4453,35 @@ public static int FPDFAnnotGetLine(global::PDFiumCore.FpdfAnnotationT annot, glo
return __ret;
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Get the characteristics of the annotation's border (rounded rectangle).</para>
/// <para>annot - handle to an annotation, as returned by e.g. FPDFPage_GetAnnot()</para>
/// <para>horizontal_radius - horizontal corner radius, in default user space units</para>
/// <para>vertical_radius - vertical corner radius, in default user space units</para>
/// <para>border_width - border width, in default user space units</para>
/// <para>Returns true if |horizontal_radius|, |vertical_radius| and |border_width| are</para>
/// <para>not NULL, false otherwise.</para>
/// </summary>
public static int FPDFAnnotGetBorder(global::PDFiumCore.FpdfAnnotationT annot, ref float horizontal_radius, ref float vertical_radius, ref float border_width)
{
var __arg0 = ReferenceEquals(annot, null) ? global::System.IntPtr.Zero : annot.__Instance;
fixed (float* __horizontal_radius1 = &horizontal_radius)
{
var __arg1 = __horizontal_radius1;
fixed (float* __vertical_radius2 = &vertical_radius)
{
var __arg2 = __vertical_radius2;
fixed (float* __border_width3 = &border_width)
{
var __arg3 = __border_width3;
var __ret = __Internal.FPDFAnnotGetBorder(__arg0, __arg1, __arg2, __arg3);
return __ret;
}
}
}
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Check if |annot|'s dictionary has |key| as a key.</para>
Expand Down
Binary file modified src/PDFiumCore/runtimes/linux/native/pdfium.so
Binary file not shown.
Binary file modified src/PDFiumCore/runtimes/osx/native/pdfium.dylib
Binary file not shown.
Binary file modified src/PDFiumCore/runtimes/win-x64/native/pdfium.dll
Binary file not shown.
Binary file modified src/PDFiumCore/runtimes/win-x86/native/pdfium.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/PDFiumCoreBindingsGenerator/CreatePackage.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
PDFiumCoreBindingsGenerator.exe "https://api.github.com/repos/bblanchon/pdfium-binaries/releases/34911950" "0" true >build.log & type build.log
PDFiumCoreBindingsGenerator.exe "https://api.github.com/repos/bblanchon/pdfium-binaries/releases/35761882" "0" true >build.log & type build.log

0 comments on commit 3d311b1

Please sign in to comment.