Read Document from Stream, update AcroForm then merge Document after?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v10)  /  Re: Read Document from Stream, update AcroForm then merge Document after?

DynamicPDF CoreSuite for .NET (v10) Forum

Hi!

  I'm evaluating this product to find out if it will work well or not.  Then I got stuck w/ the `MergeDocument1.  The thing is we have 1 method that read in the PDF via stream then  update AcroForm fields & saved as bytes via this `Document` class.   So we have batch PDFs where the `MergeDocument` class don't support `Document` objects but only work with `PdfDocument`.

  After some searching I found this fourm link at https://www.dynamicpdf.com/forums/core-suite-for-net-v9/page-vs-pdfpage .   In there is

   PdfDocument pdf = new PdfDocument(fileList[i])

So, the problem in in our case is PdfDocument is actually Document.  So, what are the other ways to make this work since PdfDocument doesn't  support reading in the stream, manipulate AcroForm fields & saving it after

Thanks.
Posted by a ceTe Software moderator
Hello,

Based on your description, it looks like you could simply use MergeDocument for everything. MergeDocument inherits from Document, so contains all of it’s functionality. There should be no need to save the content you created with Document and then merge it back in using MergeDocument.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 4:05 AM.