Hi,
i have PDF Documents with AcroForm Fields. I filled them with PDFSharp and now i need to merge these files to one:
Example:
Code:
PdfDocument _PdfDocument = PdfReader.Open("H:/HA_Report_Grafenstr._9_G0_W1298855.pdf", PdfDocumentOpenMode.Modify);
PdfDocument _PdfDocumentImp = PdfReader.Open("H:/HA_Report_Grafenstr._9_G0_W1298855.pdf", PdfDocumentOpenMode.Import);
// Add Pages
int count = _PdfDocumentImp.PageCount;
for (int idx = 0; idx < count; idx++)
{
PdfPage page = _PdfDocumentImp.Pages[idx];
_PdfDocument.AddPage(page);
}
_PdfDocument.Save("H:/Doc_out.pdf");
Using this code will remove all field not only the content. Is there any way to avoid this?
edit: Using PDFSharp 1.5 Beta3b
Regrads, Hendrik