If you can print your pdf manually from reader then you should be able to
print it from application also.
Maybe you choose wrong driver when you run reader.

Denis

-----Original Message-----
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing PDF using FOP...


thanks denis.
but when i try this from my application it is printing all junk characters.
Maybe my printer doesn't understand a PDF stream. It is a HP Laser Jet
6P/6MP
printer.

Thanks,
Hitesh

Denis Kranjcec wrote:

> I'm printing with acrobat reader 4.0
>
> here is print.bat that I call from my application
> acrobat /t C:\Java\xml-fop\pdf\file.pdf "\\K2\HP LaserJet 1100 (MS)" "HP
> LaserJet 1100 (MS)" "\\K2\HP LaserJet 1100 (MS)"
>
> This is documentation from adobe:
>
> How Do I Use Command Lines with Acrobat and Acrobat Reader on
> Windows?
> These are unsupported command lines, but have worked for some developers.
> There
> is no documentation for these commands other than what is listed below.
You
> can
> display and print a PDF file using command lines with Acrobat and Acrobat
> Reader.
> AcroRd32.exe filename - Executes the Reader and displays a file.
> Other options for the command line are:
> AcroRd32.exe /p filename - Executes the Reader and prints a file.
> AcroRd32.exe /t path printername drivername portname - Initiates
> Acrobat Reader, prints a file while suppressing the Acrobat print dialog
> box, then
> terminates Reader.
> The four parameters of the /t option evaluate to path, printername,
> drivername, and portname (all strings).
> printername - The name of your printer.
> drivername -Your printer driver's name. Whatever appears in the Driver
Used
> box
> when you view your printer's properties.
> portname - The printer's port. portname cannot contain any "/" characters;
> if it
> does, output is routed to the default port for that printer.
> If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the
> command lines.
> option meaning
> /n Launch a separate instance of the Acrobat application, even if one is
> currently open.
> /s Open Acrobat, suppressing the splash screen.
> /o Open Acrobat, suppressing the open file dialog.
> /h Open Acrobat in hidden mode.
>
> I hope this helps,
>
> Denis
>
> -----Original Message-----
> From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 16, 2001 7:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Printing PDF using FOP...
>
> I downloaded a fresh set of code from the fop cvs and did find the
> PCLRenderer
> and the other latest source code. But as far I could make out
> PCLRenderer does
> not print to a printer instead it prints to a file in pcl format. Now in
> case of
> pcl as well I do have to send the output to the printer. So my previous
> problem
> remains.
> I am actually not getting how can I send the output to the printer. I
> think if
> somebody can
> provide with a code fragment then it would be of great help.
>
> Thanks,
> Hitesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to