New Forum | Previous | Next | (P-PDF) Developers
Topic: Redaing PDF files from PowerBuilder
Conf: (P-PDF) Developers, Msg: 58903
Date: 5/29/2002 05:35 PM
I am running a project in which we use PowerBuilder as the fron-end environment and use Acrobat reader to view and print PDF documents. We use Adobe provided ocx to use Reader functionality.
The problem that we are faced with is the following:
The OCX returns a blank page if the document we are attempting to read is not in PDF format and IT DOESN'T return any warning/error code at all. Our requiremnt calls for displaying an error message if the document is not PDF compliant.
HOW CAN WE DETERMINE WHETHER THE DOCUMENT IS IN PDF FORMAT OR NOT. ARE THERE ANY TOOLS AVAILABLE THAT WE CAN USE FOR THIS PURPOSE.
The other problem we are experiencing is with printing. The print request is returned immediately without ensuring that the doc has been spooled. And if you try to print two PDF documents one after the other, it's possible that the contents of two requests would get mixed up. We have tried using a delay between two prints and it does work, however it's kind of difficult to determine how much delay should be incorporated. It has to be a function of file size and workstation speed. We have a cutomer base that uses wide variety of CPUs.
IS THERE A MORE DECENT SOLUTION THAT CAN BE PURSUED.
PLEASE DO RESPOND TO MY REQUEST IF ANYONE HAS A SOLUTION TO ABOVE PROBLEMS...