windows - ghostscript convert pdf to pcl with wrong orientation -


i have issue trying convert pdf document pcl document using ghostscript.

the original pdf document landscape , pcl should well. nevertheless in windows using ghostscript 9.14 following command functions:

gswin32 -dnopause -dbatch -sdevice=ljet4 -dsafer -dautorotatepages=/none -spapersize=a4 -soutputfile=./convert_windows.pcl ./duplicate_windows.pdf 

the same command in ubuntu linux kernal version 3.2.0-40-generic 64 bit - ghostscript 9.05 - results in wrong orienteated pcl file of size a3 instead of a4 original.

the original pdf file contains windows font "arial", should available in linux well. package "msttorcefonts" installed on linux. short extract of fontmap of ghostscript:

cat /usr/share/ghostscript/9.05/resource/init/fontmap.gs 

gives:

% font, , font among hershey fonts, uses % symbolencoding.  /hershey-symbol                         (hrsyr.gsf)     ;       % 5066567  /arial                                  /arialmt                ; /arial,bold                             /arial-boldmt           ; /arial,italic                           /arial-italicmt         ; /arial,bolditalic                       /arial-bolditalicmt     ; 

the following listing shows output of linux command line, same output windows ghostscript console!

gpl ghostscript 9.05 (2012-02-08) copyright (c) 2010 artifex software, inc.  rights reserved. software comes no warranty: see file public details. processing pages 1 through 2. page 1 loading nimbusmonl-bold font /usr/share/fonts/type1/gsfonts/n022004l.pfb... 3627296 2211468 1767360 473754 3 done. loading nimbussanl-bold font /usr/share/fonts/type1/gsfonts/n019004l.pfb... 3668288 2319461 1807728 497748 3 done. loading nimbussanl-regu font /usr/share/fonts/type1/gsfonts/n019003l.pfb... 3800176 2466391 1827912 512832 3 done. loading nimbusmonl-regu font /usr/share/fonts/type1/gsfonts/n022003l.pfb... 3964224 2617715 1969200 654805 3 done. page 2 

i alredy tried several options of ghostscript

-dfixedmedia -dnoragepagesize 

and others.

when converting pdf document ps result same on both environments.

does has experiences issue or idea?

thanks in advance , kind regards

its unlikely can @ without seeing teh original pdf file, suggest open bug report , attach pdf file there.

a few observations:

-dautorotatepages has effect when creating pdf file, not when interpreting one.

the switch -dfixmedia should -dfixedmedia, likewise noragepagesize should norangepagesize


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -