- Export the diagram as a pdf file as normal. It is unnecessary to change the size of the page.
- Use pdfcrop to automatically crop the exported pdf file. For example, you may use the following command:
pdfcrop original.pdf cropped.pdf
More usages are found at: http://manpages.ubuntu.com/manpages/gutsy/man1/pdfcrop.1.html
You may also add some margins. There are options available.
pdfcrop has some dependencies on tex tools and it is included in the package texlive-extra-utils. To install it on ubuntu (or its derivations), you may use the following command:
sudo apt-get install texlive-extra-utils
No comments:
Post a Comment