Pypdf currently support only python ? But does it have a support for other languages ? Specifically I wanted pypdf support for swift ? #2218
-
ExplanationActually in swift there is this library called pdfkit. But pdfkit fails when we have to extract text from pdf containing images , tables the text is not properly extracted most specifically I want a text extractor for invoices , tickets , bills which are structured documents , hence if there are any suggestions please do let me know urgently . Thank you in advance for any of your insights. Code ExampleHow would your feature be used? (Remove this if it is not applicable.) from pypdf import PdfReader, PdfWriter
... # your new feature in action! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
pypdf is a Python-only library. While porting it to other languages might be feasible, I do not think that this will happen in the upstream repository as everyone has their favorite language to be supported, so starting with Swift, further languages will most likely be requested. You might be able to call pypdf through some Python runtime from Swift (doing some quick online search, this is doable, although I cannot tell how complex this will be). Alternatively, as pypdf is available with the rather permissive BSD-3-Clause license, doing your own port (and maybe even providing this derivative to the public as another FOSS project) might be some possible approach. By the way: I think this is better suited as a discussion here at GitHub instead of a feature request in the Issues section. |
Beta Was this translation helpful? Give feedback.
-
as pypdf is available with the rather permissive BSD-3-Clause license, doing your own port (and maybe even providing this derivative to the public as another FOSS project) might be some possible approach. |
Beta Was this translation helpful? Give feedback.
-
pypdf basically acts on the byte level, id est implements the PDF standard from scratch, parsing the corresponding structure into plain Python objects. |
Beta Was this translation helpful? Give feedback.
-
pypdf is a Python library. This will not change. We will not support other languages. You might be able to use Python (and thus also pypdf) from other languages just like python can use C / C++ / Rust extensions, but we will not spend any effort in this direction. You're on your own if you want to do that. |
Beta Was this translation helpful? Give feedback.
pypdf is a Python library. This will not change. We will not support other languages.
You might be able to use Python (and thus also pypdf) from other languages just like python can use C / C++ / Rust extensions, but we will not spend any effort in this direction. You're on your own if you want to do that.