Update pdfium binaries for Windows builds
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt5) (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / macOS (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Windows x86 (Qt5) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled

It fixes rendering problems with newer PDFs.
This commit is contained in:
luisangelsm
2025-12-02 16:30:10 +01:00
parent d80e82fe87
commit c7ff185a45
16 changed files with 259 additions and 87 deletions

View File

@ -289,7 +289,7 @@ FPDFAnnot_RemoveObject(FPDF_ANNOTATION annot, int index);
// Experimental API.
// Set the color of an annotation. Fails when called on annotations with
// appearance streams already defined; instead use
// FPDFPath_Set{Stroke|Fill}Color().
// FPDFPageObj_Set{Stroke|Fill}Color().
//
// annot - handle to an annotation.
// type - type of the color to be set.
@ -308,7 +308,7 @@ FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV FPDFAnnot_SetColor(FPDF_ANNOTATION annot,
// Get the color of an annotation. If no color is specified, default to yellow
// for highlight annotation, black for all else. Fails when called on
// annotations with appearance streams already defined; instead use
// FPDFPath_Get{Stroke|Fill}Color().
// FPDFPageObj_Get{Stroke|Fill}Color().
//
// annot - handle to an annotation.
// type - type of the color requested.
@ -685,6 +685,20 @@ FPDF_EXPORT int FPDF_CALLCONV
FPDFAnnot_GetFormFieldFlags(FPDF_FORMHANDLE handle,
FPDF_ANNOTATION annot);
// Experimental API.
// Sets the form field flags for an interactive form annotation.
//
// handle - the handle to the form fill module, returned by
// FPDFDOC_InitFormFillEnvironment().
// annot - handle to an interactive form annotation.
// flags - the form field flags to be set.
//
// Returns true if successful.
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFAnnot_SetFormFieldFlags(FPDF_FORMHANDLE handle,
FPDF_ANNOTATION annot,
int flags);
// Experimental API.
// Retrieves an interactive form annotation whose rectangle contains a given
// point on a page. Must call FPDFPage_CloseAnnot() when the annotation returned
@ -845,6 +859,27 @@ FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle,
FPDF_ANNOTATION annot,
float* value);
// Experimental API.
// Set the text color of an annotation.
//
// handle - handle to the form fill module, returned by
// FPDFDOC_InitFormFillEnvironment.
// annot - handle to an annotation.
// R - the red component for the text color.
// G - the green component for the text color.
// B - the blue component for the text color.
//
// Returns true if successful.
//
// Currently supported subtypes: freetext.
// The range for the color components is 0 to 255.
FPDF_EXPORT FPDF_BOOL FPDF_CALLCONV
FPDFAnnot_SetFontColor(FPDF_FORMHANDLE handle,
FPDF_ANNOTATION annot,
unsigned int R,
unsigned int G,
unsigned int B);
// Experimental API.
// Get the RGB value of the font color for an |annot| with variable text.
//