Aspose.PDF CLI App 24.12 Release Notes

Aspose.PDF CLI App is a command line interface application for PDF documents processing.

Major Features

Added commands

repl <PDF-file> <find-text> <replace-text> [<result-file>]
	 replaces occurances of <find-text> to <replace-text>
	 if the name of the result file is not specified
	 the source pdf file will be overwritten
	 example:
	 asposepdftool repl source.pdf "The Magazine" "The Book" result.pdf

rf(replfont) <PDF-file> <find-font> <replace-font> [<result-file>]
	 replaces <find-font> to <replace-font>
	 if the name of the result file is not specified
	 the source pdf file will be overwritten
	 example:
	 asposepdftool rf source.pdf Arial Helvetica

attach <PDF-file> <attachment-file> [<result-file>] [-desc=<description>]
	 adds attachment to the PDF document
	 if the name of the result file is not specified
	 the source pdf file will be overwritten
	 Options:
	 -desc=<description>   	 attachment description
	 example:
	 asposepdftool attach source.pdf attachment.txt -desc="attachment description"

remattach <PDF-file> [-name=<attachment-name>] [<result-file>]
	 remove attachments from the PDF document
	 if the name of the attachment is not specified
	 all attachments will be removed
	 if the name of the result file is not specified
	 the source pdf file will be overwritten
	 Options:
	 -name=<attachment-name>   	 name of attachment to remove
	 example:
	 asposepdftool remattach source.pdf -name=attachment.txt

pass [options] <PDF-file> [<result-file>]
	 changes passwords of the pdf document
	 if the name of the result file is not specified
	 the source pdf file will be overwritten
	 Options:
	 -p=<string>                          current owner password. Mandatory
	 -op=<string>                         new owner password. Mandatory
	 -up=<string>                         new user password. Mandatory
	 example:
	 asposepdftool pass -p=currentpass -op=ownerpass -up=userpass source.pdf

reminfo <PDF-file> [<result-file>]
	 delete document metadata
	 if the name of the result file is not specified
	 the source pdf file will be overwritten
	 example:
	 asposepdftool reminfo source.pdf

layers <PDF-file>
	 prints document layers
	 example:
	 asposepdftool layers source.pdf

count <PDF-file>
	 prints numbers of words and characters in the document
	 example:
	 asposepdftool count source.pdf

svg <PDF-file> [<result-file>]
	 converts the PDF document into SVG format
	 if the name of the result file is not specified
	 it will be same as source file with .svg extension
	 example:
	 asposepdftool svg source.pdf

tex <PDF-file> [<result-file>]
	 converts the PDF document into TeX format
	 if the name of the result file is not specified
	 it will be same as source file with .tex extension
	 example:
	 asposepdftool tex source.pdf

xps <PDF-file> [<result-file>]
	 converts the PDF document into XPS format
	 if the name of the result file is not specified
	 it will be same as source file with .xps extension
	 example:
	 asposepdftool xps source.pdf

cdr2pdf <input-file> [<result-file>]
	 converts the CDR document into PDF
	 if the name of the result file is not specified
	 it will be same as source file with .pdf extension
	 example:
	 asposepdftool cdr2pdf source.cdr result.pdf

djvu2pdf <input-file> [<result-file>]
	 converts the DJVU document into PDF
	 if the name of the result file is not specified
	 it will be same as source file with .pdf extension
	 example:
	 asposepdftool djvu2pdf source.djvu result.pdf

fromtxt <input-file> [<result-file>]
	 creates PDF document from text
	 if the name of the result file is not specified
	 it will be same as source file with .pdf extension
	 example:
	 asposepdftool fromtxt source.txt result.pdf

fromimg <input-file> [<result-file>] [-s=<page size>] [-m=<margins>] [-l]
	 creates PDF document from image
	 supports Bmp, Png, Jpeg, Jpeg200, Tiff, Dicom, Gif, Svg, Djvu, Cdr images
	 if the name of the result file is not specified
	 it will be same as source file with .pdf extension
	 Options:
	 -s=<page size>     	 A0, A1, A2, A3, A4, A5, A6, B5, PageLetter, PageLegal, PageLedger, P11x17, ImageSize (default)
	 -m=<margins>       	 page margins, default value 10
	 -l                 	 landscape, if not ImageSize is specified
	 example:
	 asposepdftool fromimg source.jpeg result.pdf -s=ImageSize -m=50

Got a Query?

Please share your questions, feedback, bugs and suggestions for improvement on email support-pdf@aspose.com or free forum site https://forum.aspose.com/.