asciidoctor-pdf: Error: undefined method get_page_objects
Hi, I get such error whenever I try the next instruction in Linux:
$ asciidoctor-pdf -n -a pdf-stylesdir=resources/themes some_doc.adoc -osome_output.pdf
I’ve been using this program for years with the same kind of documents and this is the first time I get it. The Debian maintaner also gets it: https://github.com/prawnpdf/pdf-core/issues/46
If I remove the “-a pdf-stylesdir=resources/themes” option it works, but that’s is something I need.
If I use the “–trace” option I get this:
Traceback (most recent call last): 12: from /usr/bin/asciidoctor-pdf:31:in
<main>' 11: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:in
invoke!’ 10: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:111:ineach' 9: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/invoker.rb:128:in
block in invoke!’ 8: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:inconvert_file' 7: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:in
open’ 6: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:183:inblock in convert_file' 5: from /usr/lib/ruby/vendor_ruby/asciidoctor/convert.rb:118:in
convert’ 4: from /usr/lib/ruby/vendor_ruby/asciidoctor/document.rb:951:inconvert' 3: from /usr/lib/ruby/vendor_ruby/asciidoctor-pdf/converter.rb:118:in
convert’ 2: from /usr/lib/ruby/vendor_ruby/asciidoctor-pdf/converter.rb:211:inconvert_document' 1: from /usr/lib/ruby/vendor_ruby/asciidoctor-pdf/prawn_ext/extensions.rb:682:in
delete_page’ /usr/lib/ruby/vendor_ruby/pdf/core/object_store.rb:96:inobject_id_for_page': undefined method
get_page_objects’ for #PDF::Core::ObjectStore:0x00005649034e1b08 (NoMethodError)
This is the version I’m using under Linux Mint Cinnamon 20:
Asciidoctor PDF 1.5.0.alpha.17.dev using Asciidoctor 2.0.10 [https://asciidoctor.org] Runtime Environment (ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
Greetings!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (17 by maintainers)
1.5 years after this discussion, I’m hitting the same problem. 🤷♂️ What is the current solution, please?
This is what I’m using:
I install the tools like this:
Should I install the tools differently? This is happening in a Github action so I can potentially change the OS image if that helps…
Thanks, I’ve moved the discussion over there. Would love help getting this sorted out.
Thanks for verifying!