You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to embed images in the PDF from a central repository referenced by a URL pointed to the base location. During the invocation to asciidoctor-pdf I'm getting the below error:
undefined local variable or method `image_base_uri' for #Asciidoctor::Pdf::Converter:0x007fef9402fba8
Did you mean? image_page
Use --trace for backtrace
All documentation seems to agree that if the base URL is in the imagesdir attribute that the image:: block should simply embed the image at that position.
Oops, it looks like I made several errors when programming this behavior. Thanks for bringing this to my attention! I've issued a fix as PR #468.
Even with this fix, you still need to use the https version of the URL since the wikimedia server does not support a redirect to https (at least not when using the built-in Ruby HTTP client):
I need to embed images in the PDF from a central repository referenced by a URL pointed to the base location. During the invocation to asciidoctor-pdf I'm getting the below error:
undefined local variable or method `image_base_uri' for #Asciidoctor::Pdf::Converter:0x007fef9402fba8
Did you mean? image_page
Use --trace for backtrace
All documentation seems to agree that if the base URL is in the imagesdir attribute that the image:: block should simply embed the image at that position.
Excerpt from adoc file:
:imagesdir: http://upload.wikimedia.org/wikipedia/commons
image::3/35/Tux.svg[Tux,250,350]
Attempting to build using: asciidoctor-pdf -r asciidoctor-diagram -a allow-uri-read $1
using version 1.5.4 of asciidoctor-pdf
The text was updated successfully, but these errors were encountered: