Skip to content
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

Implement MultiBackend support for generating e.g. multi-page PDFs #18

Open
byorgey opened this issue Oct 29, 2012 · 0 comments
Open

Implement MultiBackend support for generating e.g. multi-page PDFs #18

byorgey opened this issue Oct 29, 2012 · 0 comments

Comments

@byorgey
Copy link
Member

byorgey commented Oct 29, 2012

See https://github.com/diagrams/diagrams-core/blob/master/src/Diagrams/Core/Types.hs#L834 for the MultiBackend class.

Generating multiple pages can be done by calling

http://hackage.haskell.org/packages/archive/cairo/0.12.3.1/doc/html/Graphics-Rendering-Cairo.html#v:showPage

which is a binding to

http://www.cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-show-page

Multiple pages are supported for PDF, PS, and SVG. Not sure what should be done if the user calls renderDias but requests an output type that doesn't support it (PNG). Perhaps just exit with an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant