[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: asciidoctor-pdf



On Sat, Oct 26, 2024 at 2:13 PM Tom Browder <tom.browder@gmail.com> wrote:
>
> I am running Debian 11 and trying to run asciidoctor and
> asciidoctor-pdf with no luck so far.
>
> I run it with this bash script:
>
> asciidoctor -r asciidoctor-pdf -b pdf \
>   -a pdf-theme=binder \
>   -a pdf-themesdir=./data/themes \
>   -a document_name=”Raku Guide” \
>   -o rakuguide-binder.pdf rakuguide-binder.adoc
>
> and get this error:
>
> Traceback (most recent call last):
> 9: from /usr/bin/asciidoctor-pdf:21:in `<main>'
> 8: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/options.rb:193:in `parse!'
> 7: from /usr/lib/ruby/2.7.0/optparse.rb:1691:in `parse!'
> 6: from /usr/lib/ruby/2.7.0/optparse.rb:1666:in `permute!'
> 5: from /usr/lib/ruby/2.7.0/optparse.rb:1569:in `order!'
> 4: from /usr/lib/ruby/2.7.0/optparse.rb:1575:in `parse_in_order'
> 3: from /usr/lib/ruby/2.7.0/optparse.rb:1575:in `catch'
> 2: from /usr/lib/ruby/2.7.0/optparse.rb:1621:in `block in parse_in_order'
> 1: from /usr/lib/ruby/vendor_ruby/asciidoctor/cli/options.rb:87:in
> `block (2 levels) in parse!'
> /usr/lib/ruby/vendor_ruby/asciidoctor/cli/options.rb:87:in `encode':
> "\\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
>
> I have asked for help from the asciidoctor community but no response so far.
>
> Anyone here running asciidoctor have any suggestions?

In your case, I suggest making sure the pdf conforms to the pdf spec.
Try running qpdf on the pdf file:

    qpdf --check <pdf file>

Jeff


Reply to: