Skip to content
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

notitle document attribute throws exception #365

Closed
veeg opened this issue Dec 1, 2015 · 1 comment
Closed

notitle document attribute throws exception #365

veeg opened this issue Dec 1, 2015 · 1 comment

Comments

@veeg
Copy link

veeg commented Dec 1, 2015

I'm attempting to render a document without a title page using the :notitle: document attribute

:notitle:
= Test

Results in the following trace

user@host:~> asciidoctor-pdf.ruby2.1 test.adoc --trace
/usr/lib64/ruby/gems/2.1.0/gems/prawn-2.0.2/lib/prawn/document.rb:668:in `generate_margin_box': undefined method `margins' for nil:NilClass (NoMethodError)
    from /usr/lib64/ruby/gems/2.1.0/gems/prawn-2.0.2/lib/prawn/document.rb:307:in `go_to_page'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-pdf-1.5.0.alpha.10/lib/asciidoctor-pdf/prawn_ext/extensions.rb:600:in `delete_page'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-pdf-1.5.0.alpha.10/lib/asciidoctor-pdf/converter.rb:168:in `convert_document'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-pdf-1.5.0.alpha.10/lib/asciidoctor-pdf/converter.rb:98:in `convert'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-1.5.3/lib/asciidoctor/document.rb:1044:in `convert'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-1.5.3/lib/asciidoctor.rb:1514:in `convert'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-1.5.3/lib/asciidoctor/cli/invoker.rb:94:in `block in invoke!'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-1.5.3/lib/asciidoctor/cli/invoker.rb:86:in `each'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-1.5.3/lib/asciidoctor/cli/invoker.rb:86:in `invoke!'
    from /usr/lib64/ruby/gems/2.1.0/gems/asciidoctor-pdf-1.5.0.alpha.10/bin/asciidoctor-pdf:27:in `<top (required)>'
    from /usr/bin/asciidoctor-pdf.ruby2.1:23:in `load'
    from /usr/bin/asciidoctor-pdf.ruby2.1:23:in `<main>'

Using the following version/environment

Asciidoctor PDF 1.5.0.alpha.10 using Asciidoctor 1.5.3 [http://asciidoctor.org]
Runtime Environment (ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)
@mojavelinux
Copy link
Member

It's a known issue that Asciidoctor PDF fails if your document has no content (aside from the document title). Add any amount of content and it will work. This is the same as #317.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants