You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Images examples in pdf-toolbox fails to find the images.
To Reproduce
Run Images in pdf-toolbox
The following error occurs: /Users/<my-username>/IdeaProjects/OpenPDF/otsoe.jpg (No such file or directory)
Expected behavior
The example should run without error messages and Images.pdf should contain the intended images.
System
OS: macOS 14.2.1
Additional context
The example should read from the classpath instead of attempting to read copies of images placed in Java packages. I have a forked branch with a fix and will create a PR.
This is part of a more widespread problem in pdf-toolbox:
There are approx. 20 other references to otsoe.jog in pdf-toolbox examples, also failing to find the image e.g. SoftMask and Rotating
5 duplicates of otsoe.jog are scattered around e.g. the package containing CellEvents has a copy of it (which CellEvents fails to find)
The same problems are present for other examples and other images e.g.:
ImagesAlignment fails to find vonnegut.gif
It's probably best to fix this problem one step at a time? I would suggest adding my fix for Images first then follow the same pattern in subsequent issues:
Move the images to src/test/resources
Delete duplicates
Update the pdf-toolbox examples to use the new util method that reads from the classpath
The text was updated successfully, but these errors were encountered:
Images
examples inpdf-toolbox
fails to find the images.To Reproduce
Images
inpdf-toolbox
/Users/<my-username>/IdeaProjects/OpenPDF/otsoe.jpg (No such file or directory)
Expected behavior
The example should run without error messages and
Images.pdf
should contain the intended images.System
Additional context
The example should read from the classpath instead of attempting to read copies of images placed in Java packages. I have a forked branch with a fix and will create a PR.
This is part of a more widespread problem in
pdf-toolbox
:otsoe.jog
in pdf-toolbox examples, also failing to find the image e.g.SoftMask
andRotating
otsoe.jog
are scattered around e.g. the package containingCellEvents
has a copy of it (whichCellEvents
fails to find)The same problems are present for other examples and other images e.g.:
ImagesAlignment
fails to findvonnegut.gif
It's probably best to fix this problem one step at a time? I would suggest adding my fix for
Images
first then follow the same pattern in subsequent issues:src/test/resources
pdf-toolbox
examples to use the new util method that reads from the classpathThe text was updated successfully, but these errors were encountered: