PDF import can't open PDF file.
Issue #472
resolved
Hello Marius,
Jus for information that PDF import can’t import file. It is not big issue because image import works like a charm.
So person can do screenshot and import as image.
Anyway here is result.
Thank you
BR
Comments (4)
-
-
Hi again,
It was not easy but finally I did found a package (pikePdf) that managed to parse the FlateDecode streams in a PDF file correctly. The zlib implementation in Python do not expose the FlateDecoder but search for a specific header which PDF files do not always have in the PDF streams. But with the help of pikePdf module I managed to import your file in FlatCAM.
-
reporter Thank you, you’re the best!
-
reporter - changed status to resolved
Was Resolved by Marius Stancius.
Thank you
- Log in to comment
Hello Dmitri,
Unfortunately not all PDF files can be opened. There are different versions of PDF formats and not all can be opened.
That is not a bug but a limitation of the current implementation of PDF parser.