Print Page | Close Window

Printing PDF with FormFields

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=2097
Printed Date: 26 Jan 26 at 2:59AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Printing PDF with FormFields
Posted By: PDFNow
Subject: Printing PDF with FormFields
Date Posted: 11 Jan 12 at 12:58PM
Hello,

i got a problem filling a PDF-Document with text and the printout.

I get PDF-Documents with FormFields which will be filled and printed by my following procedure:

#########
            Call QP.LoadFromFile("Document.PDF")
            
            If QP.FormFieldCount > 0 Then
                For intLaeufer = 1 To QP.FormFieldCount
                Call QP.SetFormFieldValue(intLaeufer, "Text" & intLaeufer)

                'UpdateApperanceStream needed for printable 'on the fly
                Call QP.UpdateAppearanceStream(intLaeufer)
                Next intLaeufer
            End If

customPrinter = QP.NewCustomPrinter(Mid(ActivePrinter, 1, InStr(1, ActivePrinter, "on") - 2))

Call QP.SetupCustomPrinter(customPrinter, 8, 1)
Call QP.SetupCustomPrinter(customPrinter, 4, 1, 1)) 
Call QP.PrintDocument(customPrinter, 1, QP.PageCount, QP.PrintOptions(0, 0, "PDF-Vordruck"))

##########

But some fields (not all) in the printout look like they got a border (see link below).

http://www.imageshost.de/bilder.php?id=130f35c554a42a7d1f00ea07534981d4 - http://www.imageshost.de/bilder.php?id=130f35c554a42a7d1f00ea07534981d4

Hope someone can help - thanks.



Replies:
Posted By: edvoigt
Date Posted: 11 Jan 12 at 2:03PM
Hi Wolfgang,

you should make a small program, which goes in a loop over the formfields  of the page. With

GetFormFieldBorderColor,
GetFormFieldBorderProperty,
GetFormFieldBorderStyle and what you are interested in.

And for identification

GetFormFieldTitle
GetFormFieldType

you'll get a list, which shows - are there borders or not? Then change disturbing values. So you get it cleared.

mfg

Werner


Posted By: AndrewC
Date Posted: 12 Jan 12 at 11:07AM
Which version of QPL are you using ?  It looks like it is a 7.xx version based on the LoadFromFile call.

We have had a few small problems with Form Field print in earlier 7.xx version.  You can download the 7.26 version from http://www.quickpdflibrary.com/downloads/binaries/qp/oldversions/0726/quick_pdf_library.exe

This may help fix some form field problems.

Andrew.


Posted By: PDFNow
Date Posted: 12 Jan 12 at 12:23PM
Hello and thanks for the answers.

@Wolfgang: I looped over the formfields and all fields are without borders.
@Andrew: Our Version is 7.25, but we already try the trial Version 8.13 with the same problem :-/.

Its really curious that just some documents are wrong.

Maybe some other ideas?


Posted By: edvoigt
Date Posted: 12 Jan 12 at 1:15PM
Hello,

may be I see anything while looking inside a PDF. Is it all very confidential or may you make an upload?

Werner


Posted By: PDFNow
Date Posted: 12 Jan 12 at 1:51PM
Hello.

No its not confidential.

Here u can get it http://www.loaditup.de/678758-9ns3cq22tp.html

Thanks

Originally posted by edvoigt edvoigt wrote:

Hello,

may be I see anything while looking inside a PDF. Is it all very confidential or may you make an upload?

Werner


Posted By: edvoigt
Date Posted: 12 Jan 12 at 4:18PM
Hi,

I'm sorry, but I find no difference inside between the annotations "Name des Antragstellers" and "Vornamen (Rufname bitte unterstreichen) des Antragstellers" which would explane me the different look in the printout.

Because with Adobe Reader X the printout is as expected, it may be an issue of QuickPDF.

If Andrew has no good idea, I haven't too.

Werner



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