[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2047
  • Last Modified:

Fill fields in Adobe Acrobat form (.pdf) fields

I am writing a WinForms app in VB.Net.
I have a pdf form saved:  C:\My Documents\SAMPLEFORM.pdf
SAMPLEFORM.pdf has a template (TEMPLATE1) which contains a field (EMPLOYERNAME).
In my application, the user can click a button, which does the following:

1.  Opens up Adobe Acrobat (I have full version - 5)
2.  Opens up SAMPLEFORM.pdf
3.  Inserts "ABC Ltd" into the EMPLOYERNAME field.
4.  Saves the document somewhere else.

What I really need is 1-3 above.  I have messed around with various snippets of code but still no joy, so please provide sample code in full.

Thanks in advance.
0
Sigh_Man
Asked:
Sigh_Man
  • 4
  • 3
1 Solution
 
planoczCommented:
Hi Sigh_Man,
I forgot to you ask you if you had the SDK ver 5 which has the FDF drivers to
move  data around in a template.
For code like this from the last question posted.

  FdfAcX = New FDFACXLib.FdfApp
        FdfDoc = FdfAcX.FDFCreate
        W9_Page1()
0
 
Sigh_ManAuthor Commented:
I think I'm on SDK v1.1 (does that sound right?)

For those of you who have just joined us, my earlier post on this .pdf form issue is here:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21313516.html
0
 
Sigh_ManAuthor Commented:
Planocz,

What references do I need to add to my form?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
planoczCommented:
The reference is FDFACXLib 1.0 type Library you also have to use PDFlib.dll and the viewer is AxPDFlib.dll  for the rest of the PDF software
0
 
Sigh_ManAuthor Commented:
Any ideas where I can download those dll's?
0
 
planoczCommented:
from Adobe Acrobat.  I think you can use a newer ver and do the samething
0
 
Sigh_ManAuthor Commented:
Thanks.

Planocz, thanks for your efforts - even though I didn't solve the problem this way, points to you.

For anyone interested, I used a third party component from www.aspose.com.  It's not free but makes the whole form-filling exercise almost effortless!  And their support is exceptional.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now