espresso3389 / pdfrx

pdfrx is yet another PDF viewer implementation that built on the top of pdfium. The plugin currently supports Android, iOS, Windows, macOS, Linux, and Web.
MIT License
60 stars 36 forks source link

Font substitution/fallback does not work for non-embedded font #140

Closed weiqingiqng closed 1 week ago

weiqingiqng commented 3 weeks ago

iOS: WechatIMG163 Real pdf file: special marks (1).pdf pdf url:https://sign-dev.clinflash.com/api/view-pdf/51f311bef5f1acef012e52f46b233ab7-6edb1654addefc935e18fbd63344dea8.pdf The display is incomplete on the iOS platform, but there is no problem on Android. Version 1.0.55 was introduced.

espresso3389 commented 3 weeks ago

Your problem is just a font issue. Not a problem with iOS. Apparently, the PDF is not viewable on Chrome's PDF viewer on Windows:

image

Acrobat on Windows can show the PDF file by using font substitution (STSong-Light is substituted by AdobeSongStd-Light).

image

Currently, pdfrx does not have control on font substition and no workaround for it.

weiqingiqng commented 1 week ago

![Uploading Simulator Screenshot - iPhone 15 Pro Max - 2024-05-08 at 10.33.08.png…]()

Found that it can be fully displayed on the iOS simulator @espresso3389

espresso3389 commented 1 week ago

iOS simulator is a simulator; not an emulator. There are such kind of behavior differences.

On the simulator, it uses the preinstalled fonts on macOS, they are not found on iOS apparently.