-
Notifications
You must be signed in to change notification settings - Fork 500
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
Add a claim near to the Logo on the cover-page. #825
Comments
This is something I strongly recommend adding to the background image. One way to make that dynamic is to make the background image an SVG so that you can easily write text into it in a pre-generate step. Another idea is to use the title logo to insert this graphic, which would be possible once #431 is implemented. Aside from a background or title logo, I don't think design elements should be handled by the theme. |
The idea to use svg for the logo and to customize it during the build is great. I have tried it (see commit 9d7bc68). The output looks like this: I am wondering if there is any kind of limitation, because the original svg image looks like this: |
asciidoctor-pdf uses prawn-svg under the hood to render SVG images. it might just not support svg capabilies used in your svg image. I can suggest the following:
|
The font used in the SVG has to match a font loaded in your theme. That's why it looks visually different. prawn-svg picks up any fonts loaded in Prawn (by way of the Asciidoctor PDF theme file). This is the same requirement anytime you use an SVG. |
We would like to add a claim next to the logo on the cover-page. In my example:
Preview:
The text was updated successfully, but these errors were encountered: