Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Failure to use non-embedded CIDFont in PDF

New Here ,
May 14, 2021 May 14, 2021

Copy link to clipboard

Copied

This is a question regarding PDF language. I do not know where to post it, so I will do it here.

In order to test how the output string will be handled with CID Fonts, I made the following minimal example.

%PDF-1.4
1 0 obj
<<  /Type /Catalog
    /Outlines 2 0 R
    /Pages 3 0 R
>>
endobj

2 0 obj
<<  /Type Outlines
    /Count 0
>>
endobj

3 0 obj
<<  /Type /Pages
    /Kids [4 0 R]
    /Count 1
>>
endobj

4 0 obj
<<  /Type /Page
    /Parent 3 0 R
    /MediaBox [0 0 612 792]
    /Contents 5 0 R
    /Resources  <<  /Procset 6 0 R
                    /Font << /NotoSerifCJKjp-Regular-Identity-H 7 0 R >>
                >>
>>
endobj

5 0 obj
<< /Length 69 >>
stream
BT /NotoSerifCJKjp-Regular-Identity-H 72 Tf 100 100 Td (12\\\() Tj ET
endstream
endobj

6 0 obj
[/PDF /Text]
endobj

7 0 obj
<<  /Type /Font
    /Subtype /Type0
    /BaseFont /NotoSerifCJKjp-Regular-Identity-H
    /Encoding /Identity-H
    /DescendantFonts [8 0 R]
>>
endobj

8 0 obj
<<  /Type /Font
    /Subtype CIDFontType0
    /BaseFont /NotoSerifCJKjp-Regular
    /CIDSystemInfo  <<  /Registry (Adobe)
                        /Ordering (Identity)
                        /Supplement 0
                    >>
    /FontDescriptor 9 0 R
>>
endobj

9 0 obj
<<  /Type /FontDescriptor
    /FontName /NotoSerifCJKjp
    /Flags 6
    /FontBBox [-100 -200 3000 880]
    /CapHeight 700
    /Ascent 880
    /Descent 200
>>
endobj

xref
0 10
0000000000 65535 f
0000000009 00000 n
0000000084 00000 n
0000000135 00000 n
0000000202 00000 n
0000000430 00000 n
0000000550 00000 n
0000000579 00000 n
0000000738 00000 n
0000001011 00000 n

trailer
<<  /Size 10
    /Root 1 0 R
>>
startxref
1186
%%EOF

However, when the PDF is opened with Astril on Ubuntu, the shown text is still "12\(", instead of two (or three?) Chinese characters as I expected a CIDFont would do.

TOPICS
Programming

Views

266

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 14, 2021 May 14, 2021

Copy link to clipboard

Copied

This is absolutely not an issue of PostScript and this is not the community to post this in.

Moving this to the Acrobat community. Although that is a product-based community, it is at least associated with PDF and not PostScript.

 

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 14, 2021 May 14, 2021

Copy link to clipboard

Copied

If it is the case, then please delete this post. I have already posed the same question on Acrobat community.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 14, 2021 May 14, 2021

Copy link to clipboard

Copied

LATEST

Just got the correct output with an embedded font that gave me the correct result. Now the hard task goes into writing a program that subsets the font.

Also, I am curious about how PDF language differentiate a two-byte sequence that starts with 0x29 (which is the ascii code for right parenthesis). For example, If I want to output CID 10528 with Identity-H (which would be 0x29 0x20), how does the parser recognize it as part of the string rather than the end of it?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines