Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded font not being procesed #1

Open
maxpowel opened this issue Apr 23, 2024 · 1 comment
Open

Embedded font not being procesed #1

maxpowel opened this issue Apr 23, 2024 · 1 comment

Comments

@maxpowel
Copy link

Hello, it is matter of embedded fonts. Using pdffonts with my pdf file this info is shown:

name                                 type              encoding         emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
DRRVLN+AdvPSTim-I                    Type 1C           Custom           yes yes no      12  0
RHJJFZ+AdvSPSMI                      Type 1C           Custom           yes yes no      14  0
FFLANR+AdvPSTim-B                    Type 1C           Custom           yes yes no      16  0
QVMPSS+AdvP4C4E74                    Type 1C           Custom           yes yes no      18  0
JMUKNO+AdvP4C4E51                    Type 1C           Custom           yes yes no      20  0
PTWKHW+AdvPSSym                      Type 1C           Custom           yes yes no      22  0
APZBCX+AdvPSTim                      Type 1C           Custom           yes yes no       8  0
DYRDCR+AdvP4C4E59                    Type 1C           Custom           yes yes no      10  0

If you open the PDF with a reader, you can see the text properly rendered. I also tested your render https://pdf-rs.github.io/view-wasm/ and it render the pdf correctly.

I just run the example you provided following the instructions (download also the fonts) and the output is something like this:

# page 1
       

        
      
 

       

          
        

       

and in my terminal I see

image

This is the file
page.pdf

This case describes mine too https://community.adobe.com/t5/acrobat-discussions/strange-font-encoding-in-pdf-files/td-p/12472215

Thank you

@s3bk
Copy link
Contributor

s3bk commented Apr 23, 2024

Thanks. That will be very useful when I find some time to debug this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants