Skip to content

Commit a00b931

Browse files
committed
PDFium version v133.0.6844.0
1 parent 1686f8b commit a00b931

File tree

3 files changed

+77
-41
lines changed

3 files changed

+77
-41
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 174061788 false
2+
dotnet ./src/PDFiumCoreBindingsGenerator/bin/Release/net6.0/PDFiumCoreBindingsGenerator.dll 186238511 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>130.0.6707.0</Version>
4+
<Version>133.0.6844.0</Version>
55
</PropertyGroup>
66
</Project>

src/PDFiumCore/PDFiumCore.cs

Lines changed: 75 additions & 39 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/6707
2-
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/174061788
3-
// PDFium version v130.0.6707.0 chromium/6707 [master]
4-
// Built on: Mon, 09 Sep 2024 13:15:19 GMT
1+
// Built from precompiled binaries at https://github.com/bblanchon/pdfium-binaries/releases/tag/chromium/6844
2+
// Github release api https://api.github.com/repos/bblanchon/pdfium-binaries/releases/186238511
3+
// PDFium version v133.0.6844.0 chromium/6844 [master]
4+
// Built on: Tue, 26 Nov 2024 17:01:07 GMT
55
// ----------------------------------------------------------------------------
66
// <auto-generated>
77
// This is autogenerated code by CppSharp.
@@ -9398,6 +9398,9 @@ public partial struct __Internal
93989398
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_GetType", CallingConvention = __CallingConvention.Cdecl)]
93999399
internal static extern int FPDFPageObjGetType(__IntPtr page_object);
94009400

9401+
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_SetIsActive", CallingConvention = __CallingConvention.Cdecl)]
9402+
internal static extern int FPDFPageObjSetIsActive(__IntPtr page_object, int active);
9403+
94019404
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObj_Transform", CallingConvention = __CallingConvention.Cdecl)]
94029405
internal static extern void FPDFPageObjTransform(__IntPtr page_object, double a, double b, double c, double d, double e, double f);
94039406

@@ -9432,13 +9435,13 @@ public partial struct __Internal
94329435
internal static extern int FPDFPageObjRemoveMark(__IntPtr page_object, __IntPtr mark);
94339436

94349437
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_GetName", CallingConvention = __CallingConvention.Cdecl)]
9435-
internal static extern int FPDFPageObjMarkGetName(__IntPtr mark, __IntPtr buffer, uint buflen, uint* out_buflen);
9438+
internal static extern int FPDFPageObjMarkGetName(__IntPtr mark, ushort* buffer, uint buflen, uint* out_buflen);
94369439

94379440
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_CountParams", CallingConvention = __CallingConvention.Cdecl)]
94389441
internal static extern int FPDFPageObjMarkCountParams(__IntPtr mark);
94399442

94409443
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_GetParamKey", CallingConvention = __CallingConvention.Cdecl)]
9441-
internal static extern int FPDFPageObjMarkGetParamKey(__IntPtr mark, uint index, __IntPtr buffer, uint buflen, uint* out_buflen);
9444+
internal static extern int FPDFPageObjMarkGetParamKey(__IntPtr mark, uint index, ushort* buffer, uint buflen, uint* out_buflen);
94429445

94439446
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_GetParamValueType", CallingConvention = __CallingConvention.Cdecl)]
94449447
internal static extern int FPDFPageObjMarkGetParamValueType(__IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key);
@@ -9447,10 +9450,10 @@ public partial struct __Internal
94479450
internal static extern int FPDFPageObjMarkGetParamIntValue(__IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, int* out_value);
94489451

94499452
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_GetParamStringValue", CallingConvention = __CallingConvention.Cdecl)]
9450-
internal static extern int FPDFPageObjMarkGetParamStringValue(__IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, __IntPtr buffer, uint buflen, uint* out_buflen);
9453+
internal static extern int FPDFPageObjMarkGetParamStringValue(__IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, ushort* buffer, uint buflen, uint* out_buflen);
94519454

94529455
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_GetParamBlobValue", CallingConvention = __CallingConvention.Cdecl)]
9453-
internal static extern int FPDFPageObjMarkGetParamBlobValue(__IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, __IntPtr buffer, uint buflen, uint* out_buflen);
9456+
internal static extern int FPDFPageObjMarkGetParamBlobValue(__IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, byte* buffer, uint buflen, uint* out_buflen);
94549457

94559458
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_SetIntParam", CallingConvention = __CallingConvention.Cdecl)]
94569459
internal static extern int FPDFPageObjMarkSetIntParam(__IntPtr document, __IntPtr page_object, __IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, int value);
@@ -9459,7 +9462,7 @@ public partial struct __Internal
94599462
internal static extern int FPDFPageObjMarkSetStringParam(__IntPtr document, __IntPtr page_object, __IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string value);
94609463

94619464
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_SetBlobParam", CallingConvention = __CallingConvention.Cdecl)]
9462-
internal static extern int FPDFPageObjMarkSetBlobParam(__IntPtr document, __IntPtr page_object, __IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, __IntPtr value, uint value_len);
9465+
internal static extern int FPDFPageObjMarkSetBlobParam(__IntPtr document, __IntPtr page_object, __IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key, byte* value, uint value_len);
94639466

94649467
[SuppressUnmanagedCodeSecurity, DllImport("pdfium", EntryPoint = "FPDFPageObjMark_RemoveParam", CallingConvention = __CallingConvention.Cdecl)]
94659468
internal static extern int FPDFPageObjMarkRemoveParam(__IntPtr page_object, __IntPtr mark, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CppSharp.Runtime.UTF8Marshaller))] string key);
@@ -9911,6 +9914,24 @@ public static int FPDFPageObjGetType(global::PDFiumCore.FpdfPageobjectT page_obj
99119914
return __ret;
99129915
}
99139916

9917+
/// <summary>
9918+
/// <para>Experimental API.</para>
9919+
/// <para>Sets if |page_object| is active within page.</para>
9920+
/// <para>page_object - handle to a page object.</para>
9921+
/// <para>active - a boolean specifying if the object is active.</para>
9922+
/// <para>Returns TRUE on success.</para>
9923+
/// <para>Page objects all start in the active state by default, and remain in that</para>
9924+
/// <para>state unless this function is called.</para>
9925+
/// <para>When |active| is false, this makes the |page_object| be treated as if it</para>
9926+
/// <para>wasn't in the document even though it is still held internally.</para>
9927+
/// </summary>
9928+
public static int FPDFPageObjSetIsActive(global::PDFiumCore.FpdfPageobjectT page_object, int active)
9929+
{
9930+
var __arg0 = page_object is null ? __IntPtr.Zero : page_object.__Instance;
9931+
var __ret = __Internal.FPDFPageObjSetIsActive(__arg0, active);
9932+
return __ret;
9933+
}
9934+
99149935
/// <summary>
99159936
/// <para>Transform |page_object| by the given matrix.</para>
99169937
/// <para>page_object - handle to a page object.</para>
@@ -10109,22 +10130,27 @@ public static int FPDFPageObjRemoveMark(global::PDFiumCore.FpdfPageobjectT page_
1010910130
/// <para>Get the name of a content mark.</para>
1011010131
/// <para>mark - handle to a content mark.</para>
1011110132
/// <para>buffer - buffer for holding the returned name in UTF-16LE. This is only</para>
10112-
/// <para>modified if |buflen| is longer than the length of the name.</para>
10133+
/// <para>modified if |buflen| is large enough to store the name.</para>
1011310134
/// <para>Optional, pass null to just retrieve the size of the buffer</para>
1011410135
/// <para>needed.</para>
10115-
/// <para>buflen - length of the buffer.</para>
10136+
/// <para>buflen - length of the buffer in bytes.</para>
1011610137
/// <para>out_buflen - pointer to variable that will receive the minimum buffer size</para>
10117-
/// <para>to contain the name. Not filled if FALSE is returned.</para>
10138+
/// <para>in bytes to contain the name. This is a required parameter.</para>
10139+
/// <para>Not filled if FALSE is returned.</para>
1011810140
/// <para>Returns TRUE if the operation succeeded, FALSE if it failed.</para>
1011910141
/// </summary>
10120-
public static int FPDFPageObjMarkGetName(global::PDFiumCore.FpdfPageobjectmarkT mark, __IntPtr buffer, uint buflen, ref uint out_buflen)
10142+
public static int FPDFPageObjMarkGetName(global::PDFiumCore.FpdfPageobjectmarkT mark, ref ushort buffer, uint buflen, ref uint out_buflen)
1012110143
{
1012210144
var __arg0 = mark is null ? __IntPtr.Zero : mark.__Instance;
10123-
fixed (uint* __out_buflen3 = &out_buflen)
10145+
fixed (ushort* __buffer1 = &buffer)
1012410146
{
10125-
var __arg3 = __out_buflen3;
10126-
var __ret = __Internal.FPDFPageObjMarkGetName(__arg0, buffer, buflen, __arg3);
10127-
return __ret;
10147+
var __arg1 = __buffer1;
10148+
fixed (uint* __out_buflen3 = &out_buflen)
10149+
{
10150+
var __arg3 = __out_buflen3;
10151+
var __ret = __Internal.FPDFPageObjMarkGetName(__arg0, __arg1, buflen, __arg3);
10152+
return __ret;
10153+
}
1012810154
}
1012910155
}
1013010156

@@ -10148,22 +10174,27 @@ public static int FPDFPageObjMarkCountParams(global::PDFiumCore.FpdfPageobjectma
1014810174
/// <para>mark - handle to a content mark.</para>
1014910175
/// <para>index - index of the property.</para>
1015010176
/// <para>buffer - buffer for holding the returned key in UTF-16LE. This is only</para>
10151-
/// <para>modified if |buflen| is longer than the length of the key.</para>
10177+
/// <para>modified if |buflen| is large enough to store the key.</para>
1015210178
/// <para>Optional, pass null to just retrieve the size of the buffer</para>
1015310179
/// <para>needed.</para>
10154-
/// <para>buflen - length of the buffer.</para>
10180+
/// <para>buflen - length of the buffer in bytes.</para>
1015510181
/// <para>out_buflen - pointer to variable that will receive the minimum buffer size</para>
10156-
/// <para>to contain the key. Not filled if FALSE is returned.</para>
10182+
/// <para>in bytes to contain the name. This is a required parameter.</para>
10183+
/// <para>Not filled if FALSE is returned.</para>
1015710184
/// <para>Returns TRUE if the operation was successful, FALSE otherwise.</para>
1015810185
/// </summary>
10159-
public static int FPDFPageObjMarkGetParamKey(global::PDFiumCore.FpdfPageobjectmarkT mark, uint index, __IntPtr buffer, uint buflen, ref uint out_buflen)
10186+
public static int FPDFPageObjMarkGetParamKey(global::PDFiumCore.FpdfPageobjectmarkT mark, uint index, ref ushort buffer, uint buflen, ref uint out_buflen)
1016010187
{
1016110188
var __arg0 = mark is null ? __IntPtr.Zero : mark.__Instance;
10162-
fixed (uint* __out_buflen4 = &out_buflen)
10189+
fixed (ushort* __buffer2 = &buffer)
1016310190
{
10164-
var __arg4 = __out_buflen4;
10165-
var __ret = __Internal.FPDFPageObjMarkGetParamKey(__arg0, index, buffer, buflen, __arg4);
10166-
return __ret;
10191+
var __arg2 = __buffer2;
10192+
fixed (uint* __out_buflen4 = &out_buflen)
10193+
{
10194+
var __arg4 = __out_buflen4;
10195+
var __ret = __Internal.FPDFPageObjMarkGetParamKey(__arg0, index, __arg2, buflen, __arg4);
10196+
return __ret;
10197+
}
1016710198
}
1016810199
}
1016910200

@@ -10209,23 +10240,27 @@ public static int FPDFPageObjMarkGetParamIntValue(global::PDFiumCore.FpdfPageobj
1020910240
/// <para>mark - handle to a content mark.</para>
1021010241
/// <para>key - string key of the property.</para>
1021110242
/// <para>buffer - buffer for holding the returned value in UTF-16LE. This is</para>
10212-
/// <para>only modified if |buflen| is longer than the length of the</para>
10213-
/// <para>value.</para>
10243+
/// <para>only modified if |buflen| is large enough to store the value.</para>
1021410244
/// <para>Optional, pass null to just retrieve the size of the buffer</para>
1021510245
/// <para>needed.</para>
10216-
/// <para>buflen - length of the buffer.</para>
10246+
/// <para>buflen - length of the buffer in bytes.</para>
1021710247
/// <para>out_buflen - pointer to variable that will receive the minimum buffer size</para>
10218-
/// <para>to contain the value. Not filled if FALSE is returned.</para>
10248+
/// <para>in bytes to contain the name. This is a required parameter.</para>
10249+
/// <para>Not filled if FALSE is returned.</para>
1021910250
/// <para>Returns TRUE if the key maps to a string/blob value, FALSE otherwise.</para>
1022010251
/// </summary>
10221-
public static int FPDFPageObjMarkGetParamStringValue(global::PDFiumCore.FpdfPageobjectmarkT mark, string key, __IntPtr buffer, uint buflen, ref uint out_buflen)
10252+
public static int FPDFPageObjMarkGetParamStringValue(global::PDFiumCore.FpdfPageobjectmarkT mark, string key, ref ushort buffer, uint buflen, ref uint out_buflen)
1022210253
{
1022310254
var __arg0 = mark is null ? __IntPtr.Zero : mark.__Instance;
10224-
fixed (uint* __out_buflen4 = &out_buflen)
10255+
fixed (ushort* __buffer2 = &buffer)
1022510256
{
10226-
var __arg4 = __out_buflen4;
10227-
var __ret = __Internal.FPDFPageObjMarkGetParamStringValue(__arg0, key, buffer, buflen, __arg4);
10228-
return __ret;
10257+
var __arg2 = __buffer2;
10258+
fixed (uint* __out_buflen4 = &out_buflen)
10259+
{
10260+
var __arg4 = __out_buflen4;
10261+
var __ret = __Internal.FPDFPageObjMarkGetParamStringValue(__arg0, key, __arg2, buflen, __arg4);
10262+
return __ret;
10263+
}
1022910264
}
1023010265
}
1023110266

@@ -10235,15 +10270,16 @@ public static int FPDFPageObjMarkGetParamStringValue(global::PDFiumCore.FpdfPage
1023510270
/// <para>mark - handle to a content mark.</para>
1023610271
/// <para>key - string key of the property.</para>
1023710272
/// <para>buffer - buffer for holding the returned value. This is only modified</para>
10238-
/// <para>if |buflen| is at least as long as the length of the value.</para>
10273+
/// <para>if |buflen| is large enough to store the value.</para>
1023910274
/// <para>Optional, pass null to just retrieve the size of the buffer</para>
1024010275
/// <para>needed.</para>
10241-
/// <para>buflen - length of the buffer.</para>
10276+
/// <para>buflen - length of the buffer in bytes.</para>
1024210277
/// <para>out_buflen - pointer to variable that will receive the minimum buffer size</para>
10243-
/// <para>to contain the value. Not filled if FALSE is returned.</para>
10278+
/// <para>in bytes to contain the name. This is a required parameter.</para>
10279+
/// <para>Not filled if FALSE is returned.</para>
1024410280
/// <para>Returns TRUE if the key maps to a string/blob value, FALSE otherwise.</para>
1024510281
/// </summary>
10246-
public static int FPDFPageObjMarkGetParamBlobValue(global::PDFiumCore.FpdfPageobjectmarkT mark, string key, __IntPtr buffer, uint buflen, ref uint out_buflen)
10282+
public static int FPDFPageObjMarkGetParamBlobValue(global::PDFiumCore.FpdfPageobjectmarkT mark, string key, byte* buffer, uint buflen, ref uint out_buflen)
1024710283
{
1024810284
var __arg0 = mark is null ? __IntPtr.Zero : mark.__Instance;
1024910285
fixed (uint* __out_buflen4 = &out_buflen)
@@ -10309,7 +10345,7 @@ public static int FPDFPageObjMarkSetStringParam(global::PDFiumCore.FpdfDocumentT
1030910345
/// <para>value_len - size in bytes of |value|.</para>
1031010346
/// <para>Returns TRUE if the operation succeeded, FALSE otherwise.</para>
1031110347
/// </summary>
10312-
public static int FPDFPageObjMarkSetBlobParam(global::PDFiumCore.FpdfDocumentT document, global::PDFiumCore.FpdfPageobjectT page_object, global::PDFiumCore.FpdfPageobjectmarkT mark, string key, __IntPtr value, uint value_len)
10348+
public static int FPDFPageObjMarkSetBlobParam(global::PDFiumCore.FpdfDocumentT document, global::PDFiumCore.FpdfPageobjectT page_object, global::PDFiumCore.FpdfPageobjectmarkT mark, string key, byte* value, uint value_len)
1031310349
{
1031410350
var __arg0 = document is null ? __IntPtr.Zero : document.__Instance;
1031510351
var __arg1 = page_object is null ? __IntPtr.Zero : page_object.__Instance;

0 commit comments

Comments
 (0)