Hi,
We're looking to use the PDFNet SDK to replace text and image content
in order to produce print ready artwork. I'm currently replacing the
text content by using the following code:
'Save the changes to a new print-quality PDF
Dim doc As PDFDoc = New PDFDoc(Server.MapPath("/Docs/test.pdf"))
doc.InitSecurityHandler()
Dim field As Field = doc.GetField("FirstnameTextField")
If Not field Is Nothing Then
field.SetValue(FirstnameTextbox.text)
End If
doc.RefreshFieldAppearances()
doc.FlattenFields()
doc.Save(Server.MapPath("/Docs/test_updated.pdf"), 0)
doc.Close()
doc.Dispose()
Is it possible to get hold of an image in a similar way (e.g by name)
instead of looping through all the page objects as per the examples?
Having read all the posts regarding replacing images I've so far been
unable to create a complete block of code that first finds a specific
image and then replaces it with a new image from an images directory.
If you could provide any examples of how to acheive this it would be
most apprechiated.
Finally, as the PDFs we'll be working with are print quality they're
generally going to be quite large files, up to 100MB. Is there
anything I need to keep in mind when working with files this size in
order to ensure optimal performance?
Thanks