Skip to content

Commit

Permalink
PDFium version v134.0.6982.0 chromium/6982 [master]
Browse files Browse the repository at this point in the history
+public static int FPDFPageObjGetIsActive(global::PDFiumCore.FpdfPageobjectT page_object, ref int active)
+public static int FPDFImageObjGetIccProfileDataDecoded(global::PDFiumCore.FpdfPageobjectT image_object, global::PDFiumCore.FpdfPageT page, byte* buffer, ulong buflen, ref ulong out_buflen)
Updated to dotnet 8 build pipeline.
  • Loading branch information
DJGosnell committed Jan 29, 2025
1 parent 3be7e30 commit 9200dfc
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
submodules: true

- name: Install .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.*
dotnet-version: 8.0.*
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
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 186238511 false
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 196869661 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>133.0.6844.0</Version>
<Version>134.0.6982.0</Version>
</PropertyGroup>
</Project>
67 changes: 63 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/6844
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/186238511
// PDFium version v133.0.6844.0 chromium/6844 [master]
// Built on: Tue, 26 Nov 2024 17:05:22 GMT
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6982
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/196869661
// PDFium version v134.0.6982.0 chromium/6982 [master]
// Built on: Wed, 29 Jan 2025 14:45:54 GMT
// ----------------------------------------------------------------------------
// <auto-generated>
// This is autogenerated code by CppSharp.
Expand Down Expand Up @@ -9398,6 +9398,9 @@ public partial struct __Internal
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_GetType", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFPageObjGetType(__IntPtr page_object);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_GetIsActive", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFPageObjGetIsActive(__IntPtr page_object, int* active);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_SetIsActive", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFPageObjSetIsActive(__IntPtr page_object, int active);

Expand Down Expand Up @@ -9503,6 +9506,9 @@ public partial struct __Internal
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFImageObj_GetImagePixelSize", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFImageObjGetImagePixelSize(__IntPtr image_object, uint* width, uint* height);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFImageObj_GetIccProfileDataDecoded", CallingConvention = __CallingConvention.Cdecl)]
internal static extern int FPDFImageObjGetIccProfileDataDecoded(__IntPtr image_object, __IntPtr page, byte* buffer, ulong buflen, ulong* out_buflen);

[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_CreateNewPath", CallingConvention = __CallingConvention.Cdecl)]
internal static extern __IntPtr FPDFPageObjCreateNewPath(float x, float y);

Expand Down Expand Up @@ -9914,6 +9920,29 @@ public static int FPDFPageObjGetType(global::PDFiumCore.FpdfPageobjectT page_obj
return __ret;
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Gets active state for |page_object| within page.</para>
/// <para>page_object - handle to a page object.</para>
/// <para>active - pointer to variable that will receive if the page object is</para>
/// <para>active. This is a required parameter. Not filled if FALSE</para>
/// <para>is returned.</para>
/// <para>For page objects where |active| is filled with FALSE, the |page_object| is</para>
/// <para>treated as if it wasn't in the document even though it is still held</para>
/// <para>internally.</para>
/// <para>Returns TRUE if the operation succeeded, FALSE if it failed.</para>
/// </summary>
public static int FPDFPageObjGetIsActive(global::PDFiumCore.FpdfPageobjectT page_object, ref int active)
{
var __arg0 = page_object is null ? __IntPtr.Zero : page_object.__Instance;
fixed (int* __active1 = &active)
{
var __arg1 = __active1;
var __ret = __Internal.FPDFPageObjGetIsActive(__arg0, __arg1);
return __ret;
}
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Sets if |page_object| is active within page.</para>
Expand Down Expand Up @@ -10605,6 +10634,36 @@ public static int FPDFImageObjGetImagePixelSize(global::PDFiumCore.FpdfPageobjec
}
}

/// <summary>
/// <para>Experimental API.</para>
/// <para>Get ICC profile decoded data of |image_object|. If the |image_object| is not</para>
/// <para>an image object or if it does not have an image, then the return value will</para>
/// <para>be false. It also returns false if the |image_object| has no ICC profile.</para>
/// <para>|buffer| is only modified if ICC profile exists and |buflen| is longer than</para>
/// <para>the length of the ICC profile decoded data.</para>
/// <para>image_object - handle to an image object; must not be NULL.</para>
/// <para>page - handle to the page containing |image_object|; must not be</para>
/// <para>NULL. Required for retrieving the image's colorspace.</para>
/// <para>buffer - Buffer to receive ICC profile data; may be NULL if querying</para>
/// <para>required size via |out_buflen|.</para>
/// <para>buflen - Length of the buffer in bytes. Ignored if |buffer| is NULL.</para>
/// <para>out_buflen - Pointer to receive the ICC profile data size in bytes; must</para>
/// <para>not be NULL. Will be set if this API returns true.</para>
/// <para>Returns true if |out_buflen| is not null and an ICC profile exists for the</para>
/// <para>given |image_object|.</para>
/// </summary>
public static int FPDFImageObjGetIccProfileDataDecoded(global::PDFiumCore.FpdfPageobjectT image_object, global::PDFiumCore.FpdfPageT page, byte* buffer, ulong buflen, ref ulong out_buflen)
{
var __arg0 = image_object is null ? __IntPtr.Zero : image_object.__Instance;
var __arg1 = page is null ? __IntPtr.Zero : page.__Instance;
fixed (ulong* __out_buflen4 = &out_buflen)
{
var __arg4 = __out_buflen4;
var __ret = __Internal.FPDFImageObjGetIccProfileDataDecoded(__arg0, __arg1, buffer, buflen, __arg4);
return __ret;
}
}

/// <summary>
/// <para>Create a new path object at an initial position.</para>
/// <para>x - initial horizontal position.</para>
Expand Down

0 comments on commit 9200dfc

Please sign in to comment.