Summary: | PCLm and raster-only PDF ("pclm"/"pdfimage8"/"pdfimage24") output devices require seekable output file | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Till Kamppeter <till.kamppeter> |
Component: | PDF Writer | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | robin.watts |
Priority: | P4 | ||
Version: | 9.53.3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- |
Description
Till Kamppeter
2021-08-02 15:42:12 UTC
I have 2 commits in review to fix this: https://git.ghostscript.com/?p=user/robin/ghostpdl.git;a=commitdiff;h=bb9cb0c43eb53df7d823a00131d32d2422abcd15 and https://git.ghostscript.com/?p=user/robin/ghostpdl.git;a=commitdiff;h=1234607ec709f9a9e79f7761a3fd26b30e7d2875 Fixes for this have gone in as: commit a30e693d45f3bc5af43c28a5b341d76d3d259965 Author: Robin Watts <Robin.Watts@artifex.com> Date: Thu Aug 5 11:31:26 2021 +0100 Bug 704160: Fix pdfimage devices to not need seekable stream. Avoid the need to seek to write a Length field by using a new object for the length. commit a1017203639bf6ab74360e0dd2501bc7c69c6d30 Author: Robin Watts <Robin.Watts@artifex.com> Date: Wed Aug 4 17:40:14 2021 +0100 Bug 704160: Fix pclm device to not need seekable stream. The pdfimage device relies on seeking to fill in the 'Length' entry in each dict. PCLm uses a temporary file, so doesn't need that. I had inadvertently left the init function asking for a seekable stream though. Fix that here. There have been other fixes for PCLm and pdfimage devices since, so you may want to move to the latest commits rather than just cherry-picking these. |