Using Xournal you can annotate PDFs and add custom images (e.g. a transparent PNG). Although it is used for taking freehand notes and drawing, it can also annotate PDFs.
Install Xournal through the Ubuntu Software Center
Select "Annotate PDF" from the File menu and select your PDF file to be signed.
Click the "Image" button in the ...
convert, the ImageMagick utility used in Ketan's answer, also allows you to write something like
convert xc:none -page Letter a.pdf
convert xc:none -page A4 a.pdf
or (for horizontal A4 paper)
convert xc:none -page 842x595 a.pdf
etc., without creating an empty text file. @chbrown noticed that this creates a smaller pdf file.
"xc:" means "X Constant ...
One solution that usually works is to use pdfjam from the texlive distribution
> pdfinfo in.pdf
Producer: Acrobat Distiller 6.0.1 (Windows)
Page size: 612 x 792 pts (letter)
Page rot: 0
File size: 66676 bytes
PDF version: 1.4
> pdfjam --outfile out.pdf --paper a4paper in.pdf
> pdfinfo out.pdf
Just use pdftk.
For rotating clockwise:
pdftk input.pdf cat 1-endeast output output.pdf
For rotating anti-clockwise:
pdftk input.pdf cat 1-endwest output output.pdf
Regarding the installation of pdftk on Fedora, I found this link.
Just an addition since I had issues with the python script (and several other solutions): for me mutool worked great. It's a simple and small addition shipped with the elegant mupdf reader. So you can try:
mutool poster -y 2 input.pdf output.pdf
For horizontal splits, replace y with x. And you can, of course, combine the two for more complex solutions.
I just stumbled upon this thread and saw that there is no good solution mentioned yet. I found that (at least on Debian and Ubuntu) pdfjam comes with the following commands:
I think that is the easiest and fastest approach. These are scripts using the pdfjam command properly. Btw. the pdfjam is a virtual ...
One of the canonical tools for this is pdfinfo, which comes with xpdf, if I recall. Example output:
[0 1017 17:10:17] ~/temp % pdfinfo test.pdf
CreationDate: Sun May 18 09:53:06 2014
ModDate: Sun May 18 09:53:06 2014
I found these 2 method via Google, in this thread titled: Re: Flattening PDF Files at the UNIX Command Line.
Method #1 - using Imagemagick's convert:
$ convert -density 300 orig.pdf flattened.pdf
NOTE: The quality is reported to be so so with this approach.
Method #2 - Using pdf2ps -> ps2pdf:
$ pdf2ps orig.pdf - | ps2pdf - flattened.pdf
NOTE: This ...
The 'pts' unit used by pdfinfo denotes a PostScript point. A PostScript point is defined in terms of an inch and a resolution of 72 dots per inch:
In the late 1980s to the 1990s, the traditional point was supplanted by the desktop publishing point (also called the PostScript point), which was defined as 72 points to the inch (1 point = 1⁄72 inches = 25.4⁄...
Like the smallest possible GIF, the smallest possible blank-page PDF needs to be worked out by hand, because it's so small that unnecessary-but-harmless bits of metadata become a significant part of the file size, and compression actually makes things bigger. It also requires careful attention to the rules in the PDF specification about what bits of the ...
Best and easiest way out there is to use pypdfocr as it doesn't change the pdf. pypdfocr is a python module link here.
At the end you will have another your_document_ocr.pdf the way you want it with searchable text. The app doesn't change the quality of the image. Increases the size of the file a bit by adding the overlay text.
You can use the program pdftk to set both the owner and/or user password
pdftk input.pdf output output.pdf owner_pw xyz user_pw abc
where owner_pw and user_pw are the commands to add the passwords xyz and abc respectively (you can also specify one or the other but the user_pw is necessary in order to prohibit opening).
You also might want to override the ...
You can use gs - GhostScript (PostScript and PDF language interpreter and previewer) as follows:
Set pdfwrite as output device by -sDEVICE=pdfwrite
Use the appropriate -dPDFSETTINGS.
Presets the "distiller parameters" to one of four predefined settings:
/screen selects low-resolution output ...
The gs example
The gs command you're running above has a trailing $1 which is typically meant for passing command line arguments into a script. So I'm not sure what you actually tried but I'm guessing that you tried to put that command into a script, script.sh:
gs -sOutputFile=output.pdf \
-q -dNOPAUSE -dBATCH -dSAFER \
pandoc is a great command-line tool for file format conversion.
The disadvantage is for PDF output, you’ll need LaTeX.
The usage is
pandoc test.html -t latex -o test.pdf
If you don't have LaTeX installed, then I recommend htmldoc.
Cited from Creating a PDF
By default, pandoc will use LaTeX to create the PDF, which requires that a LaTeX engine be installed....
I guess, it is not possible to see PDF file in terminal but you can check it's content by converting PDF file to text.
You can do this as:
It will produce a.txt file which you can read into VIM.
For ubuntu-variant, this binary is available in following package.
What you really want to use is:
$ convert a.png b.png -compress jpeg -resize 1240x1753 \
-extent 1240x1753 -gravity center \
-units PixelsPerInch -density 150x150 multipage.pdf
-extent actually extends the image to be 1240x1753, while -resize keeps the image's ratio, fitting it into either 1240x... or ...x1753.
In Linux Mint 18.3 (I believe in other Debian derived distributions as well) you have a simple command line tool named qpdf.
You can use: qpdf in.pdf out.pdf --rotate=[+|-]angle[:page-range].
From the documentation:
Apply rotation to specified pages. The page-range portion of the option value has the same format as page ...
NOTE: The 9.x branch of reader has been EOL'd as of June 26, 2013. If you need native Adobe Reader support on Linux, 9.x is your only option! 10 doesn't list Linux as being supported, and likely never will. More on it too here: Adobe abandons Linux.
Many may question the relevance of needing Adobe Reader but there are several use cases that the open source ...
Another utility worth looking into is exiftool. It might not be the right tool in your specific case as it doesn't report any information on the geometry of the document but in general it is probably the most feature-complete tool for inspecting PDF metadata.
Here's an example of a command that will print all available meta information (-a), sorted by ...
Yes this is possible, it's just not well documented. Or documented at all for that matter. The only reference I found was in an issue report.
Once a file is opened, you can change the first page location by running :set first-page-column 2 from the command line.
This same line can be added to the rc file at ~/.config/zathura/zathurarc to make it the default....
You can use ImageMagick: display or convert - e.g. to rotate it clockwise use
convert -rotate 90 <file>.pdf <rotated-file>.pdf
Use -90 for a counterclockwise rotation.
N.B. Only use this method when the original image is a bitmap (e.g. produced by scanning). If the original image is not a bitmap, this method will convert it to one and quality ...
This is not a PDF file. This is a Word document. (Well, it's an “Office Open XML” document, but it's Microsoft's format.) These files are zip files under the hood, but the individual files contained in the zip don't make sense on their own.
The person who sent it probably made a mistake when they tried to save it as a PDF, and just renamed the file instead ...