Skip to content

Conversation

@renierr
Copy link

@renierr renierr commented Nov 22, 2025

Description

  • add flattening as image tool
  • add html to pdf tool (with Wysiwyg quill editor)
  • PWA app for offline usage
  • add loading screen (helpful for simple mode - reduce flicker when hiding branding)
  • vite env file loading in config
  • some tweaks for example: -- simple mode hiding with styles
    -- git ignores

remove online dependency to
https://snippet.embedpdf.com/embedpdf.js
(because it is not true 100% offline then) - fallback to browser editor as embedding.

TODO: removed a flatten option for sign, because it was rewritten may be add it in a later commit

see previous PR from me - this is a nice squashed condensed version.
Highlight is the HTML to PDF with an wysiwyg editor.

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

🧪 How Has This Been Tested?

Please describe how you tested your changes so that maintainers can verify them. Include enough detail for someone else to reproduce your tests.

Checklist:

  • Verified output manually
  • Tested with relevant sample documents or data
  • Wrote Vite Test Case (if applicable)

Expected Results:

  • What the tests should produce (e.g., correct PDF rendering, no errors).

Actual Results:

  • What you observed when running the tests.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

- add flattening as image tool
- add html to pdf tool (with Wysiwyg quill editor)
- PWA app for offline usage
- add loading screen (helpful for simple mode - reduce flicker when hiding branding)
- vite env file loading in config
- some tweaks for example:
-- simple mode hiding with styles
-- git ignores

remove online dependency to
https://snippet.embedpdf.com/embedpdf.js
(because it is not true 100% offline then) - fallback to browser editor as embedding.

TODO: removed a flatten option for sign, because it was rewritten may be add it in a later commit
@renierr renierr mentioned this pull request Nov 22, 2025
15 tasks
@alam00000
Copy link
Owner

alam00000 commented Nov 22, 2025

@renierr Great thank you. I would review it later. However, the HTML to PDF, is just an advanced Text to PDF I believe as you can't really paste HTML in quill. So we could just replace the text to pdf's type functionality with this

@renierr
Copy link
Author

renierr commented Nov 22, 2025

you can past html into the wysiwyg editor, or write rich text directly into it with toolbar and some options.

@alam00000
Copy link
Owner

Does it support css

@renierr
Copy link
Author

renierr commented Nov 22, 2025

This is how it looks
Screenshot_20251122_122041_Chrome
document-2025-11-22.pdf

@renierr
Copy link
Author

renierr commented Nov 22, 2025

the conversion is in code to pdf. currently what you can select in toolbar. no further config, but could be enhanced like, selecting font etc.

I am open to change the UI to look different. Or other changes to the PR

(cherry picked from commit c81ebec)
page size, page orientation,
default font and size
better sizing to fit to page
page size, page orientation,
default font and size

(cherry picked from commit abc0e21)
(cherry picked from commit 8419327)
better sizing to fit to page

(cherry picked from commit ee205f6)
exclude pdfjs-* (viewer) stuff for iframe calls.

the viewer cannot be used offline because of the blob url passed in viewer.html (changed for every blob)
exclude pdfjs-* (viewer) stuff for iframe calls.

the viewer cannot be used offline because of the blob url passed in viewer.html (changed for every blob)

(cherry picked from commit 370488a)
use the default and user-provided styles
use the default and user-provided styles

(cherry picked from commit 7b7b7f1)
# Conflicts:
#	src/css/styles.css
#	vite.config.ts
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

Successfully merging this pull request may close these issues.

2 participants