-
-
Notifications
You must be signed in to change notification settings - Fork 102
PDF rendering support #1619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
PDF rendering support #1619
Changes from 87 commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
23b5e6f
pdf: basic pdf writer converted from tdewolff canvas, working for paths
rcoreilly 5891134
pdf: pdfrender updated, layers supported
rcoreilly 52a83e0
pdf: units converting to points properly, top-down coordinate system …
rcoreilly 2923307
pdf: screenshot saves PDFs -- buttons in demo looks good (minus the t…
rcoreilly 054109a
pdf: fix image rendering
rcoreilly 1da7202
pdf: text rendering working -- tricky issues with the bottom-left coo…
rcoreilly dfe506d
pdf: close on text rotation but not quite.. save that for later for n…
rcoreilly 60b2267
pdf: include transform in layers; eliminate empty push-pop sequences …
rcoreilly c7cb621
pdf: move pdf to top level in paint -- no need to be under ppath
rcoreilly 9d5658d
pdf: fix import and yaegicore
rcoreilly 284a4e1
pdf: pagination minimally working; pdf writer is not writing multiple…
rcoreilly ea9a396
pdf: multipage working
rcoreilly 5e2f4fb
pdf: page layout working but doesn't look right. major update to Shap…
rcoreilly ac20cf1
pdf: handles font setting, updating, layout looks good.
rcoreilly 67f7b5a
pdf: first-pass working on docs / content -- still many issues.. :)
rcoreilly 8a83173
pdf: working solidly on docs!
rcoreilly 09b5097
pdf: fix text rotation -- changing to top-left inevitably changes rot…
rcoreilly a7987eb
pdf: runners as functions, working well
rcoreilly 5338325
pdf: context stack tracks pdf state better -- svg test not working we…
rcoreilly 7cd80ac
pdf: new pagination framework with different stages -- much better. p…
rcoreilly cc25528
pdf: render.Context stores both the incremental Transform and Cumulat…
rcoreilly 8691e11
pdf: minor svg_test fixup
rcoreilly c4904c4
pdf: fix shaped_test -- emoji is not working since some point!
rcoreilly 86cdc08
pdf: paginate title example working, and content settings
rcoreilly a9af368
pdf: title setting url default etc
rcoreilly 6a8d75f
pdf: title etc updated, added elements to content, changed content Au…
rcoreilly 8001db5
pdf: start on links: got positioning right finally, but need to deal …
rcoreilly d92aca4
pdf: math rendering working
rcoreilly a8a136d
pdf: content and htmlcore element handling improved: setting tags alw…
rcoreilly 3d3a820
pdf: move content handlers into handlers and cleanup; figure captions…
rcoreilly 0f0b1c8
pdf: handle text improvements; block for figures to keep together -- …
rcoreilly a031688
pdf: move pre handler with BindTextEditor into content -- did not bel…
rcoreilly 10c5e18
pdf: gap and left padding layout preserved in paginate
rcoreilly 229ec7f
pdf: MouseUp always clears Active state regardless -- can be set for …
rcoreilly d14f362
pdf: fix the completely bizarre first-text-line-offset issue with PDF…
rcoreilly 9a085e7
pdf: render uniform boxes, fix path cases -- just need gradient now; …
rcoreilly a497b88
pdf: pdf sizing issues all fixed -- need to pre-render in the same ge…
rcoreilly 20df3c5
pdf: js/web version downloads the PDF file -- fixed crash there and h…
rcoreilly 6441853
pdf: pdf generates references for current page; updated csl to use fs…
rcoreilly f8dc3f6
pdf: pdf links fully working finally. wow that was an ordeal. also: m…
rcoreilly 9e7ab29
pdf: content set DelayedImageLoad = false regardless of current defau…
rcoreilly d79315c
pdf: csl generates html formatted text for references, including link…
rcoreilly e3fa632
pdf: support markdown in figure captions.
rcoreilly 7749931
pdf: fixed remaining pdf incompatibility issues: now fully compliant!…
rcoreilly 76471ba
pdf: README with validator link
rcoreilly c4dc38c
use ImageRenderer in pdf -- key for web
rcoreilly a614881
pdf: use the right base url
rcoreilly 368bd53
pdf: fix for web-based PDF generation: images were not available b/c …
rcoreilly 92d8414
pdf: yeah that semicolon thing is real. what wasn't real was my bad s…
rcoreilly 17c7fa4
pdf: parse/golang: prevent recursive type loop from crashing
rcoreilly dea8cd1
pdf: printer.Settings handles all the standard printer settings, plug…
rcoreilly 7c550bb
pdf: misc settings fixes -- all good
rcoreilly 6f93ef2
pdf: more printer formatting settings and enforcement of actual font …
rcoreilly 75097f6
pdf: even more printer formatting settings including header styling f…
rcoreilly 84ffd34
pdf: table of contents outline generation in place
rcoreilly 1a8978c
pdf: toc root points to start of doc
rcoreilly 5914096
pdf: tests identify that the nomial gradient coordinates need to be u…
rcoreilly dcae805
pdf: gradients mostly working
rcoreilly 4d18c93
pdf: key fixes to gradient function to handle case with non- 0,1 grad…
rcoreilly 972fae6
pdf: rendering fixes and svg io marshal fix to not output duplicate t…
rcoreilly 552fcb9
pdf: fix for bp_delta case: always push the transform..
rcoreilly 454ea3a
pdf: pdf passing most svg tests -- good enough for now!
rcoreilly d3a3e84
pdf: svg to pdf and svg clone methods
rcoreilly d7a86f6
pdf: fix scene handle layout issues introduced by earlier LayoutFrame…
rcoreilly 2744144
pdf: finally fix the svg testdata directory structure so pdf and png …
rcoreilly 3ccc95b
pdf: convenience RenderToPDF func
rcoreilly a81b079
pdf: minor cleanup of addlink
rcoreilly bcc3cac
pdf: add OnlineURL for docs
rcoreilly 63dcaa5
pdf: don't run TestFontEmoji
rcoreilly ca0781c
Merge branch 'main' into pdf
rcoreilly c8d48bf
pdf: paginate ensures font is black and use light mode so links are t…
rcoreilly 80f098a
pdf: tables have less space between rows -- standard formatting for t…
rcoreilly 59071c0
pdf: change matcolor scheme to use 100 and 0 for Background: the almo…
rcoreilly 5b9ee06
pdf: matcolor scheme also needs to brighten the surface values a notc…
rcoreilly 2bd13fd
pdf: minor math32 vector reordering and doc
rcoreilly a352e45
pdf: rename the awkward MulVector2As methods to simpler MulVector and…
rcoreilly d66b208
pdf: more cleanup
rcoreilly 9ed2447
pdf: Matrix3 constructor
rcoreilly 95b6a48
pdf: move Vector3.MulQuat to Quat.MulVector
rcoreilly 04eecbb
pdf: previous had simpler implementation of MulVector -- this removes…
rcoreilly 56630f7
pdf: math32 minor cleanup
rcoreilly 8cffdc0
pdf: yaegicore update
rcoreilly cda4bd5
Merge branch 'main' into pdf
rcoreilly 234f7e6
pdf: fixes from kai review
rcoreilly f9fdeb9
pdf: key fix for xyz on web: need Size method on renderer interface.
rcoreilly 7abcf25
pdf: how can I still be so confused about rows, columns in matrix aft…
rcoreilly c5dbfaa
pdf: remove matcolor.Scheme.Background in favor of Surface, OnSurface
rcoreilly 0f5920a
pdf: ZeroSpace() also nils BoxShadow and MaxBoxShadow
rcoreilly 214d0d9
pdf: locale simplification
rcoreilly a7fc614
pdf: locale simplification p2
rcoreilly 641c747
pdf: mdcite separator
rcoreilly adcbf18
pdf: other review fixes
rcoreilly abc3906
pdf: always add printer settings, in core settings; also fix issue wi…
rcoreilly 92082d0
pdf: add NewQuatIdentity function
rcoreilly 8c1c3d4
pdf: yaegi update
rcoreilly 665c5f3
pdf: add WrapMax and WrapMinMax functions for efficient wrapping (fin…
rcoreilly ac6d590
pdf: handle case that occurs in new text in canvas where stroke = non…
rcoreilly 166ced6
pdf: math32 additions: IsNaN() methods for Vector, Quat for finding b…
rcoreilly 413c6cd
pdf: Surface color for dark theme is 0, like the now-removed Backgrou…
rcoreilly 8ca5bf1
content: MakeToolbarPDF function
kkoreilly cec4708
matcolor: scheme fixes
kkoreilly File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.