Skip to content

txt to pdf implementation#688

Open
Stijn7683 wants to merge 2 commits into
p2r3:masterfrom
Stijn7683:text-to-pdf-branch
Open

txt to pdf implementation#688
Stijn7683 wants to merge 2 commits into
p2r3:masterfrom
Stijn7683:text-to-pdf-branch

Conversation

@Stijn7683

@Stijn7683 Stijn7683 commented Jun 14, 2026

Copy link
Copy Markdown

It uses PDFKit to convert text to a pdf file. Before converting it removes any emojis, because otherwise emojis would end up like 'Ø=ÜÄ'. If the file doesn't contain any text but it does contain emojis then it throws an error.

The text gets placed into A4 sized page(s) with a margin of 72 on all the sides. The text has the font 'Courier'.

I used AI to make the conversion code.

@p2r3

p2r3 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

This does not build. You can check with bunx vite build I think.

@Stijn7683

Copy link
Copy Markdown
Author

This does not build. You can check with bunx vite build I think.

The build completed successfully for me.
There was an import error and I asked ai to fix it. Hopefully it works now.

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