HiraokaHyperTools / PDFsharp

Just xps2pdf
MIT License
17 stars 5 forks source link

An unhandled exception of type 'PdfSharp.Pdf.IO.PdfReaderException' #21

Closed RhomGit closed 3 years ago

RhomGit commented 3 years ago

Hi, I am trying to use your library and encounter the following: https://stackoverflow.com/questions/36788746/pdfsharp-cannot-handle-this-pdf-feature-introduced-with-acrobat-6-error-while

Its no big deal as I can add both Nugets in, just thought I would ask if you any intention of re-basing to 1.50 beta 3?

kenjiuno commented 3 years ago

Hi thank you for reporting recent status of original PDFsharp.

However I'm sorry that I'm not sure that re-basing can be achieved in easily (in several days) or not.

This project is started with single zip PDFSharp-MigraDocFoundation-1_31.zip as https://github.com/HiraokaHyperTools/PDFsharp/commit/1008ca9aceaa3147e47d7485fadef6903617d752

And they say XPS specific components (fundamental part of xps2pdf) are only in 1.31: c# - PDFsharp missing the Xps namespace - Stack Overflow

Thus this will take longer time... If you have good workaround as you mentioned, please consider to use it.

RhomGit commented 3 years ago

No worries, thats perfectly understandable I just thought I would put it out there. Thanks for your response.

kenjiuno commented 3 years ago

Hi, I have experimentally ported iref streams feature from latest https://github.com/empira/PDFsharp to this PDFsharp, and it is now available:

Although I cannot guarantee 100% bug free about iref streams, read/write/read test (dummy quality) passes for now:

Also, I have tried to re-basing this PdfSharp-Xps to official 1.50. The result is: code adaptation can be done, but the most unit tests have failed (and I cannot recover broken parts in my technical power) And finally I had discard the new source base.