PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Want to get some help with PDFsharp ,Thank you! https://forum.pdfsharp.net/viewtopic.php?f=2&t=4636 |
Page 1 of 1 |
Author: | Neyo2024 [ Wed Aug 07, 2024 8:36 am ] |
Post subject: | Want to get some help with PDFsharp ,Thank you! |
Dear Supportor, I am writing to seek your assistance regarding using PDFsharp. I am currently facing the following challenges:encrypt a pdf file with AES256. Despite my best efforts, I have been unable to find a satisfactory solution on my own. Therefore, I humbly request your help in providing some insights or advice on how to address this matter effectively. I find that when I encrypt a pdf file ,in the first line there is written a text [%PDF-2.0],and in the secornd line also a text[%ÓôÌá]. Can i use some method to rewrite these text in my own? Thank you very much for considering my request. Your support and expertise would make a significant difference in resolving this matter. I look forward to hearing from you soon. Best regards |
Author: | TH-Soft [ Wed Aug 07, 2024 9:07 am ] |
Post subject: | Re: Want to get some help with PDFsharp ,Thank you! |
Neyo2024 wrote: I find that when I encrypt a pdf file ,in the first line there is written a text [%PDF-2.0],and in the secornd line also a text[%ÓôÌá]. The text is valid. Why would you want to replace it?Can i use some method to rewrite these text in my own? With PDFsharp you can set the PDF version. This determines the number in the first line. |
Author: | Neyo2024 [ Thu Aug 08, 2024 7:35 am ] |
Post subject: | Re: Want to get some help with PDFsharp ,Thank you! |
Thank you for your time and replay. Quote: The text is valid. Why would you want to replace it? →Yes,I check the source code and it's just as you say, but in my case the pdf file has some text in the first line already. when use PDFsharp to encrypt file with AES ,the first line text was replace by the [%PDF-2.0],and also the secondary line was replace by the text [%ÓôÌá].To keep the pdf file the same after encrypted is needed. Quote: With PDFsharp you can set the PDF version. This determines the number in the first line. →Thank you for your reminder.Yes , I know. If there is some way can keep the pdf file not to be replaced, just call me thank you! Best regards |
Author: | TH-Soft [ Thu Aug 08, 2024 8:49 am ] |
Post subject: | Re: Want to get some help with PDFsharp ,Thank you! |
Neyo2024 wrote: Yes,I check the source code and it's just as you say, but in my case the pdf file has some text in the first line already. Does that mean there are comments in the PDF file and you want to retain the comments while encrypting the file with PDFsharp?when use PDFsharp to encrypt file with AES ,the first line text was replace by the [%PDF-2.0],and also the secondary line was replace by the text [%ÓôÌá].To keep the pdf file the same after encrypted is needed. Maybe this can be achieved by reading the lines to keep from the original file and adding them to the encrypted file while performing the encryption. Not my area of expertise and I am not sure if this can be done without modifying PDFsharp. |
Author: | Neyo2024 [ Fri Aug 09, 2024 7:29 am ] |
Post subject: | Re: Want to get some help with PDFsharp ,Thank you! |
Quote: Does that mean there are comments in the PDF file and you want to retain the comments while encrypting the file with PDFsharp? →Sorry for my poor English make you something confused.Yes,as you said I just want to retain the comments while encrypting the file. And in other way ,If it is possible to rewrite the comments in the header after encrypting the file is also OK. Thank you for your time and reply again . And at last I want to ask that Maybe PDFsharp Team has plans to provide an interface to do the things that I mentioned above in the future ? Best regards |
Author: | TH-Soft [ Fri Aug 09, 2024 9:03 am ] |
Post subject: | Re: Want to get some help with PDFsharp ,Thank you! |
Neyo2024 wrote: And at last I want to ask that Maybe PDFsharp Team has plans to provide an interface to do the things that I mentioned above in the future? There are no plans to implement this.I'm afraid it won't be considered for implementation in the foreseeable future. Unless someone gives us strong reasons why this is necessary. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |