PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Merge/Combine PDFs with ArcoForm fields
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3294
Page 1 of 1

Author:  Hendrik [ Thu Feb 11, 2016 1:09 pm ]
Post subject:  Merge/Combine PDFs with ArcoForm fields

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

Author:  Hendrik [ Thu Feb 18, 2016 3:48 pm ]
Post subject:  Re: Merge/Combine PDFs with ArcoForm fields

Is there still no solution?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/