Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2022/03/29)Fwd 1 day (to 2022/03/31) >>>20220330 
artifexirc-bot <Ramesh> Hi Team07:46.44 
  <Ramesh> When we convert the PDF2PNG by using ghost script I am getting the following error, It would be great if any one help this issue.07:47.52 
  <Ramesh> gs -q -dNOPAUSE -sPAPERSIZE=a4 -dBATCH -sDEVICE=png16m -r250 -sPageList=1-20 -sOutputFile=/home/ramesh/PDF/Conversion_Issue/1648450285810_528630774_Hafslund_%00d.png /home/ramesh/PDF/Conversion_Issue/1648450285810_528630774_Hafslund.pdf07:47.54 
  <Ramesh> Error: /undefined in obj07:47.55 
  <Ramesh> Operand stack:07:47.56 
  <Ramesh> 3   007:47.57 
  <Ramesh> Execution stack:07:47.58 
  <Ramesh> %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2045   1   3   %oparray_pop   2044   1   3   %oparray_pop   2025   1   3   %oparray_pop   1884   1   307:48.00 
  <Ramesh> %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--07:48.01 
  <Ramesh> Dictionary stack:07:48.02 
  <Ramesh> --dict:973/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--07:48.03 
  <Ramesh> Current allocation mode is local07:48.05 
  <Ramesh> Current file position is 59007:48.06 
  <Ramesh> GPL Ghostscript 9.26: Unrecoverable error, exit code 107:48.07 
  <KenSharp> You're going to have to supply the example file. The first thing I would point out is that 9.26 is old, use a recent version. If that still gives you an error, then open a bug report at http://bugs.ghostscript.com and attach the file.07:48.53 
  <Ramesh> Okay Thanks, will check and let you know07:49.57 
  <Ramesh> I have checked it with the latest version of ghost script v9.55 but we receive the same error07:59.44 
  <KenSharp> Then you should open a bug report. Attach the file there and give the command line08:04.52 
  <Pepi> Hey guys, I'm trying to figure out how to extract a specific region of a PDF to PNG with ghostscript. So far, I can't find any options that sounds the one I need (I looked mostly for the following keywords: crop, offset, viewbox, etc). Could anyone give me some advice? Thanks!14:50.22 
  <Robin_Watts> 'Extract' as in, you want a PDF out afterwards?14:54.11 
  <Robin_Watts> pdf in, cropped pdf out ?14:54.22 
  <KenSharp> There are answers from me on that on Stack Overflow14:54.36 
  <Pepi> No, I want a PNG out of a PDF's specific area14:54.42 
  <KenSharp> You need to define the media size to match the 'window' you want on the PDF, then you need to translate the origin14:55.12 
  <KenSharp> And set -dFIXEDMEDIA14:55.19 
  <Pepi> Thanks @KenSharp , how do I do that exactly? What is the command to translate the origin?14:56.07 
  <KenSharp> You need to use some PostScript and it is going to depend on the exact version of Ghostscript being used, because it is different between the old and new PDF interpreters.14:57.28 
  <KenSharp> As I said I think I've answered this on Stack Overflow a number of times, let me see if I can find a canned answer14:57.48 
  <KenSharp> OK basically this answer:14:58.26 
  <KenSharp> https://stackoverflow.com/questions/63900225/using-ghostscript-to-look-only-at-specific-area-when-using-inkcov/63900525#6390052514:58.27 
  <KenSharp> Obviously you will need to modify the exact numbers there14:59.08 
  <Pepi> Thanks, I'll try!15:04.31 
 <<<Back 1 day (to 2022/03/29)Forward 1 day (to 2022/03/31)>>> 
ghostscript.com #mupdf
Search: