Print Page | Close Window

adding fill in fileds to existing pdf file

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=2192
Printed Date: 29 Sep 24 at 1:18AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: adding fill in fileds to existing pdf file
Posted By: Israel Shikler
Subject: adding fill in fileds to existing pdf file
Date Posted: 20 Mar 12 at 10:01AM
I have a pdf file which I need to add fill in fields to(text).
How do accomplish this and save the file to the existing one?
Can you provide code examples?



Replies:
Posted By: Ingo
Date Posted: 20 Mar 12 at 9:35PM
Hi!

Here's the online reference with all form field functionalities:
http://www.quickpdflibrary.com/help/quickpdf/FormFields.php

How to create pdf forms with QuickPDF:
http://www.quickpdflibrary.com/faq/how-do-i-create-pdf-forms-with-quick-pdf-library.php

If you search in the FAQ with "form" you'll get many issues to read:
http://www.quickpdflibrary.com/faq/index.php

Here's a sample code regarding filling form fields:
http://www.quickpdflibrary.com/faq/index.php

Here's a sample about creating checkboxes:
http://www.quickpdflibrary.com/faq/create-check-box-form-fields.php

Cheers and welcome here,
Ingo



Posted By: Israel Shikler
Date Posted: 21 Mar 12 at 12:00PM
Hi Lingo,
Thanks for your reply.
Just to make things clear.
The task I need to accomplis is the following.
Open an existing Pdf file that does not contain any fill in fields.
Add fill in fileds to this file.
Save the file back.
That's all. I do not need to prgrammatically fill in the fileds!
What do I use to Open the file in the first time(what function).
Many thaks ,
 
Israel
 


Posted By: Ingo
Date Posted: 21 Mar 12 at 7:48PM
Hi!

Why not take a look into the start-up-tutorials?
Check my links... where could be the tutorials?
I'm wondering... i'm wondering... try LoadFromFile ;-)
Your starting point writing something like "hello world" and save it as pdf:
http://www.quickpdflibrary.com/help/getting-started.php
http://www.quickpdflibrary.com/tutorials/index.php

For LoadFromFile-samples you can use the search-functionality here (above, right).

A good start for you should be taking the developer guide:
http://www.quickpdflibrary.com/docs/Quick%20PDF%20Library%208%20Developer%20Guide.pdf

Cheers, Ingo



Posted By: AndrewC
Date Posted: 22 Mar 12 at 10:39AM
This code creates and fills in form fields

http://www.quickpdflibrary.com/faq/sample-code-for-filling-in-form-fields-in-a-pdf.php - http://www.quickpdflibrary.com/faq/sample-code-for-filling-in-form-fields-in-a-pdf.php



int iDf1 = QP.NewFormField("First Name", 1);     // Create the field
QP.SetFormFieldBounds(iDf1, 20, 20, 100, 20);  // Set its position and size.
QP.SetNeedAppearances(1);                      // Needs an appearance stream
QP.SetFormFieldAlignment(iDf1, 2);             // Set the form field alignment
There are many other FormField funtions available documented at  http://www.quickpdflibrary.com/help/quickpdf/FormFields.php - http://www.quickpdflibrary.com/help/quickpdf/FormFields.php

eg

http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldAlignment.php - SetFormFieldAlignment
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldAnnotFlags.php - SetFormFieldAnnotFlags
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBackgroundColor.php - SetFormFieldBackgroundColor
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBackgroundColorCMYK.php - SetFormFieldBackgroundColorCMYK
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBackgroundColorSep.php - SetFormFieldBackgroundColorSep
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBorderColor.php - SetFormFieldBorderColor
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBorderColorCMYK.php - SetFormFieldBorderColorCMYK
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBorderColorSep.php - SetFormFieldBorderColorSep
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBorderStyle.php - SetFormFieldBorderStyle
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldBounds.php - SetFormFieldBounds
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldCalcOrder.php - SetFormFieldCalcOrder
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldCaption.php - SetFormFieldCaption
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldCheckStyle.php - SetFormFieldCheckStyle
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldChildTitle.php - SetFormFieldChildTitle
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldChoiceType.php - SetFormFieldChoiceType
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldColor.php - SetFormFieldColor
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldColorCMYK.php - SetFormFieldColorCMYK
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldColorSep.php - SetFormFieldColorSep
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldComb.php - SetFormFieldComb
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldDefaultValue.php - SetFormFieldDefaultValue
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldDescription.php - SetFormFieldDescription
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldFlags.php - SetFormFieldFlags
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldFont.php - SetFormFieldFont
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldHighlightMode.php - SetFormFieldHighlightMode
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldIcon.php - SetFormFieldIcon
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldIconStyle.php - SetFormFieldIconStyle
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldMaxLen.php - SetFormFieldMaxLen
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldNoExport.php - SetFormFieldNoExport
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldOptional.php - SetFormFieldOptional
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldPage.php - SetFormFieldPage
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldPrintable.php - SetFormFieldPrintable
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldReadOnly.php - SetFormFieldReadOnly
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldRequired.php - SetFormFieldRequired
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldRotation.php - SetFormFieldRotation
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldStandardFont.php - SetFormFieldStandardFont
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldSubmitAction.php - SetFormFieldSubmitAction
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldTabOrder.php - SetFormFieldTabOrder
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldTextFlags.php - SetFormFieldTextFlags
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldTextSize.php - SetFormFieldTextSize
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldValue.php - SetFormFieldValue
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldValueByTitle.php - SetFormFieldValueByTitle
http://www.quickpdflibrary.com/help/quickpdf/SetFormFieldVisible.php - SetFormFieldVisible

Andrew.


Posted By: Israel Shikler
Date Posted: 23 Mar 12 at 3:10PM
Hi Ingo.
I did take your avise about  looking into the start-up-tutorials.
Well I have made a nice progress and now I have a pdf file with fill in fileds.
However , I now face another issue:
when I manually fill in the fields on the PDF file, Acrobat reader , won't let me save this file ,but only the original PDF file without the fill in fileds.
The whole idea  is to enable people to fill in those fields, save the pdf file, so it can be emailed.
How do I go around this hurdle?
Many Thanks in advance ,
Israel


Posted By: Ingo
Date Posted: 23 Mar 12 at 9:08PM
Modifying an acrobat-made form will
let you stumble from one hole to the
other :-(
Please read my blog here:
http://pdfcomments.blogspot.de/2009/06/pdf-and-forms.html
It's not a real answer to your probs
but it gives you an idea about the
probs that will raise ;-)

Cheers, Ingo



Posted By: Israel Shikler
Date Posted: 24 Mar 12 at 1:09PM
Hi Ingo,
Firstly thanks a lot for your answer, although it put me on a dead end?
Any idea , how can go I around it and still use QuickPDF and other progrmming tool.
The task i have to accomplish is as follow:
1) Adding fill in fields to an existing PDF file.
2) Email this PDF file , so it will be manually filled in with data by the recepient, who then will email
it back to me.
 
Any idea, how we can overcome the obstalces presented by Adobe?
I am not looking for any code advise, but rather ideas on how to go around it.
Thanks in advance,
Israel


Posted By: Ingo
Date Posted: 24 Mar 12 at 5:59PM
Hi!

If the form is half ready made by adobe products ... simply forget it!
If it's completely your own form ... simply do it!

Cheers, Ingo





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