Hello.
If i try to add 2 times the same pdf file, the result is wrong.
I just send the 1.pdf file and the result in 2.pdf in zip 12.zip file.
Thank you
Jim.
Wrong chars on double pdf files
Wrong chars on double pdf files
- Attachments
-
- 12.zip
- (108.4 KiB) Downloaded 129 times
Re: Wrong chars on double pdf files
You could call this a bug in wxPdfDocument. wxPdfDocument keeps a list of PDF parsers for each PDF document, for which method SetSourceFile is invoked. However, it was not checked whether a parser for a document with the given filename is already in the list. This results in corrupting the resource object list of the previous parser, if the same filename is presented to method SetSourceFile more than once..dkaip wrote:If i try to add 2 times a pdf file, the result is wrong.
I just send the 1.pdf file and the result in 2.pdf in zip 12.zip file.
I adjusted method SetSourceFile to detect whether a parser already exists. The adjusted version worked for me.
Please download the latest wxPdfDocument from https://github.com/utelle/wxpdfdoc.
Regards,
Ulrich
Re: Wrong chars on double pdf files
Hello. It works very fine now.
Thank you.
Jim
Thank you.
Jim