Questions tagged [asciidoctor-pdf]

should be used for questions related to native renderer for

Usage

Install it using and verify installation

$ gem install --pre asciidoctor-pdf
$ asciidoctor-pdf -v

And use it

$ asciidoctor-pdf sample.adoc

References

59 questions
7
votes
2 answers

Multiple paragraphs in AsciiDoctor table cell

Edit: Since my problem seems to be specific to my setup, I provide a complete minimal working example here. This is my maven setup (pom.xml):
flyx
  • 35,506
  • 7
  • 89
  • 126
4
votes
1 answer

No images in generated PDF document (from Asciidoc to PDF)

I'm generating a PDF document from asciidoc with asciidoctor-web-pdf. So far most tasks work fine. asciidoctor-web-pdf -a stylesheet="asciidoctor-pdf/css/asciidoctor.css,asciidoctor-pdf/css/document.css,assets/pdf-export/custom.css" \ …
3
votes
1 answer

Asciidoc long chapter titles in the header area overlaps the company logo

My problem is the representation of long {chapter-title} in the header area. The long chapter titles overlaps the company logo. It would be great if I could define a short version for the header area. I'm using the asciidoctor-maven-plugin version…
3
votes
1 answer

Better way to include content as-is with AsciiDoc include directive

Context I am making a script that dynamically inserts include directives in code blocks on an AsciiDoc file and then generates a PDF out of that. A generated AsciiDoc file could look like this: = Title [source,java] --- include::foo.java[] --- I…
HerCerM
  • 145
  • 2
  • 9
3
votes
1 answer

Unable to set font size with asciidoctor-pdf

I'm unable to set a font size (or style) for my .adoc files when transformed in PDF with asciidoctor-pdf. According to the docs, I can specify it as follows: base: font_size: 8 line_height_length: 10 So I've put it at the top of my .adoc file.…
Carla
  • 3,064
  • 8
  • 36
  • 65
2
votes
2 answers

Best way to generate Mastering the Lightning Network PDF from ASCIIDOC

The Book "Mastering the Lightning Network" is accessible through Github (https://github.com/lnbook/lnbook) and there are multiple asciidoc files that make the book. The License is that it is free for the own use to generate a pdf. So I looked a bit…
Klaus
  • 315
  • 1
  • 10
1
vote
1 answer

Gradle plugin AsciidoctorPdf: Extend font search path

I want to convert Asciidoctor files into PDF files using Gradle and the AsciidoctorPdf plugin. To be able to customize the resulting PDF, I define a custom theme. As base font I use the EB-Garamond font from Google. My theme references the default…
Olaf
  • 3,786
  • 4
  • 25
  • 38
1
vote
1 answer

asciidoctor-pdf cannot load such file -- matrix (LoadError)

I'm building an existing asciidoc project on a new machine and while it works on my old machine, on the new one it throws this error: $ bundle exec asciidoctor-pdf book.adoc bundler: failed to load command: asciidoctor-pdf…
lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
1
vote
1 answer

how to translate or remove the "Chapter" and "Table Of Content" strings that asciidoctor-pdf insert in the genrated pdf

A asciidoc document writen in french, but asciidoctor-pdf precedes chapters with an english "Chapter" String and the tabl of content with an english "Table Of Content" title. How to repalce/translate/avoid that english strings in the final pdf ?
user1767316
  • 3,276
  • 3
  • 37
  • 46
1
vote
1 answer

Can I change the font used in source blocks by Asciidoctor PDF?

Is it possible to specify a different font for use in the source blocks of a PDF generated by asciidoctor-pdf? I'm guessing it has something to do with the theme I'm using (currently just the default), but I've checked the theming guide and can't…
rowanu
  • 1,683
  • 16
  • 22
1
vote
1 answer

How do I include an image in a nested list with Asciidoc without the image tabbing over?

I want to include an image at the end of an ordered, nested list using Asciidoc. For example: . Item .. Option A .. Option B ... Sub-option B.1 + image:: However, the image ends up getting tabbed to be even with the third bullet. Is there any way…
1
vote
2 answers

Generate single PDF from multiple Asciidoc files

I'm trying to convert my existing asciidoc documentation into pdf. Asciidoctor-pdf seems quite easy and I'm able to convert single files into pdf. asciidoctor-pdf -a pdf-theme='./theme/styles.yml' -a pdf-fontsdir='GEM_FONTS_DIR, theme/fonts/'…
1
vote
1 answer

Chapter titles in the Header of a document generated by Asciidoctor-PDF

I'd need to add the Chapter title in the page's heading of PDF files generated with Asciidoctor-toPDF. Here is the set of Properties I'm using at the beginning of my doc: = Book title :notitle: :toc: left :toclevels: 8 :sectnums: :sectnumlevels:…
Carla
  • 3,064
  • 8
  • 36
  • 65
1
vote
1 answer

asciidoctor-maven-plugin generate pdf - unexpected kDO_BLOCK

I am trying to generate pdf, using this tutorial: https://www.baeldung.com/asciidoctor https://github.com/eugenp/tutorials/blob/master/asciidoctor/pom.xml My pom looks like that:
tryingHard
  • 1,794
  • 4
  • 35
  • 74
1
2 3 4