WebPDF.AccountInstance
Methods
-
<static> getUserAccount()
-
Gets account name of current user.
Returns:
Account name of current user.
-
<static> getUserConfig()
-
Returns:
The configuration data of current user.
-
<static> getWatermarkInfo()
-
Get the information of user's watermark.
Returns:
The information of user's watermark.
- Type
- Object
-
<static> setUserAccount(userAccount)
-
Set account of current user.
Parameters:
Name Type Description userAccount
String The account name of current user to be set.
-
<static> setUserConfig(cfg)
-
Set current user's configuration data.
Parameters:
Name Type Description cfg
WebPDF.Config.UserData The user's configuration data.
-
<static> setWatermarkInfo(watermarkInfo)
-
Set the user's watermark information.
Parameters:
Name Type Description watermarkInfo
Object The format of the user's watermark information.
Properties
Name Type Description rotation
number If true, the watermark will be added; otherwise, it will not.
add
boolean The rotation degrees of the watermark.
scale
number The scaling of the watermark.
fontFamily
String The font of the watermark.
content
String The content of the watermark.
color
String The color of the watermark.
isDynamic
boolean If true, the following will show, according to the specified settings:
IP, User Name, Open Time. Otherwise, it will only show the content inputted by user.userName
boolean If true, will show the User Name when isDynamic is true; otherwise, it will not show.
ip
boolean If true, will show IP when isDynamic is true; otherwise, it will not show.
openTime
boolean If true, will show the Open Time when isDynamic is true; otherwise, will not show.