You are not logged in.

#1 2009-10-07 15:51:12

ilembitov
Member
Registered: 2008-10-07
Posts: 124

"Printing" to PS/PDF

There is a feature I often use in FF: print the current page to file (PDF/PS), which saves the entire page as it appears to me, paginated.
I found a nice markdown implementation in C - it is called Discount: http://www.pell.portland.or.us/~orc/Code/markdown/
It doesn't require Perl, Ruby or Python installed (not to mention Haskell), it just converts Markdown source files to xhtml, applies SmartyPants optimizations (which is essentially just a better punctuation) and uses some MarkDown extensions. And it is developed pretty actively.
Here is the PKGBUILD: http://aur.archlinux.org/packages.php?ID=30075
The thing I need is to be able to get a PDF/PS output from xhtml source file. So I am looking for something like that FF feature: something that could convert my xhtml markup to PS/PDF correctly, while I should be able to define settings, such as margins, page format, portrait/landscape, page numbers, etc. And I'd like a CLI tool here. I know there are various xhtml2ps scripts in PHP or Perl, but is there just a tool (preferably in C), so that I could avoid having to install an interpreter?
P.S.: does Adobe Reader support PS files? I know, I can get PDF from PS with psutils, but anyways.

Offline

#2 2009-10-07 16:41:08

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: "Printing" to PS/PDF

Does cups-pdf do what you need?

Dusty

Offline

Board footer

Powered by FluxBB