28 #ifndef _FSPDF_DOCUMENT_W_H_ 29 #define _FSPDF_DOCUMENT_W_H_ 125 #ifndef _FSPDF_DEF_MACRO_SAVEAS_ 126 #define _FSPDF_DEF_MACRO_SAVEAS_ 134 #define FSPDF_SAVEFLAG_INCREMENTAL 0x1 136 #define FSPDF_SAVEFLAG_NOORIGINAL 0x2 138 #define FSPDF_SAVEFLAG_REMOVESECURITY 0x4 140 #define FSPDF_SAVEFLAG_OBJECTSTREAM 0x8 142 #define FSPDF_SAVEFLAG_OPTIMIZE 0x10 157 #define FSPDF_SAVEFLAG_INCREMENTONLY 0x20 163 #define FSPDF_SAVEFLAG_LINEARIZED 0x40 168 #ifndef _FSPDF_DEF_MACRO_IMPORTFLAG_ 169 #define _FSPDF_DEF_MACRO_IMPORTFLAG_ 177 #define FSPDF_IMPORTFLAG_NORMAL 0x00 179 #define FSPDF_IMPORTFLAG_WITHLAYERS 0x01 181 #define FSPDF_IMPORTFLAG_SHARESTREAM 0x02 267 FSCRT_PROGRESS* importProgress);
322 FSCRT_PROGRESS* importProgress);
389 FS_INT32 flags, FSCRT_PROGRESS* importProgress);
FS_RESULT FSPDF_Bookmark_SetAction(FSPDF_BOOKMARK_ITERATOR iterator, FS_INT32 index, const FSPDF_ACTIONDATA *actionData)
Set bookmark action.
FS_RESULT FSPDF_Doc_StartImportPages(FSCRT_DOCUMENT dstDoc, FS_INT32 startIndex, FSCRT_DOCUMENT srcDoc, const FS_INT32 *pageRanges, FS_INT32 count, FSCRT_PROGRESS *importProgress)
To start a progressive process of inserting a range of pages from a extra source document into the ta...
FS_RESULT FSPDF_Bookmark_RemoveAllActions(FSPDF_BOOKMARK_ITERATOR iterator)
Remove all bookmark actions.
FS_RESULT FSPDF_Doc_SaveAsWrapperFile(FSCRT_DOCUMENT wrapperDoc, FSCRT_FILE file, const FSPDF_WRAPPERDATA *wrapperData, FS_DWORD userPermissions, const FSCRT_BSTR *ownerPassword)
Save a PDF document as a wrapper file.
FS_RESULT FSPDF_Doc_RemoveJSActionByName(FSCRT_DOCUMENT document, const FSCRT_BSTR *name)
Remove a javascript action from the PDF document by the name of javascript action.
FS_RESULT FSPDF_Bookmark_InsertAtPos(FSPDF_BOOKMARK_ITERATOR iterator, FSPDF_BOOKMARKPOS newParentPos, FS_INT32 childIndex)
Insert a bookmark to be the child (with specific index) of another bookmark with specific position an...
FS_RESULT FSPDF_Doc_SetDisplayMode(FSCRT_DOCUMENT document, FS_INT32 displayMode)
Set display mode specified in PDF document.
FS_RESULT FSPDF_Doc_Create(FSCRT_DOCUMENT *document)
Create a new document object.
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
Structure for bookmark data.
Definition: fpdf_document_r.h:2248
FS_RESULT FSPDF_Attachments_InsertAttachment(FSPDF_ATTACHMENTS attachments, FS_INT32 index, FSPDF_ATTACHMENT attachment)
Insert an attachment.
FS_RESULT FSPDF_Bookmark_Update(FSPDF_BOOKMARK_ITERATOR iterator)
Update specific bookmark iterator object after structure of bookmark tree has been changed...
FS_RESULT FSPDF_Bookmark_SetData(FSPDF_BOOKMARK_ITERATOR iterator, const FSPDF_BOOKMARKDATA *bmData)
Set data to current bookmark positioned by parameter iterator.
FS_RESULT FSPDF_ViewerPref_SetUIVisibility(FSCRT_DOCUMENT document, const FSCRT_BSTR *uiItem, FS_BOOL uiVisible)
Set UI visibility in viewer preferences.
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
Structure for date and time.
Definition: fs_base_r.h:2020
FS_RESULT FSPDF_PageLabels_RemoveAll(FSCRT_DOCUMENT document)
Delete all page labels in the PDF document.
FS_RESULT FSPDF_Bookmark_InsertAction(FSPDF_BOOKMARK_ITERATOR iterator, FS_INT32 index, const FSPDF_ACTIONDATA *actionData)
Insert bookmark action.
FS_RESULT FSPDF_ViewerPref_SetAreaType(FSCRT_DOCUMENT document, const FSCRT_BSTR *boxItem, FS_INT32 boxType)
Set the page box type in viewer preferences.
FS_RESULT FSPDF_Metadata_SetString(FSCRT_DOCUMENT document, const FSCRT_BSTR *key, const FSCRT_BSTR *string)
Set a UTF-8 string value to parameter key in metadata.
FS_RESULT FSPDF_Metadata_DeleteKey(FSCRT_DOCUMENT document, const FSCRT_BSTR *key)
Delete metadata key and value.
FS_RESULT FSPDF_Metadata_SetDateTime(FSCRT_DOCUMENT document, const FSCRT_BSTR *key, const FSCRT_DATETIMEZONE *dt)
Set a date value to parameter key in metadata.
Structure for an action data.
Definition: fpdf_base_r.h:841
FS_RESULT FSPDF_Doc_InsertAction(FSCRT_DOCUMENT document, FS_INT32 trigger, FS_INT32 index, const FSPDF_ACTIONDATA *actionData)
Insert document trigger action.
FS_RESULT FSPDF_ViewerPref_SetReadingDirection(FSCRT_DOCUMENT document, FS_INT32 direction)
Set reading direction in viewer preferences.
FS_RESULT FSPDF_Metadata_SetStringArray(FSCRT_DOCUMENT document, const FSCRT_BSTR *key, const FSCRT_BSTR *stringArray, const FS_INT32 count)
Set an UTF-8 string array value to parameter key in metadata.
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
FS_RESULT FSPDF_ViewerPref_SetPrintScale(FSCRT_DOCUMENT document, const FSCRT_BSTR *printScale)
Set page scaling in viewer preferences.
FS_RESULT FSPDF_Attachments_RemoveAttachment(FSPDF_ATTACHMENTS attachments, FSPDF_ATTACHMENT attachment)
Remove an attachment.
FS_RESULT FSPDF_ViewerPref_SetPrintCopies(FSCRT_DOCUMENT document, FS_INT32 copies)
Set the number of copies to be printed.
FS_RESULT FSPDF_Doc_StartImportPagesFromFileName(FSCRT_DOCUMENT dstDoc, FS_INT32 startIndex, const FSCRT_BSTR *srcFileName, const FSCRT_BSTR *password, const FSCRT_BSTR *layerName, const FS_INT32 *pageRanges, FS_INT32 count, FS_INT32 flags, FSCRT_PROGRESS *importProgress)
To start a progressive process of inserting a range of pages from an extra source document which spec...
FS_RESULT FSPDF_Bookmark_Remove(FSPDF_BOOKMARK_ITERATOR iterator)
Remove the current bookmark item positioned by parameter iterator.
FS_RESULT FSPDF_ViewerPref_SetNonFullScreenPageMode(FSCRT_DOCUMENT document, FS_INT32 displayMode)
Set display mode for non full-screen mode in viewer preferences.
FS_RESULT FSPDF_Doc_RemoveAction(FSCRT_DOCUMENT document, FS_INT32 trigger, FS_INT32 index)
Remove document trigger action.
FS_RESULT FSPDF_Doc_StartSaveToFile(FSCRT_DOCUMENT document, FSCRT_FILE file, FS_INT32 flag, FSCRT_PROGRESS *saveProgress)
Start saving a PDF document to another file in a progressive manner.
FS_RESULT FSPDF_Bookmark_RemoveAction(FSPDF_BOOKMARK_ITERATOR iterator, FS_INT32 index)
Remove a specific bookmark action.
FS_RESULT FSPDF_Doc_RemoveAllActions(FSCRT_DOCUMENT document, FS_INT32 trigger)
Remove all document trigger action.
Structure for byte string.
Definition: fs_base_r.h:613
FS_RESULT FSPDF_Doc_EmbedFont(FSCRT_DOCUMENT document, FSCRT_FONT font)
Embed a PDF font to the PDF document.
Structure for wrapper data.
Definition: fpdf_document_r.h:988
FS_RESULT FSPDF_Doc_SetFileVersion(FSCRT_DOCUMENT document, FS_INT32 version)
Specify the PDF file version which will be stored in PDF header section. This function does not check...
FS_RESULT FSPDF_Doc_StartImportPagesWithLayers(FSCRT_DOCUMENT dstDoc, FS_INT32 startIndex, FSCRT_DOCUMENT srcDoc, const FSCRT_BSTR *layerName, const FS_INT32 *pageRanges, FS_INT32 count, FSCRT_PROGRESS *importProgress)
To start a progressive process of inserting a range of pages from a extra source document with its la...
FS_RESULT FSPDF_Bookmark_Insert(FSPDF_BOOKMARK_ITERATOR iterator, FS_INT32 pos, const FSPDF_BOOKMARKDATA *bmData)
Insert a new bookmark at parameter pos bookmark position and set the data.
FS_RESULT FSPDF_PageLabels_SetRangeInfo(FSCRT_DOCUMENT document, FS_INT32 start, FS_INT32 style, const FSCRT_BSTR *prefix, FS_INT32 st)
Set page labels of PDF pages with a specified range.
FS_RESULT FSPDF_Doc_SetAction(FSCRT_DOCUMENT document, FS_INT32 trigger, FS_INT32 index, const FSPDF_ACTIONDATA *actionData)
Set document trigger action.
FS_RESULT FSPDF_ViewerPref_SetPrintRanges(FSCRT_DOCUMENT document, const FS_INT32 *pageRanges, FS_INT32 count)
Set the page ranges to be printed.
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160