Open den43 opened 4 years ago
Updating the PDF rendering engine code may resolve this... but that may require a lot of work due to upstream issues that were encountered last time it was attempted.
Please try with the latest release (version 6) which has updated pdf.js.
Please try with the latest release (version 6) which has updated pdf.js.
I joined the beta programme and tried with version 6 but the problem persists.
We're missing some CSS and/or JavaScript that solves this as other pdf.js PDF Viewers do not have this issue.
Possibly this not only applies to images but to annotations in general. If we create annotated pdfs in the ipados notes or goodnotes app the annotations shift to the upper left corner as well. Of course if you flatten the pdf they are displayed correctly. poc.pdf I have attached an example pdf demonstrating the behaviour. If correctly rendered, eg on firefox, the grid fills the whole page. In the GrapheneOS pdf viewer it fills roughly the upper left ninth of the page. Maybe this is related to the layout issue mentioned in #183 and/or the issue concerning multiple pages (groups) described in #133.
Styling for annotations hasn't been implemented.
Expected Behaviour:
The application should display images in the way described in the LaTeX document, e.g. centred
Actual Behaviour:
Images are displayed in the top left hand corner of the document.
How to reproduce:
Information:
App version: 3 OS: Android 10 (April 5, 2020 Security update) Device: Pixel 3a (stock)
Notes:
I believe this is related to something called "Page Groups", please see here: https://tex.stackexchange.com/questions/76273/multiple-pdfs-with-page-group-included-in-a-single-page-warning
This problem does not occur in other pdf document readers such as Adobe Reader or Microsoft Edge. I have attached the document for you to see the problem. Please open it in Secure PDF Viewer and any other pdf viewer to compare: document.pdf