FPDF_SaveAsCopy function

  1. @Native<FPDF_BOOL Function(FPDF_DOCUMENT, Pointer<FPDF_FILEWRITE>, FPDF_DWORD)>(FPDF_DOCUMENT, ffi.Pointer<FPDF_FILEWRITE>, FPDF_DWORD)>()
int FPDF_SaveAsCopy(
  1. FPDF_DOCUMENT document,
  2. Pointer<FPDF_FILEWRITE> file_write,
  3. 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,
);