Hello,
I'm using Free Spire.Doc but I have serious doubts:
1 - I have read it is limited to 500 paragraphs and 25 tables. I understand it's per PDF, is not?
2 - Could I use PdfJavaScriptAction without limitations?
I was trying disable print button by script:
using (Spire.Doc.Document document = new Spire.Doc.Document())
using (MemoryStream memoryStreamReader = new MemoryStream(templateFile))
using (MemoryStream memoryStreamWriter = new MemoryStream())
using (MemoryStream memoryStreamWriter2 = new MemoryStream())
{
document.LoadFromStream(memoryStreamReader, FileFormat.Auto);
document.MailMerge.Execute(entity);
document.SaveToStream(memoryStreamWriter, FileFormat.PDF);
var script = "this.print(" + false + ");\r";
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument(memoryStreamWriter);
PdfJavaScriptAction action = new PdfJavaScriptAction(script);
doc.AfterOpenAction = action;
doc.SaveToStream(memoryStreamWriter2, Spire.Pdf.FileFormat.PDF);
return memoryStreamWriter.ToArray();
}
Regards,