Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32062

pdfsharp and inner pairs

$
0
0
am trying to fill the fields of pdf form so I use the following code

stringfilePath=@"c:\test.pdf";stringnewPath=@"E\Result";if(File.Exists(filePath)){PdfDocument document =PdfReader.Open(filePath,PdfDocumentOpenMode.Modify);// Get the root object of all interactive form fieldsPdfAcroForm form = document.AcroForm;// Get all form fields of the whole documentPdfAcroField.PdfAcroFieldCollection fields = document.AcroForm.Fields;//"/Fields"string[] names = fields.Names;names= fields.DescendantNames;

the problem is that it give error A PDF name must start with a slash (/). also the acrofields contain only one 

I dsicoverd that the document.AcroForm has 4 pairs , on of them has key "/Fields" , how to reach it


I used itextsharp , and I can read them , but am need to use pdfsharp , if any help will be highly appretiated 


Viewing all articles
Browse latest Browse all 32062

Trending Articles