Render [%interactive] checkboxes using asciidoctor-pdf

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Render [%interactive] checkboxes using asciidoctor-pdf

nixfreak
Hello,
 
   I am trying to get the interactive checkboxes to render when converted to PDF. I am unable to get the checkboxes to show up in pdf.

Is there a way to do this?

Thanks

example of markdown

====
[%interactive]
* [ ]  instruction done here
* [ ]  Double click on Terminal icon on the Desktop

====
Reply | Threaded
Open this post in threaded view
|

Re: Render [%interactive] checkboxes using asciidoctor-pdf

mojavelinux
Administrator
When I use Asciidoctor PDF 1.5.0.alpha.16, the box in front of each checklist item appears (with or without the interactive option set). Obviously, the checkbox is not interactive because the PDF is read only. But I do see the box.

What are you observing and how is it different than what you expect?

-Dan

On Fri, Sep 8, 2017 at 7:20 AM, nixfreak [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,
 
   I am trying to get the interactive checkboxes to render when converted to PDF. I am unable to get the checkboxes to show up in pdf.

Is there a way to do this?

Thanks

example of markdown

====
[%interactive]
* [ ]  instruction done here
* [ ]  Double click on Terminal icon on the Desktop

====


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Render-interactive-checkboxes-using-asciidoctor-pdf-tp5888.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Render [%interactive] checkboxes using asciidoctor-pdf

nixfreak
I am trying to click on the interactive boxes in html5 and then export the html to pdf using asciidoctor-pdf. Look for the checkboxes to actually be filled in. This is what i see when rendered to pdf.
¬ Click START — Run — explorer.exe
¬ Browse to NAS
Reply | Threaded
Open this post in threaded view
|

Re: Render [%interactive] checkboxes using asciidoctor-pdf

mojavelinux
Administrator
There are two issues here. The first has to do with the state of the checkbox. The second is with the glyph itself. Let's start with the second.

If you are seeing the ¬ (not) character, that means that the glyph is not in your font. You must be using a custom PDF theme. If so, you need to be sure to define fonts that provide the necessary characters (which are \u2611 and \u2610). If you don't want to mess with fonts, the best thing to do is use the catalog from the default theme. See:

https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#bundled-fonts

As for the state of the checkbox, Asciidoctor does not maintain application state. Therefore, if you check a box in the HTML, that's not going to translate to the PDF. That's something you'd need to write code to do. The interactive checkboxes are just placeholders that are intended to hook into your application. Otherwise, they are just for display.

Cheers,

-Dan

On Tue, Sep 12, 2017 at 12:09 PM, nixfreak [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I am trying to click on the interactive boxes in html5 and then export the html to pdf using asciidoctor-pdf. Look for the checkboxes to actually be filled in. This is what i see when rendered to pdf.
¬ Click START — Run — explorer.exe
¬ Browse to NAS


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Render-interactive-checkboxes-using-asciidoctor-pdf-tp5888p5894.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Render [%interactive] checkboxes using asciidoctor-pdf

nixfreak
I really appreciate you helping me out here. I understand about pdf theme and yes I created a new one to fit with html5 output. So I will take a look at the two themes you have.

Anyway you could show me how I could program the output of html5 (checkboxes) and render the output on pdf ?

Reply | Threaded
Open this post in threaded view
|

Re: Render [%interactive] checkboxes using asciidoctor-pdf

mojavelinux
Administrator
If you have questions about the custom fonts, I'd be glad to help. And that will help me write a better guide for managing fonts. Be sure to study what is already written here:


Anyway you could show me how I could program the output of html5 (checkboxes) and render the output on pdf ? 

That is way outside the scope of this project.

-Dan

On Tue, Sep 12, 2017 at 1:27 PM, nixfreak [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I really appreciate you helping me out here. I understand about pdf theme and yes I created a new one to fit with html5 output. So I will take a look at the two themes you have.

Anyway you could show me how I could program the output of html5 (checkboxes) and render the output on pdf ?




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Render-interactive-checkboxes-using-asciidoctor-pdf-tp5888p5898.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux