Print Page | Close Window

Form Fields not vísibe when render Page

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=4020
Printed Date: 22 Nov 24 at 7:58AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Form Fields not vísibe when render Page
Posted By: sko
Subject: Form Fields not vísibe when render Page
Date Posted: 11 Aug 23 at 8:25AM
Hi,

if i fill fields and then i want to fix them with

PDFLibrary.UpdateAndFlattenFormField(index);

If i do so, the fields y position is to low...

if i use
PDFLibrary.SetFormFieldReadOnly(index,1)

the position of the fields are correct, but if i use

PDFLibrary.RenderPageToFile(DPI, ViewPrintPageNum, 1, fn);

the fields are not visible!

Can you help me please?

Ciao
Stefan



Replies:
Posted By: tfrost
Date Posted: 11 Aug 23 at 10:07AM
My code uses SetRenderOptions(1,1) after FlattenAllFormFields, even though it says this is the default. But I can't now remember when or why I added it. Other things to try are SetFormFieldVisible for each item in the formfield count and SetNeedAppearances(0). I have always found rendering all types of form field a bit of a challenge!  Experiment until it works, but the next different PDF may be your next issue.


Posted By: sko
Date Posted: 17 Aug 23 at 7:53AM
I don't want to test with more problems...

My solution: 
I delete the formfield ans place a fixed text at this position, so i don't need UpdateAndFlatten and not SetFormFiledReadonly!

Ciao
Stefan



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