15 #ifndef FS_CONNECTEDPDF_H_ 16 #define FS_CONNECTEDPDF_H_ 41 #if (_FX_OS_ != _FX_IOS_ && !defined(_SWIG_IOS_) && !defined(_OC_) && !defined(_SWIG_MACOC_)) 70 #endif // (_FX_OS_ != _FX_IOS_ && !defined(_SWIG_IOS_) && !defined(_OC_) && !defined(_SWIG_MACOC_)) 147 ConnectedPDF(
const char* clientid,
const char* user_token,
const char* content_key,
const char* file_path);
168 ConnectedPDF(
const char* clientid,
const char* user_token,
const char* content_key,
const wchar_t* file_path);
613 bool SaveAs(
const char* file_path);
632 #endif // FS_PDFDOC_H_ ~ConnectedPDF()
Destructor function.
String device_model
The device model.
Definition: fs_connectedpdf.h:56
String GetEndpoint()
Get the ConnectedPDF document endpoint from the loaded document.
String product_name
The product name of a ConnectedPDF client.
Definition: fs_connectedpdf.h:62
file writing interface.
Definition: fx_stream.h:449
String mac_address
The MAC address.
Definition: fs_connectedpdf.h:58
CFX_Object Object
Object type.
Definition: fs_basictypes.h:219
bool IsEmpty() const
Check whether current object is empty or not.
bool SaveAs(const char *file_path)
Save the current ConnectedPDF document as another PDF file.
String GetVersionID()
Get the ConnectedPDF document version ID from the loaded document.
Header file for PDF document related definitions and classes.
ConnectedPDF & operator=(const ConnectedPDF &other)
Assign operator.
bool operator!=(const ConnectedPDF &other) const
Not equal operator.
String RefreshVersionID()
Refresh the ConnectedPDF document version ID from the loaded document.
file reading interface.
Definition: fx_stream.h:555
foxit::ErrorCode ConvertToCPDF(const char *endpoint, const char *file_name)
Convert the loaded document to a ConnectedPDF document.
Definition: fs_pdfdoc.h:338
foxit::ErrorCode ConvertToCDRM(const char *endpoint, const char *wrapper_path, const char *file_name)
Convert the loaded document to a ConnectedPDF DRM document.
String GetUserToken()
Get the user token.
String GetContentKey()
Get the content key if the loaded document is a ConnectedPDF DRM document.
String device_name
The device name.
Definition: fs_connectedpdf.h:54
String product_vendor
The vendor of the product.
Definition: fs_connectedpdf.h:64
bool IsCPDF()
Check whether the loaded document is a ConnectedPDF document or not.
ErrorCode
Enumeration for error code.
Definition: fs_basictypes.h:236
Structure that represents the client information which is used to apply for a client ID from Connecte...
Definition: fs_connectedpdf.h:49
ConnectedPDF(const char *clientid, const char *user_token, const char *content_key, const char *file_path)
Constructor, with parameters and from an existing PDF file path.
foxit::ErrorCode SetACL(const String &acl)
Set ACL of a ConnectedPDF DRM document.
static String GetUserTokenFromServer(const char *endpoint, const String &user_email, const String &password)
Get the user token from ConnectedPDF server.
String device_id
The device ID that represents a device.
Definition: fs_connectedpdf.h:52
String GetOwnerEmail()
Get the ConnectedPDF document owner email.
String product_language
The language of the product.
Definition: fs_connectedpdf.h:68
void * FS_HANDLE
Handle type.
Definition: fs_basictypes.h:216
Header file for common definitions and classes.
String GetDocURI()
Get the ConnectedPDF document URI from the loaded document.
Definition: fs_basictypes.h:342
String product_version
The version of the product.
Definition: fs_connectedpdf.h:66
bool IsCDRM()
Check whether the loaded document is a ConnectedPDF DRM document or not.
static String GetClientIDFromServer(const char *endpoint, ClientInfo *client_info)
Apply for a client id from ConnectedPDF server using the input client info.
Foxit namespace.
Definition: fs_connectedpdf.h:26
String GetACL()
Get ACL of a ConnectedPDF DRM document.
BYTE STRING CLASS.
Definition: fx_string.h:317
Definition: fs_connectedpdf.h:39
#define NULL
The null-pointer value.
Definition: fx_system.h:773
String os
The operation system.
Definition: fs_connectedpdf.h:60
bool IsOwner()
Check whether current user is the owner.
foxit::pdf::PDFDoc GetDocument()
Get the associated PDF document object.
bool operator==(const ConnectedPDF &other) const
Equal operator.
foxit::ErrorCode RemoveCDRM()
Remove the ConnectedPDF DRM protection of a ConnectedPDF document.
String GetOwnerName()
Get the ConnectedPDF document owner name.
void SetUserToken(const String &user_token)
Set the user token to switch it.