Skip to content

Conversation

rcoreilly
Copy link
Member

converting code from tdewolff canvas PDF rendering to support direct rendering to PDF files.

@rcoreilly rcoreilly marked this pull request as draft October 2, 2025 10:05
…rd system and text transforms etc, but should be good now.
…er / rich.Settings: it wasn't using the args passed in shaper anyway, and it is just cleaner to have one definitive location for global rich text settings (font names etc), so cleaned that up.
…roperties control pagination. just needs testing of that and floats
…ive transform -- pdf and svg renderers actually need the incremental one, not Cumulative! fixes pdf rendering of svgs (modulo missing features).
…thors to just a string so you can do random formatting on it.
…ays, using to center figures, prevent page breaks on headers, etc.
… now generated not in html but rather in widgetHandler which is simpler and finally allows for arbitrary html formatting inside the caption.
…ong in htmlcore, which is just the basic handler without any of the fancy interactive stuff. moved all the pre elements into a frame, so pdf render is blocked. neuron-channels page is _amazing_ with all the plots etc.
…s: needs an extra 3 pixels. The ascent thing must be wrong somehow, somewhere.. will fix properly later.
…getting weird sizing issue in BG -- can't quite figure it out.
…ave to rebuild core tool to avoid error with Authors change to string instead of []string.
…ade delayed loading of html images optional and off by default -- content does not at all benefit from this, and it interferes with the PDF rendering.
… layer stuff was very broken -- now has a test but is not used by default b/c basically meaningless. but is there as an option. last major issue is the gradients (and then embedded fonts eventually)
…of optimized wrapping -- undoing that for special case of Scene that uses rasterx renderer on web.
…s into global settings system where needed (call core.AddPrinterSettings())
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.

1 participant