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

[Bug] PDF Export Formatting Issues with fonts & images #232

Open
KosmoEskudo opened this issue Jan 4, 2025 · 1 comment
Open

[Bug] PDF Export Formatting Issues with fonts & images #232

KosmoEskudo opened this issue Jan 4, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@KosmoEskudo
Copy link

Describe the bug
PDFs exported on mobile devices appear disorganized, and the chosen font style is ignored in favor of the default.

To Reproduce
Steps to reproduce the behavior:

  1. Open Cryptee on an Android 14 device.
  2. Create or open a note and set a specific font style.
  3. Attempt to export the note as a PDF.
  4. Observe that the exported PDF is disorganized (especially with images) and uses an incorrect font style.

Expected behavior
Exported PDFs should retain the formatting and font style set by the user within the editor, not the default font.

System Information (please complete the following information):

  • OS: Android
  • Chrome
  • Version: 131
  • Browser Extensions / Add-ons / Content/Ad-Blockers: None
  • Do you have any DNS-based content/ad-blockers? No
  • Are you on a managed network? No

Additional context
This issue is especially problematic for users exporting professional or academic documents.

@johnozbay
Copy link
Member

Hi there,

PDF as a format was/has been in fact a proprietary format owned by Adobe, even though it now has an open ISO standard around it there are still tons of proprietary undocumented elements of it, and we can only ship so many of its features in an open-source software like Cryptee, without breaking Adobe's existing licenses. And many PDF implementers keep their implementations to themselves or use closed-source / prohibitively licensed pieces of software to achieve their results. This means, our only option is to reverse engineer specific features and make them work in our platform.

For this exact reason, and due to just how time consuming it is to develop support for PDF, and due to the number of bugs there may exist in PDF, we released it as clearly labeled BETA. So yes, things may break, and in time, with more specific and accurate bug reports we can fix / improve these.

e.g. You've filed your bug report with very little information. You wrote :

OS: Android
Chrome
Version: 131
Browser Extensions / Add-ons / Content/Ad-Blockers: None
Do you have any DNS-based content/ad-blockers? No
Are you on a managed network? No

  • Which specific version of Android is it? You wrote 14 but ... due to android's nature each phone vendor has their own flavor.
  • You wrote Chrome v131, have you tested if this happens with Firefox or other browsers as well, or is it a Chrome only bug?

Because your documents are encrypted and we can't see them, the only way we can reproduce bugs like this is if you send us example docs / pdfs etc, so we can understand what's broken. Otherwise since we cannot see your documents, we cannot fix these types of issues. So I'd recommend pasting a screenshot here of the broken PDF with some images and demonstrating how it is broken, and that way we can start taking action.

Thanks for your understanding!

@johnozbay johnozbay changed the title Bug Report: PDF Export Formatting Issues [Bug] PDF Export Formatting Issues with fonts & images Jan 4, 2025
@johnozbay johnozbay added the bug Something isn't working label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants