Graphics, Figures & Tables ⇒ Change bounding box size in .pdf image
Change bounding box size in .pdf image
I have been using a program called DipTrace to draw a simple circuit diagram. Unfortunately the program does not have any image export functions so to preserve the diagrams vector format I printed the document to a .pdf using cutepdfwriter.
This has given me an A4 sized page with the image in the bottom left and corner.
I would like to include this image in my latex file however I don't know how to change the size of the pdf without converting it to a raster image and thus losing the vector format which makes it look not as nice in my document.
Any ideas?
Thanks in advance.
The .pdf is attached.
- Attachments
-
- taest1.pdf
- (2.91 KiB) Downloaded 364 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Change bounding box size in .pdf image
- Cut the actual diagram to size by using the Perl script pdfcrop. For Windows you can get a Perl interpreter for free from ActiveState.
- Use the clip or viewport option of the \includegraphics command from the graphicx package to show only the relevant part of the PDF file.
For such diagrams pgf/tikZ might be an interesting alternative for you.
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Change bounding box size in .pdf image
In the help it said the the units were in bp or something .. I had expected pixels and just put in 10 as an arbitrary figure to see if it would extend the margins 10 pixels, it infact just shrunk the bbox approprately so I used it.
Anyway thanks again.