How does Joplin export PDFs?

I'm not sure if this is in the right category, sorry in advance if it isn't.

I'm just curious to see how Joplin handles PDF export, but most of the topics I can find here discuss feature requests and the like and not the actual code itself. I'm having some trouble finding it, simply due to how large Joplin is at this point. I'm assuming it is inside joplin/packages/renderer or joplin/packages/pdf-viewer, but I haven't found the relevant functions that handle the actual export. Which may just be a case of me being blind.

Can anyone point me in the right direction? I'm mostly just curious to see if Joplin uses an in-house solution or a third-party library for it, but I'd also just like to read through the code.

Here is the export pdf command. It calls the printTo_ function which actually handles the export. The conversion to pdf is handled by the InteropServiceHelper.

Reading through the linked code should answer the rest of your questions. Good luck!

1 Like

Thank you, that seems to be it :).