Posted 22 March 2019, 1:36 am EST
Good day.
Please help.
I have an application in which I use AR 12 and C #, and I need to export a PDF report to a specific folder. But I need the PDF file to have a password for editing.
It is possible to do this?.
I tried something like this …
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport pdf = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport ();
pdf.Security.OwnerPassword = "test"; pdf.Security.Permissions = GrapeCity.ActiveReports.Export.Pdf.Section.PdfPermissions.AllowCopy; // In PdfPermissions. ??? I did not stay put. pdf.Export (rpt.Document, "C: \\ xxx \\ TestPDF.pdf");
I have tried several options in PdfPermissions. but I can not get the pdf file to ask me for a password for editing.
Or some way that the generated file does not allow me to edit? either with password or without password.
I wish you could help me.