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