PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jun 12, 2021 5:26 pm

All times are UTC

Forum rules

Please read this before posting on this forum: Forum Rules

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Feb 05, 2019 10:55 am 

Joined: Tue Feb 05, 2019 10:35 am
Posts: 1
Hi -

I am trying to stream in an image to a PDF document using the AcroForm Image Field, this allows us to personalize the PDF document to the requester.

I get the image object in the AcroForm.Fields collection but I can't figure out how to set the "value" or "steam" on the image object to display in the image field. Text boxes are working fine.

Here is an example:

WORKS for Text Fields:
myTemplate.AcroForm.Fields["PromoCodeBody"].Value = new PdfSharp.Pdf.PdfString("testMe".ToUpper());
myTemplate.AcroForm.Fields["PromoCodeBody"].ReadOnly = true;

IMAGE Fields ?????
myTemplate.AcroForm.Fields["Image"].Value = ?????

Any help is appreciated


Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Google [Bot] and 10 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group