asciidoctor-pdf | :page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn | Document Editor library
kandi X-RAY | asciidoctor-pdf Summary
kandi X-RAY | asciidoctor-pdf Summary
Asciidoctor PDF is an Asciidoctor extension that converts an AsciiDoc document directly to a PDF document. The style and layout of the PDF is controlled by a dedicated theme file. To the degree possible, this converter supports all the features of AsciiDoc that are supported by the built-in converters. However, there are certain limits imposed by the PDF format and the PDF library this extension uses. Under the covers, Asciidoctor PDF uses the Prawn gem and its extensions (e.g., prawn-svg and prawn-table) to generate the PDF document. Prawn is a general purpose PDF generator for Ruby that features high-level APIs for common needs like setting up the page and inserting images and low-level APIs for positioning and rendering text and graphics. Prawn takes the pain out of creating (basic) PDF documents. Likewise, Asciidoctor PDF takes the pain out of creating PDF documents directly from AsciiDoc. Skip ahead to Getting started to start putting Asciidoctor PDF use. But don’t miss the Highlights to get a preview of what’s possible.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Render a fragment .
- Applies the fragments to the images .
- If a path is added to the path .
asciidoctor-pdf Key Features
asciidoctor-pdf Examples and Code Snippets
Community Discussions
Trending Discussions on asciidoctor-pdf
QUESTION
I would like to convert this book Mastering the Lightning Network, which is freely available through GitHub to a pdf for personal use.
Unfortunately, I have only figured out how to "translate" single files using asciidoc or asciidoctor-pdf. The options for folders don't seem to work with the configuration of the repository.
There has to be an easy way to translate everything, including all files and pictures. Would be very thankful if somebody could help me out.
...ANSWER
Answered 2022-Feb-10 at 15:43You could try using imagemagick: magick *.jpg out.pdf
QUESTION
I'd like to generate a PDF from an .adoc
file with asciidoctor using
asciidoctor-pdf Doku.adoc
How can I print the current git sha1-hash into the PDF?
...ANSWER
Answered 2021-Aug-25 at 14:16asciidoctor-pdf -acommitHash=$(git rev-parse HEAD) Doku.adoc
You can now use the document attribute commitHash
within your document by writing:
{commitHash}
Use ifdef
to test if the variable is set.
QUESTION
I'm running asciidoctor with the following command:
...ANSWER
Answered 2020-Dec-20 at 21:13Asciidoctor with backend PDF does only have limited support for passthrough syntax as the documentation states.
Asciidoctor PDF does not support arbitrary passthrough content. While the basebackend for the PDF converter is html, it only recognizes a limited subset of inline HTML elements that can be mapped to PDF (e.g., a, strong, em, code, ). Therefore, if your content contains passthrough blocks or inlines, you most likely have to use a conditional preprocessor to skip them (and make other arrangements).
While the a
tag is mentioned above a small test shows that only basic syntax is supported.
Using the below adoc file...
QUESTION
I have created an .adoc
file and want to convert it to PDF.
I am using Linux Debian and GEdit for writing the .adoc. I followed all the steps to install asciidoc-pdf, RVM, etc. from here. And it actually works, but for some reason it doesnt want to convert my file.
I downloaded a readme for Asciidoctor PDf converter and tried to convert it to pdf to see if all is working correctly and it converted with no problem.
When I try to convert my file, it only converts the title and that's it. When I try to convert it to HTML, I get a bit more - the line with the name of the author (my name). And I can't understand what's wrong.
I even tried to write the same file from scratch with no result.
Here is a sample of my file:
...ANSWER
Answered 2020-Nov-30 at 14:43This ifdef
QUESTION
I export a PDF with the following footer:
...ANSWER
Answered 2020-Aug-25 at 10:27As suggested in this comment I added an inline macro. It's kind of well documented how to register macros (and/or extensions, for that matter), but not exactly where to register them. So here we go:
Include the extension file in build.gradle
, pass the offset if required:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install asciidoctor-pdf
To install Asciidoctor PDF, first make sure you have satisfied the prerequisites. Then, install the gem from RubyGems.org using the following command:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page