Difference between revisions of "Pdf"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
 
Line 9: Line 9:
 
for the paper format you can also add
 
for the paper format you can also add
 
  -page A4+0+0
 
  -page A4+0+0
 +
 +
= TroubleShooting =
 +
Sometimes, you will not be able to open PDF documents or they will be displayed incorrectly or features - like filling out forms will not work. In this case download Acrobat Reader from http://www.adobe.com/products/reader.html. Then [[open a console]] and install it like this:
 +
<pre>
 +
tweedleburg:~ # chmod 777 AdbeRdr9.4.2-1_i486linux_enu.bin
 +
tweedleburg:~ # ./AdbeRdr9.4.2-1_i486linux_enu.bin
 +
 +
Extracting files, please wait. (This may take a while depending on the configuration of your machine)
 +
 +
This installation requires 145 MB of free disk space.
 +
 +
Enter installation directory for Adobe Reader 9.4.2 [/opt] 
 +
/opt
 +
 +
Installing platform independent files ... Done
 +
Installing platform dependent files ... Done
 +
Setting up libraries ... Done
 +
Setting up desktop and menu icons ... Done
 +
Setting up the browser plugin ... Done
 +
</pre>

Latest revision as of 05:50, 21 September 2011

Display a PDF

To display a PDF example.pdf, open a console and enter

okular example.pdf

Insert a picture into a pdf file

convert scan1*.png text1.ps
ps2pdf13 text1.ps text1.pdf
cat text1.ps | gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=text1.pdf -c save pop -

for the paper format you can also add

-page A4+0+0

TroubleShooting

Sometimes, you will not be able to open PDF documents or they will be displayed incorrectly or features - like filling out forms will not work. In this case download Acrobat Reader from http://www.adobe.com/products/reader.html. Then open a console and install it like this:

tweedleburg:~ # chmod 777 AdbeRdr9.4.2-1_i486linux_enu.bin
tweedleburg:~ # ./AdbeRdr9.4.2-1_i486linux_enu.bin 

Extracting files, please wait. (This may take a while depending on the configuration of your machine)

This installation requires 145 MB of free disk space.

Enter installation directory for Adobe Reader 9.4.2 [/opt]  
/opt

Installing platform independent files ... Done
Installing platform dependent files ... Done
Setting up libraries ... Done
Setting up desktop and menu icons ... Done
Setting up the browser plugin ... Done