FPDF_SaveAsCopy function
- @Native<FPDF_BOOL Function(FPDF_DOCUMENT, Pointer<
FPDF_FILEWRITE> , FPDF_DWORD)>(FPDF_DOCUMENT, ffi.Pointer<FPDF_FILEWRITE>, FPDF_DWORD)>()
- FPDF_DOCUMENT document,
- Pointer<
FPDF_FILEWRITE> file_write, - int flags
Function: FPDF_SaveAsCopy Saves the copy of specified document in custom way. Parameters: document - Handle to document, as returned by FPDF_LoadDocument() or FPDF_CreateNewDocument(). file_write - A pointer to a custom file write structure. flags - Flags above that affect how the PDF gets saved. Pass in 0 when there are no flags. Return value: TRUE for succeed, FALSE for failed.
Implementation
@ffi.Native<
FPDF_BOOL Function(FPDF_DOCUMENT, ffi.Pointer<FPDF_FILEWRITE>, FPDF_DWORD)
>()
external int FPDF_SaveAsCopy(
FPDF_DOCUMENT document,
ffi.Pointer<FPDF_FILEWRITE> file_write,
int flags,
);