FPDF_SaveAsCopy method
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
int FPDF_SaveAsCopy(
FPDF_DOCUMENT document,
ffi.Pointer<FPDF_FILEWRITE> file_write,
int flags,
) {
return _FPDF_SaveAsCopy(document, file_write, flags);
}