PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 3:46 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Nov 06, 2008 1:14 pm 
Offline

Joined: Thu Nov 06, 2008 10:10 am
Posts: 1
Hi,

I am new to PdfSharp and have two questions concerning form field processing:

1)
I create a text form field usind Adobe Acrobat. I set font size 16 and color blue on the field. Then I fill the field using PdfSharp and save it to another file like this

Code:
Dim pdfdokument As PdfDocument = PdfReader.Open("C:\ge1.pdf", PdfDocumentOpenMode.Modify)
    Dim pdfAcroForm As PdfAcroForm = pdfdokument.AcroForm
    Dim fields As PdfAcroField.PdfAcroFieldCollection = pdfAcroForm.Fields
    Dim field As PdfTextField = fields("NameVornameVN")

    field.Text = "Hello World"
    pdfdokument.Save("C:\ge_filled_pdfsharp.pdf")


Problem is, the text shows up in the document, but the beforementioned formatting (font size, color) is not used, different font size and color is displayed.

Only when I click the field, the text changes to the correct formatting. Ths is something i don't understand. When the text is deselected, it changes back to the wrong formatting.



2)
When merging documents, fom fields are lost. Is there a plan to fix this?


Top
 Profile  
Reply with quote  
 Post subject: Same issue
PostPosted: Tue Dec 30, 2008 10:54 pm 
Offline

Joined: Tue Dec 30, 2008 10:52 pm
Posts: 1
I have the same issue as number 1. It is extremely strange.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 377 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