Some Times we need make a series PDF from an single PDF template

from above two article we know how to make an single pdf. and how to add page to new pdf.



From some other actile of internet we may be get  writer.CopyAcroForm(reader)
but i find just the last PDF(copy from the single pdf) have these values.
other fields are empty

Ok How to do it.
From Single PDF template Make a series PDFMemoryStream stream = new MemoryStream();
From Single PDF template Make a series PDF            Document doc 
= new Document();
From Single PDF template Make a series PDF            PdfCopy writer 
= new PdfCopy(doc, stream);
From Single PDF template Make a series PDF            doc.Open();
From Single PDF template Make a series PDF
From Single PDF template Make a series PDF
From Single PDF template Make a series PDF            
string path;
From Single PDF template Make a series PDF            path 
= HttpContext.Current.Server.MapPath("~/templae.pdf");
From Single PDF template Make a series PDF            
string sessionID = HttpContext.Current.Session.LCID.ToString();
From Single PDF template Make a series PDF            
string path2 = HttpContext.Current.Server.MapPath("~/PDFTemplate/Temp" + sessionID + ".pdf");
From Single PDF template Make a series PDF            PdfImportedPage page;
From Single PDF template Make a series PDF
From Single PDF template Make a series PDF
From Single PDF template Make a series PDF            
for (int i = 0; i < list.Count; i++)
 stream;


as you see i am use filestream. i can't use MemoryStream. some error was occur.

lovebanyi lookcode.net 风云

如何去合并一个含有多个acroform数据的pdf
How to merge more AcroForm .

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2021-07-09
  • 2021-06-27
  • 2021-10-17
  • 2021-05-31
  • 2022-01-21
  • 2021-07-10
猜你喜欢
  • 2021-07-14
  • 2021-08-14
  • 2022-02-09
  • 2022-01-14
  • 2021-06-15
  • 2021-12-22
  • 2023-03-27
相关资源
相似解决方案