PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jun 23, 2017 1:49 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 Dec 20, 2016 7:19 am 
Offline

Joined: Tue Dec 06, 2016 8:37 am
Posts: 1
I am trying to edit the a PDF But This has China as default value and when I try to set the selected index and save the file China is shown as value,
Also for a file if it doesn't have any default value it always shows empty value.
Below is my code


PdfDocument pd = PdfReader.Open(sourceFilePath, PdfDocumentOpenMode.Modify);

var pdfFields = pd.AcroForm.Fields;

((PdfComboBoxField)pdfFields[i]).SelectedIndex = 0;
//i is index generated when we iterate pdfFields.

Can anyone please try to edit some PDF using PDF sharp in Code and let me know what am I dping wrong.
I have generated editable PDF from http://www.pdfescape.com


Top
 Profile  
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: Baidu [Spider], Bing [Bot] and 12 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:  
Powered by phpBB® Forum Software © phpBB Group