On 29.10.2024 17:34, Jérome SOUSSENS wrote:
Hi Tilman,
Thanks for your suggestions. Would be great if those constructors in
PreflightParser are back in a future release.
Meanwhile, we’re going to use temp files.
Done in https://issues.apache.org/jira/browse/PDFBOX-5893 , but it's
just one constructor. Please test with the snapshot
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/preflight/3.0.4-SNAPSHOT/
The API is
public PreflightParser(RandomAccessRead rar) throws IOException
Tilman
Jerome
On 2024/10/28 11:08:20 Tilman Hausherr wrote:
Hi,
I suspect this was lost in refactoring almost 5 years ago. It happened
in PDFBOX-4569 / https://svn.apache.org/r1872678
<https://svn.apache.org/r1872678>.
Unless there's a reason not to, I'd add it for the next version. But in
the meantime you'd still be stuck with having to use a temp file (or
stay with 2.0). Preflight will be removed in 4.0, you should use VeraPDF
which is better and you and me paid for it with our taxes.
Tilman
On 28.10.2024 11:41, Jérome SOUSSENS wrote:
Hello there,
I’m in the process of migrating from PDFBox 2 to 3.
In 2.X version, the PreflighParser class was offering a constructor for
‘RandomAccessRead’ objects, allowing to parse in-memory data like byte[].
Now in 3.X, only files are allowed as input in the constructor.
How can I handle that ? Should I really write files on the file system ?
Thanks in advance for your help.
Jerome S.
---------------------------------------------------------------------
To unsubscribe, e-mail:users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail:users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org