Bug 691609 - When CompatibilityLevel=1.3, the pdf can't be dispalyed correctly int acrobat4
Summary: When CompatibilityLevel=1.3, the pdf can't be dispalyed correctly int acrobat4
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 8.71
Hardware: PC Windows Vista
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 05:24 UTC by simengman
Modified: 2016-05-26 08:32 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
my cidfmap (2.38 KB, application/postscript)
2010-09-16 02:57 UTC, simengman
Details
my pdf by the commandline (14.45 KB, application/pdf)
2010-09-16 03:40 UTC, simengman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simengman 2010-09-15 05:24:37 UTC
Step 1, install gs8.71 and gsview4.9 in windows. When installing gs8.71, select to support cjk.
Step 2, Gsview open gs\examples\cjk\gscjk_ag.ps. It is displayed right.
Step 3, Gsview convert the ps to pdf, set CompatibilityLevel=1.3

Problem:
When CompatibilityLevel=1.3, the pdf can't be dispalyed correctly int acrobat4.
But it is right in Acrobat 7.
When CompatibilityLevel=1.2, the pdf is rigth in acrobat4.
Comment 1 Ken Sharp 2010-09-15 07:15:58 UTC
(In reply to comment #0)
> Step 1, install gs8.71 and gsview4.9 in windows. When installing gs8.71, select
> to support cjk.
> Step 2, Gsview open gs\examples\cjk\gscjk_ag.ps. It is displayed right.
> Step 3, Gsview convert the ps to pdf, set CompatibilityLevel=1.3
> 
> Problem:
> When CompatibilityLevel=1.3, the pdf can't be dispalyed correctly int acrobat4.
> But it is right in Acrobat 7.
> When CompatibilityLevel=1.2, the pdf is rigth in acrobat4.

Please re-test using Ghostscript not GSView. This will allow you to give us a complete command line, and also to see any errors which may occur during the conversion process. The most likely reason for Acrobat to flatly reject a PDF file created by pdfwrite is because an error occurred during processing, and the output file was not completely written.

Please also supply the cidfmap you are using. This is created during installation using the fonts installed on your system, the content of the resulting PDF file will depend on which fonts have been installed into Ghostscript (if any). I'm afraid that simply installing Ghostscript on my system is unlikely to provide the same results, since my system undoubtedly has a different set of fonts installed.

Testing on my system created a PDF file which worked correctly.
Comment 2 simengman 2010-09-16 02:57:19 UTC
Created attachment 6719 [details]
my cidfmap
Comment 3 simengman 2010-09-16 03:01:24 UTC
Thank you!

I re-test using Ghostscript by commandline, run command at c:\gs\gs8.71:

bin\gswin32 -dCompatibilityLevel=1.3 -dBATCH -dDEVICEWIDTHPOINTS=1000 -I"c:\gs\gs8.71\lib;C:/Windows/fonts;" -sDEVICE=pdfwrite -sOutputFile=d:\out.pdf -f"C:\gs\gs8.71\examples\cjk\gscjk_ag.ps"

The pdf's problem is same as gsview.
Comment 4 simengman 2010-09-16 03:40:18 UTC
Created attachment 6721 [details]
my pdf by the commandline
Comment 5 Ken Sharp 2010-09-16 07:20:56 UTC
Setting compatibilitylevel to 1.2 prevents the use of CIDFonts and so the result is bitmapped.

This looks like the same sort of issue as #691574 and I see its the same user reporting the issue. I haven't yet had a chance to check this but the most likely cause is something related to using a horizontal font for vertical text.

I'm not certain that there is any way to address this, it may be that we do not have sufficient information to locate suitable glyphs in a horizontal font.
Comment 6 Ken Sharp 2016-05-26 08:32:34 UTC
Using current  code the PDF version of the file is exactly the same as the PostScript version, as far as I can tell.