Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2021/12/23)Fwd 1 day (to 2021/12/25) >>>20211224 
artifexirc-bot <CiceroCiceronis> Hello. I hope everybody's having a good Christmas, if and when somebody has a moment I was hoping to get some advice on a rather funny issue I've been encountering with some PDFs I'm trying to convert.13:51.42 
  <CiceroCiceronis> I have here an example 1pg PDF from a set of ebooks I've been working with. The book renders as shown in Sumatra and in other PDF viewers.13:52.23 
  <CiceroCiceronis> https://cdn.discordapp.com/attachments/773567375458828329/923936144247378001/testpdf.pdf13:52.23 
  <CiceroCiceronis> https://cdn.discordapp.com/attachments/773567375458828329/923936144759062538/unknown.png13:52.24 
  <CiceroCiceronis> Converting using "gs -dSAFER -dBATCH -sDEVICE=png16m -r1200 etc." produces this output—rasterised at the desired quality, but with a very large white border around it—I'm quite keen to not have to manually crop all of these. I'm sure I'm doing something silly here, if anybody could point me in the right direction I'd be very grateful. (And I'm certainly in no hurry for a response—I hope you are all enjoying t13:54.34 
  <CiceroCiceronis> https://cdn.discordapp.com/attachments/773567375458828329/923936694342930492/testoutput.png13:54.34 
  <KenSharp> @CiceroCiceronis it's getting a bit late, but... What OS are you using and which version of Ghostscript ?14:58.17 
  <KenSharp> OK the file has a large MediaBox and a considerably smaller CropBox. GS defaults (as a printing application) to using the MediaBox, if you use -dUseCropBox you should get the result you want.15:00.01 
  <CiceroCiceronis> Thanks, I figured it was something to do with bad PDF mastering. Much appreciated. A very merry Christmas to you and thank you again for your help 🎄15:01.02 
  <KenSharp> O wouldn't say it was 'bad' exactly, its just a question of which of the various boxes (IIRC there can be up to 5) we should use. Merry Xmas to you as well 🧑‍🎄15:01.38 
 <<<Back 1 day (to 2021/12/23)Forward 1 day (to 2021/12/25)>>> 
ghostscript.com #mupdf
Search: