Operating System - Linux
1753518 Members
5117 Online
108795 Solutions
New Discussion юеВ

PDF Printing Library in C++ for HPUX

 
Lalit Seth
Frequent Advisor

PDF Printing Library in C++ for HPUX

Hi all,

I have an Daemon which need to print the PDF for the request made. This
Daemon is in C++.

I wanted to know if there is any library in C/C++ which can help me in
printing the PDF's to physical printer attached. I am using the PDFLib
library to create the PDF's but it does not comes with the print
support.

Thanks for helping.

Lalit Seth
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: PDF Printing Library in C++ for HPUX

Hi Lalit,

You can download and install ClibPDF from this link,

http://hpux.connect.org.uk/hppd/hpux/Shells/ClibPDF-2.02/

Description: ClibPDF is a library of ANSI C functions, distributed as source code, for creating PDF (Acrobat) files directly via C language programs without relying on any Adobe Acrobat tools and related products.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Peter Godron
Honored Contributor

Re: PDF Printing Library in C++ for HPUX

Lalit,
please confirm that your problem is not CREATING the PDF files, but PRINTING them.
Peter Godron
Honored Contributor

Re: PDF Printing Library in C++ for HPUX

Lalit,
could you not use the Acrobat reader to print? http://www.adobe.com/support/downloads/product.jsp?product=10&platform=unix

Lalit Seth
Frequent Advisor

Re: PDF Printing Library in C++ for HPUX

I have a problem printing the PDF.
Rajeev  Shukla
Honored Contributor

Re: PDF Printing Library in C++ for HPUX

Hi Lalit,

Create a printer (print queue) with the post script option. That will print the pdf files using lp command.

Cheers
Rajeev
Peter Godron
Honored Contributor

Re: PDF Printing Library in C++ for HPUX

Lalit,
seem some people have done this before:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=118484

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=842041

The general consensus at the time seemed to be to install acrobat reader and do something like:
cat unixfile.pdf /opt/Acrobat5/bin/acroread
-toPostScript | /bin/lp -dpsprinter

You could use the system command in C to execute this command.

Please let us know how you get on.
Peter Godron
Honored Contributor

Re: PDF Printing Library in C++ for HPUX

Lalit,
have you got the information you need?
If yes, could you please award points and close the thread.