![]() ![]() Here is a sample script to generate an A4 portrait PDF taken from here, save as your configFile.js var page = require('webpage').create(),Ĭontents: phantom. Usage is generally as follows: phantomjs configFile.js htmlFile.html output.pdf The site has a quick start guide and there are plenty of articles online to assist you. You'll be required to write a simple Javascript function to tell it what to do. It has command line functionality and works out of the box. $ : Set your registration key for PDF Tools software.PhantomJS can do the job for you. S "attachfiles=C:\filelist.lst": Retrieve files from a. S "attachfiles=file1|file2|file3|file4" : Attach files into PDF file S "recoverpage=1" : Recover page content by XREF table S "pdfversion=1.5" : Set version number to PDF file S "pdfversion=1.4" : Set version number to PDF file S "collection=false": Disable collection feature for attachments S "collection=true" : Enable collection feature for attachments S "securitykey=XXX" : Set permission bits directly S "permission=128": Allowed print the document with high resolution S "permission=64" : Allowed assemble the document S "permission=32" : Allowed extract text and graphics from the document S "permission=16" : Allowed fill in interactive form fields S "permission=8" : Allowed add or modify annotations S "permission=4" : Allowed copy text and graphics from the document S "permission=2" : Allowed modify the content of the document S "permission=1" : Allowed print the document S "keylen=2" : 128 bit AES encryption (Acrobat 7 or higher) S "keylen=1" : 128 bit RC4 encryption (Acrobat 5 or higher) S "keylen=0" : 40 bit RC4 encryption (Acrobat 3 or higher) S "keylen=X" : Key length (40 or 128 bit) S "ownerpwd=XXX" : Set 'owner password' to PDF file S "openpwd=XXX" : Set 'open password' to PDF file S "skip=true" : Skip existing PDF files instead of overwrite S "linearize=true" : Optimize PDF file for fast web view M : Look for damaged PDF files in all subdirectories ! : Change PDF document to Linearized document J : Extended scale PDF page : Change PDF page content rotation ![]() This will remove the 'Click to add title' and stuff. Move the PDF out of the directory to make step 2 easier. w : Set the current page when opening the file Then in the terminal, navigate to that directory and run: convert filename.pdf filename.jpg This will spit out a jpeg of each page in the PDF. q : Set OpenAction, OpenAction include "FitBH","FitH", "Fit" "FitWindow","CenterWindow", "DisplayDocTitle", "HideWindowUI" n : Set PageViewReferce, PageViewReferce include "HideToolbar", "HideMenubar", g : Set PageLayOut, PageLayOut include "SinglePage", "OneColumn", "TwoColumnRight", "TwoColumnLeft", X : Remove or set Crop, Bleed, Trim, Art boxes "UseOC", set one or more items before seperate by comma or blank "UseOutlines", "UseThumbs", "FullScreen", b : Set PageMode, PageMode include "UseNone", e : Set MetaData, select a XML file for set metadata or D : Write document summaries into PDF file in ASCII R : Show 'Creator' information for input PDF file(s) r : Show the detail information for input PDF file(s) If you aren't specify the -o parameter, the default output file will overwrite the input PDF file i : A PDF filename or a directory for input If you need to edit PDF descriptions such as title, author, keywords, etc., you can use the following options: -t, -a, -s, -k, -d, -m, -c and -p. : set options to edit PDF description, PDF properties, etc. In the opened MS-DOS command prompt window, please refer to the following command line template to input your commands. Open MS-DOS command prompt window in which you can input commands.Ģ. In the unzipped folder, you can see an executable file named pdftools.exe which is the called program. Download and unzipĭownload the package of VeryPDF Advanced PDF Tools Command Line Then, please unzip the package to a folder in your computer disk. In the following contents, you will see how to use this command line application. In addition, it allows users to recompress images of PDF or remove PDF metadata, Java script, thumbnails, etc. It also supports to set PDF OpenAction, page size, permissions, passwords, etc. VeryPDF Advanced PDF Tools Command Line is a command line application that can append and edit PDF descriptions and PDF properties such as title, subject, author, keywords, created time, modified time, creator and producer, etc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |