#33 HELP!!! Syntax for setting text acroFields in VB.NET

v1.0 (example)
closed
nobody
None
5
2005-11-10
2005-11-10
Anonymous
No

I am having some trouble figuring out how to set text
fields on PDF copy created using the PdfCopy method.
I can't find any clear examples of how to manipulate and
set text fields pre-defined in a PDF file. The following
code is what I am using to make a Copy, somwhere
prior to the last line I need to set the existing text fields
to specific values.

Any syntax help would be greatly appreciated!

Dim myReader As New PdfReader("FormWithFields.pdf"
Dim mydocument As Document = New Document
(myReader.getPageSizeWithRotation(1))
Dim myCopy As PdfCopy = New PdfCopy
(mydocument, New FileOutputStream
("CopyOutput.pdf"))
mydocument.open()
Dim myPage As PdfImportedPage =
myCopy.getImportedPage(myReader, 1)
myCopy.addPage(myPage)

Thanks,
Richard
rchingombe@www.in.gov

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Finally got a sample that worked! Never mind.

    Thanks.

     
  • Kazuya Ujihara

    Kazuya Ujihara - 2005-11-10
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks