Page 1 of 1

How to set margins PDF

Posted: 2012-02-07T01:33:46-07:00
by Hedgehoguse
Hello!

Convert TXT to PDF, I need to do a multi-PDF, as TXT file size is not known precisely in advance. There is a problem - the margins are zero, or rather, the text goes beyond the page. I'm trying:

Code: Select all

convert -gravity NorthWest -quality 100 -density 600 -background "#ffffff" -font "c:\Windows\Fonts\courbd.ttf" -pointsize 10 -fill "#000000" tmp.txt tmp.pdf
How to place the converted TXT on the page? Will the use-geometry? Or is this setting for other purposes?

Thanks.

Re: How to set margins PDF

Posted: 2012-02-07T22:02:46-07:00
by anthony
IM can only generate Rasterised PDF. That is PDF with a pixmap. The text is not included in the PDF as text!

See A word about Vector Image formats
http://www.imagemagick.org/Usage/formats/#vector

You may need to look at some other tool for generating vector PDF's from test files. There are lots of text to PDF tools out their that does not rasterize the text.