CopySafe PDF Protector - Command Line
|
|
| The
COM command-line version is now included in the CopySafe PDF
Protector, which can be operated from
command line or by interfacing with a web service via a
DLL,
enabling CopySafe PDF Protector to run server-side for
documents uploaded remotely. |
CopySafe PDF command line will convert single files or batch convert files by the folder and save the newly encrypted PDFs to another folder. The folders used for the in/out folders can be set by parameters that you pass in the command line.
When running the command line from a command prompt or .bat file you can set the parameters at will. When running from a web site, documents can be uploaded to an incoming folder for batch conversion by setting a Scheduled task. Or they can be converted on the fly by using the upload scripts provided
in the DRM add-ons.
When using a member login, their UserID can be passed so that new a folder is created within the outgoing folder.
Installation
Depending on whether you want run the command line version locally or from your web site online, simply follow the following steps for either operation.

The following parameters are available:
| Path to CSPDFprotector.com |
| /input {PATH} |
Path to the input file or folder |
| /output {PATH} |
Path to the folder to save the converted
file/s |
| The following
parameters are optional: |
| /b |
Enable batch mode (all files in nominated
folder) |
| /drm {URL} |
Enable DRM, setting the Document URL |
| /expiry {DATE} |
Set expiry date in quoted string, eg:
"30.10.2008" in DD.MM.YYYY format |
| /timeserver |
Set to use online time server instead of
local time |
| /password {PASSWORD} |
Set encryption password, eg: "mypassword" |
| /print |
Enable print option. Default is not allow. |
| /remote |
To allow remote terminal view. Default
is to not allow. |
| /err {PATH} |
File path to log errors in Non UI process
conversion. |
If an expiry date is required it must be quoted (in double quotes) in DD.MM.YYYY format. Also all the PATH strings must be passed in double quotes. If the /err {{PATH} is not supplied, then all the errors are logged in Copysafe.err named log file which can be found in the same folder where
the Protector exe is located and running from. There could be one or more lines of error description, it is possible that for batch conversion same error message is logged for each PDF file in batch.
For example your command line will look something like:
To process PDF in batches by folder selection:
CSPDFprotector /b /input "C:\CopysafeCMD\in"
/output "C:\CopysafeCMD\out"
To process PDF by selected file to output folder:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out"
To process PDF with "passwordtext" as password:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out" /password "passwordtext"
To process PDF with expiry date and local time check:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out" /expiry "30.10.2012"
To process PDF with expiry date and online time server check:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out" /expiry "30.10.2012" /timeserver
To process PDF and allow print:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out" /print
To process PDF and allow remote view:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out" /remote
To process PDF for DRM:
CSPDFprotector /input "C:\CopysafeCMD\in\test.pdf"
/output "C:\CopysafeCMD\out" /drm "http://pdf.artistscope.com"
DRM Add-ons for use with CopySafe PDF Protector
CopySafe PDF Protector includes both a Windows GUI (executable) and a COM object
which has been specially optimized for command-line operation. The COM object
can be used via a DOS prompt or run from a .bat file. However to increase the
scope of its use there are now additional add-ons to enable you to use the
Protector online, running server side and controllable from your web pages.
Webmaster's Note:
CopySafe PDF is by far more secure than all other eBook and PDF document
protection solutions because it was designed to be so. Performing a web
search on "extract password from PDF" or "remove DRM from eBooks"
can provide an insight to how
useless most document protection really is. Any similarity
between the total control management of documents provided by ArtistScope DRM
and the "claims" of other document solutions is
not a coincidence.
CopySafe PDF is ideal for the distribution of documents
by download and on CD, but if your documents are to be
viewed from your web site, then you should check
out the ASPS Web Reader which is specially designed for copy protecting web content
instead of exposing it like other web browsers do. ASPS
provides the most secure copy protection for all web
page content including PDF, Flash and video. |
|
|
 |
|