does anyone have experience printing PDFs from Rev @ full resolution?

Jan Schenkel janschenkel at yahoo.com
Sun Dec 13 08:28:41 EST 2009


Looking back at your original question, I can now see you weren't looking to embed high-resolution images into a new PDF document, but rather how you print a PDF file.

On Mac, you can use an AppleScript to ask Preview or Acrobat Reader to print the PDF file. Preview will always be there, but you can even ask the Finder to print the document and it will pick the correct application for you.

On Windows, you can sue a command-line utility called 'pdfp' - which you can download from here: <http://www.esnips.com/doc/9e2a3a72-52ca-4711-945b-85316465f02f/pdfp>
There's also a newer version which is more compatible with Acrobat Reader 8 and higher, pdfp8, which you can download here: <http://www.esnips.com/doc/0a1928c4-a96d-4a4c-838a-eb6e0b9a986c/pdfp8>
PDFP requires that Adobe Acrobat Reader is installed on the system, but that's a dependency you shouldn't have to worry about.
>From the command-line, you would use something like
pdfp -p "<printername>" -c <copies> "<filepath>"
So translating that into revTalk:
##
put thePathToPdfpExe && "-p" && quote & thePrinterName & quote && \
    "-c" && theNumberOfCopies && quote & theFilePath & quote \
    into theCommand
get shell(theCommand)
##
You might want to set the 'hideConsoleWindows' global property to true before calling the 'shell' function.

HTH,

Jan Schenkel
=====
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


--- On Mon, 12/7/09, Josh Mellicker <josh at dvcreators.net> wrote:

> From: Josh Mellicker <josh at dvcreators.net>
> Subject: does anyone have experience printing PDFs from Rev @ full resolution?
> To: "how to use Revolution" <use-revolution at lists.runrev.com>
> Date: Monday, December 7, 2009, 5:34 PM
> Does anyone have experience printing
> PDFs from Rev @ full resolution? Meaning, vector PDFs will
> print at the full printer resolution (300dpi/600dpi, etc.),
> and bitmap PDFs will print at the document
> resolution.


      



More information about the use-livecode mailing list