Print Page | Close Window

System Requirements

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=194
Printed Date: 29 Apr 24 at 4:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: System Requirements
Posted By: unified
Subject: System Requirements
Date Posted: 04 Dec 05 at 1:52AM

What are the general system requirements for a QuickPDF project to run successfully on anther machine.

I have the full Acrobat (v7.0 pro) installed and have no problems running my project.  However, when I moved the project to another machine that only has Reader v5.0, the pages produced were blank.

In my code, I am opening a pdf form file, filling in field information, then saving the file under another name.  I am then using shellexecute to print the new file.

This works perfectly on my machine, but only produces and, subsequently, prints a blank page.  When I use Reader on the other machine to read the produced file, it is blank.  The original file can be opened and forms filled in using Reader.

Thanks.




Replies:
Posted By: Ingo
Date Posted: 04 Dec 05 at 3:59PM
Hi!
I think this has nothing to do with QuickPDF. I think the problem is how the pdf-file (with the blank pages) was created.


-------------
Cheers,
Ingo



Posted By: unified
Date Posted: 05 Dec 05 at 6:45PM

Hmm...  This is a snippet of what I did:

const

PDFDoc : String = 'C:\PRINTFILE.PDF';

...

procedure TForm1.Print_Form_1130(Sender: TObject);
begin
 QP.LoadFromFile('C:\Verification of Rent and Living Arrangements.PDF');
 QP.SetFormFieldValueByTitle('Customer_Name', FirstName + ' ' + LastName);
 QP.SetFormFieldValueByTitle('CustomerID', CustomerID);
 QP.SetFormFieldValueByTitle('Case_Manager', 'C. Brandon');
 QP.SetFormFieldValueByTitle('Case_Manager_Number', '(443) 555-1234');
 QP.SetFormFieldValueByTitle('District_Name', 'Harbor');
 QP.SetFormFieldValueByTitle('Date', FormatDate('mmmm d, yyyy', Now));
 QP.SaveToFile(PdfDoc);
 ShellExecute( 0, 'print', pchar(PdfDoc), nil, nil, SW_SHOWMINIMIZED );
end;

When I get back to the office on Thursday, I'm going to see if the original pdf file prints correctly using ShellExecute both as without the fields filled in, and with them filled in.  I'm using ShellExecute to print simply because I don't know the name of the printer at my office and I might have to install the software on three other machines using different printers.

Thanks for your help.



Posted By: Ingo
Date Posted: 06 Dec 05 at 1:29AM
Hi!
You can get the default printer automatically with a quickpdf-function ;-)


-------------
Cheers,
Ingo



Posted By: unified
Date Posted: 06 Dec 05 at 10:33AM

Ah!  GetDefaultPrinterName.  How did I miss that?



Posted By: unified
Date Posted: 14 Dec 05 at 10:39PM

I ran another test and, for the life of me, can't figure out what's the problem.  Even using the PrintDocument fuction produces an unfilled form.  So, sadly, QuickPdf does not address my needs.

Rather than tear all my hair out, I've decided to actually give up on quickpdf altogether since I only need it process existing forms, not create pdf.  In my case, it was simplier to just programatically create an fdf file and Reader 5.0 had no problem printing the associated pdf with the field filled in perfectly. 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk