Skip to content

Commit

Permalink
Add functions from fpdf_edit.h
Browse files Browse the repository at this point in the history
  • Loading branch information
espresso3389 committed Feb 1, 2024
1 parent deade72 commit fc36f3c
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"Antialiasing",
"ARGB",
"autofocus",
"Bezier",
"bgra",
"calloc",
"Charcodes",
"cmap",
"cmaps",
"Cupertino",
Expand Down Expand Up @@ -143,4 +145,4 @@
"xloctime": "cpp",
"xstring": "cpp"
}
}
}
105 changes: 105 additions & 0 deletions src/pdfium_interop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,111 @@ extern "C" EXPORT void const *const *INTEROP_API pdfrx_binding()
reinterpret_cast<void *>(FPDFDOC_ExitFormFillEnvironment),
reinterpret_cast<void *>(FPDF_FFLDraw),
reinterpret_cast<void *>(FPDF_GetFormType),
reinterpret_cast<void *>(FPDF_CreateNewDocument),
reinterpret_cast<void *>(FPDFPage_New),
reinterpret_cast<void *>(FPDFPage_Delete),
reinterpret_cast<void *>(FPDF_MovePages),
reinterpret_cast<void *>(FPDFPage_GetRotation),
reinterpret_cast<void *>(FPDFPage_SetRotation),
reinterpret_cast<void *>(FPDFPage_InsertObject),
reinterpret_cast<void *>(FPDFPage_RemoveObject),
reinterpret_cast<void *>(FPDFPage_CountObjects),
reinterpret_cast<void *>(FPDFPage_GetObject),
reinterpret_cast<void *>(FPDFPage_HasTransparency),
reinterpret_cast<void *>(FPDFPage_GenerateContent),
reinterpret_cast<void *>(FPDFPageObj_Destroy),
reinterpret_cast<void *>(FPDFPageObj_HasTransparency),
reinterpret_cast<void *>(FPDFPageObj_GetType),
reinterpret_cast<void *>(FPDFPageObj_Transform),
reinterpret_cast<void *>(FPDFPageObj_GetMatrix),
reinterpret_cast<void *>(FPDFPageObj_SetMatrix),
reinterpret_cast<void *>(FPDFPage_TransformAnnots),
reinterpret_cast<void *>(FPDFPageObj_NewImageObj),
reinterpret_cast<void *>(FPDFPageObj_CountMarks),
reinterpret_cast<void *>(FPDFPageObj_GetMark),
reinterpret_cast<void *>(FPDFPageObj_AddMark),
reinterpret_cast<void *>(FPDFPageObj_RemoveMark),
reinterpret_cast<void *>(FPDFPageObjMark_GetName),
reinterpret_cast<void *>(FPDFPageObjMark_CountParams),
reinterpret_cast<void *>(FPDFPageObjMark_GetParamKey),
reinterpret_cast<void *>(FPDFPageObjMark_GetParamValueType),
reinterpret_cast<void *>(FPDFPageObjMark_GetParamIntValue),
reinterpret_cast<void *>(FPDFPageObjMark_GetParamStringValue),
reinterpret_cast<void *>(FPDFPageObjMark_GetParamBlobValue),
reinterpret_cast<void *>(FPDFPageObjMark_SetIntParam),
reinterpret_cast<void *>(FPDFPageObjMark_SetStringParam),
reinterpret_cast<void *>(FPDFPageObjMark_SetBlobParam),
reinterpret_cast<void *>(FPDFPageObjMark_RemoveParam),
reinterpret_cast<void *>(FPDFImageObj_LoadJpegFile),
reinterpret_cast<void *>(FPDFImageObj_LoadJpegFileInline),
reinterpret_cast<void *>(FPDFImageObj_SetMatrix),
reinterpret_cast<void *>(FPDFImageObj_SetBitmap),
reinterpret_cast<void *>(FPDFImageObj_GetBitmap),
reinterpret_cast<void *>(FPDFImageObj_GetRenderedBitmap),
reinterpret_cast<void *>(FPDFImageObj_GetImageDataDecoded),
reinterpret_cast<void *>(FPDFImageObj_GetImageDataRaw),
reinterpret_cast<void *>(FPDFImageObj_GetImageFilterCount),
reinterpret_cast<void *>(FPDFImageObj_GetImageFilter),
reinterpret_cast<void *>(FPDFImageObj_GetImageMetadata),
reinterpret_cast<void *>(FPDFImageObj_GetImagePixelSize),
reinterpret_cast<void *>(FPDFPageObj_CreateNewPath),
reinterpret_cast<void *>(FPDFPageObj_CreateNewRect),
reinterpret_cast<void *>(FPDFPageObj_GetBounds),
reinterpret_cast<void *>(FPDFPageObj_GetRotatedBounds),
reinterpret_cast<void *>(FPDFPageObj_SetBlendMode),
reinterpret_cast<void *>(FPDFPageObj_SetStrokeColor),
reinterpret_cast<void *>(FPDFPageObj_GetStrokeColor),
reinterpret_cast<void *>(FPDFPageObj_SetStrokeWidth),
reinterpret_cast<void *>(FPDFPageObj_GetStrokeWidth),
reinterpret_cast<void *>(FPDFPageObj_GetLineJoin),
reinterpret_cast<void *>(FPDFPageObj_SetLineJoin),
reinterpret_cast<void *>(FPDFPageObj_GetLineCap),
reinterpret_cast<void *>(FPDFPageObj_SetLineCap),
reinterpret_cast<void *>(FPDFPageObj_SetFillColor),
reinterpret_cast<void *>(FPDFPageObj_GetFillColor),
reinterpret_cast<void *>(FPDFPageObj_GetDashPhase),
reinterpret_cast<void *>(FPDFPageObj_SetDashPhase),
reinterpret_cast<void *>(FPDFPageObj_GetDashCount),
reinterpret_cast<void *>(FPDFPageObj_GetDashArray),
reinterpret_cast<void *>(FPDFPageObj_SetDashArray),
reinterpret_cast<void *>(FPDFPath_CountSegments),
reinterpret_cast<void *>(FPDFPath_GetPathSegment),
reinterpret_cast<void *>(FPDFPathSegment_GetPoint),
reinterpret_cast<void *>(FPDFPathSegment_GetType),
reinterpret_cast<void *>(FPDFPathSegment_GetClose),
reinterpret_cast<void *>(FPDFPath_MoveTo),
reinterpret_cast<void *>(FPDFPath_LineTo),
reinterpret_cast<void *>(FPDFPath_BezierTo),
reinterpret_cast<void *>(FPDFPath_Close),
reinterpret_cast<void *>(FPDFPath_SetDrawMode),
reinterpret_cast<void *>(FPDFPath_GetDrawMode),
reinterpret_cast<void *>(FPDFPageObj_NewTextObj),
reinterpret_cast<void *>(FPDFText_SetText),
reinterpret_cast<void *>(FPDFText_SetCharcodes),
reinterpret_cast<void *>(FPDFText_LoadFont),
reinterpret_cast<void *>(FPDFText_LoadStandardFont),
reinterpret_cast<void *>(FPDFTextObj_GetFontSize),
reinterpret_cast<void *>(FPDFFont_Close),
reinterpret_cast<void *>(FPDFPageObj_CreateTextObj),
reinterpret_cast<void *>(FPDFTextObj_GetTextRenderMode),
reinterpret_cast<void *>(FPDFTextObj_SetTextRenderMode),
reinterpret_cast<void *>(FPDFTextObj_GetText),
reinterpret_cast<void *>(FPDFTextObj_GetRenderedBitmap),
reinterpret_cast<void *>(FPDFTextObj_GetFont),
reinterpret_cast<void *>(FPDFFont_GetFontName),
reinterpret_cast<void *>(FPDFFont_GetFontData),
reinterpret_cast<void *>(FPDFFont_GetIsEmbedded),
reinterpret_cast<void *>(FPDFFont_GetFlags),
reinterpret_cast<void *>(FPDFFont_GetWeight),
reinterpret_cast<void *>(FPDFFont_GetItalicAngle),
reinterpret_cast<void *>(FPDFFont_GetAscent),
reinterpret_cast<void *>(FPDFFont_GetDescent),
reinterpret_cast<void *>(FPDFFont_GetGlyphWidth),
reinterpret_cast<void *>(FPDFFont_GetGlyphPath),
reinterpret_cast<void *>(FPDFGlyphPath_CountGlyphSegments),
reinterpret_cast<void *>(FPDFGlyphPath_GetGlyphPathSegment),
reinterpret_cast<void *>(FPDFFormObj_CountObjects),
reinterpret_cast<void *>(FPDFFormObj_GetObject),
};
return bindings;
}
Expand Down

0 comments on commit fc36f3c

Please sign in to comment.