Tiddly2PDF Release

Version 0.1.2 is now out.

New Features include:

  • Shinked down to 1.5MB (I had to add some fonts back to get everything working)
  • File names are now selectable
  • Custom Fonts can now be uploaded and used. (This was the big thing)
  • Minor bug fixes and opened an issue to get one resolved.

What next? The ability to have multiple docs and to be able to select different templates and settings for individual tiddlers. Additionally, lots more vars for the templates to choose from.

Github: GitHub - GameDungeon/Tiddly2PDF
Docs: Tiddly2PDF Docs
Download: Releases · GameDungeon/Tiddly2PDF · GitHub

1 Like

Version 0.1.3 is now out.

New Features include:

  • Style Changes
  • Added additional built-in styles
  • Added Page fields

Looking for feedback on improving the default styling of the pdfs for a better out-of-the-box look, and suggestions for additional built-in styles, page fields, and template variables.

Github: GitHub - GameDungeon/Tiddly2PDF
Docs: Tiddly2PDF Docs
Download: Releases · GameDungeon/Tiddly2PDF · GitHub

1 Like

Small warning - It looks like I forgot to update the default font setting when changing which font came built-in. If the export button is not working make sure to check the right font is selected.

Thanks for working on this @GameDungeon,

As I raised before I would appreciate if we can PDF the current tiddler, because I have tiddlers that I have built from multiple other tiddlers, that I would like to print on their own, rather via a tag (PDF) in your example. It will mean I have to set when to page break etc… but I am fine with that.

  • perhaps a separate ViewToolbar button?

That’s on the to-do list, I just haven’t gotten around to it yet.

The tiddly in the name does not correspond to the pdf word, perhaps tiddler2pdf would be better?

The general idea is it converts a TiddlyWiki to a PDF, though the original name was TiddlyPDF, it was suggested to change it to this. I’m going to say it’s probably a bit late to change the name now.

1 Like

Version 0.1.4 is now out.

New Features include:

  • Added $pdf-subtitle page field and template var
  • Added support for non-standard image types.
  • Added support for the default highlighter

Soon:

  • A sub-plugin to allow highlight.js support in the PDFs

Still looking for any feedback on improving the default styling of the pdfs for a better out-of-the-box look, and suggestions for additional built-in styles, page fields, and template variables.

Github: GitHub - GameDungeon/Tiddly2PDF
Docs: Tiddly2PDF Docs
Download: Releases · GameDungeon/Tiddly2PDF · GitHub

3 Likes

Version 0.1.5 is now out.

New Features include:

  • Breaking: Style tiddlers are now based in CSS instead of JSON (Only a small subset of features is currently supported, as well as non-standard attributes.)
  • A guide for setting up highlight.js support.

Github: GitHub - GameDungeon/Tiddly2PDF
Docs: Tiddly2PDF Docs
Download: Releases · GameDungeon/Tiddly2PDF · GitHub

3 Likes

Version 0.1.6 is now out.

I took a break for a long while, sorry for the wait.

New Features include:

  • Export single tiddlers as PDFs (@TW_Tones)
  • Style Changes
  • Various fixes I forgot in the 9 month break

Github: GitHub - GameDungeon/Tiddly2PDF
Docs: Tiddly2PDF Docs
Download: Releases · GameDungeon/Tiddly2PDF · GitHub

3 Likes

Beautiful @GameDungeon I cant believe how fast it is and thank you very much for the tiddler only conversion. This should be important to a lot of users such as teachers/trainers/presentors, authors and publishers, anyone who wants to create content and publish it as a static document, a PDF.

Why am I so excited?

If you know tiddlywiki, or even html we can construct tiddlers with advanced content including pulling information from tiddlywiki as a database, the tiddlers are great to view online, but now we can quickly create a PDF for printing or distribution.

Questions

  1. @GameDungeon as the plugin currently stands, how are page breaks handled on single and story tiddlers?, what is the best way to force a break?
  2. Currently clicking a pdf button opens the new PDF in a new tab, this is nice and helpful, but could we have a method to instead save as a file via the download mechanism, the export selector? perhaps also using ctrl-click on the current button?

It currently just breaks when it runs out of room on a page. It should be pretty simple to add an html tag to force a page break, so I should be able to do that soon. It is a bit crude, but right now you could just add whitespace to force it to break.

It should be possible for me to allow you to directly save the file. If I find time I might add it to an export. It isn’t a high priority feature for me currently, as you can always save the file from the new tab page.

Knowing this helps, so I don’t look for something that is not there.

I have a macro to insert a page break in CSS, when I find it I may post here for others to use.

It could be as simple as introducing a modifier key on the button, and generate a different link to cause a download. I am only suggesting it as a possible enhancement. No pressure at all, thanks for your effort so far, this is very useful :nerd_face:

FYI:
With a direct download mechanism it would be possible to enhance it to save the PDF using the title of the tiddler, or wiki, making manual bulk export quick and easy.

  • But I understand you have achieved this through a different but very quick approach.

Love your work :clap:

Hello @GameDungeon,

nice work, thanks. :clap: :+1:

How to make text-align: justify?

Feature requests:
add configure options to $:/core/ui/ControlPanel/Settings for

  • make an option to set font-size
    eg: 90% → will affect all predefinded ($:/plugins/GameDungeon/Tiddly2PDF/pdfstyles/defaultStyles) or make each of them configurable
  • make an option to set the margins

Thanks, Stefan

I’m glad it’s useful. The features you suggest would be quite useful. For now until there is official support, you could use the styling system to override the default styles and change the font size.

This is another case where you would use the styling system.

Love this plugin, thank you! It works well for individual tiddlers (I see the PDF icon for each tiddler), but for some reason, the icon in the sidebar generates en empty PDF (2 pages, with the “Table of Contents” title and then a second blank page). Any clue as to what I’m doing wrong? Thanks!

If you go into options > settings > Tiddly2PDF settings you can find a filter that controls what tiddlers are added to the PDF.

Aaah got it, thank you. I now see in the settings that you have by default all the tiddlers with the tag “pdf”. Do you know what would be the filter to use for all open tiddlers, if there’s one? Thanks again.

All open tiddlers are recorded in the $:/StoryList tiddler, and a fieldname, just check what it is, list, I think.
Off to bed (late)

Excellent, this worked, thank you very much!

It was indeed:

[list[$:/StoryList]] -$:/AdvancedSearch

Wishing you a good night!