Closed 0xff-lroe closed 3 years ago
Trying to access your project I get a 404. Is your repository private?
Yes, it was private. Sorry for that. Should work now...
The conversion works for me after adding the "alt" attribute:
passthrough:screenshots/redeemer-portal-01-login.png[width=80%,align="center", alt="alt"]
The HTML backend doesn't seem to fail on that because it uses ''
as a default.
@mojavelinux Since asciidoctor-pdf 1.6.0 relies on asciidoctor >= 2.0.0 I guess it could also use node.alt
instead of node.attr 'alt'
here?
https://github.com/asciidoctor/asciidoctor-pdf/blob/1ab33379a06161f330f8869cd5bef4310d6f43cb/lib/asciidoctor/pdf/converter.rb#L2502
Then it should also fall back to an empty alt attribute for the image.
Works like a charm. Thanks!
I'm currently working on a custom Java extension that is able to draw a frame around an existing image. For that an inline macro is used to perform the following steps:
The code/idea for how to integrate "new" image blocks when using an inline macro is taken from here and here
Unfortunately the procedure seems to work somehow for the
HTML
backend (with some warnings) but not for thePDF
backend.I've provided a sample project that only does the inline macro processing and tries to include an image: https://gitlab.com/0xff-lroe/asciidoctor-pdf-issues. The example project uses Maven and the mentioned Asciidoctor Java extension.
The extension provided here does nothing but trying to integrate an image.
When running the build (like here) you can see that when using the
HTML
backend the processing works but some warnings appear:Running the build (like here) using the
PDF
backend then the processing fails. The message given back by asciidoctor-pdf is:Using asciidoctor-pdf 1.5.4 or 1.6.0 makes no difference.
Do you have any hints for me how to overcome this issue? Or maybe what's the correct way of including images out of inline macros?
Thanks in advance.