Heading and footer in PDF?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Heading and footer in PDF?

Alex Zuan
Greetings,

I'm currently writing a document that I need to export to pdf, and I'm using the asciidoctor-pdf gem. However I don't understand how to add content to the footer or header of the pages. Do I have to use an extension? Or a docinfo?
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

mojavelinux
Administrator
To add content to the header and footer (called the running header and footer), you need to create a custom theme file. You can find details in the following guide:


Specifically, the Running header & footer section:


If something is unclear, please don't hesitate to let us know and we'll try to address it.

Cheers,

-Dan

On Thu, May 19, 2016 at 7:53 AM, Fulgenzio [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Greetings,

I'm currently writing a document that I need to export to pdf, and I'm using the asciidoctor-pdf gem. However I don't understand how to add content to the footer or header of the pages. Do I have to use an extension? Or a docinfo?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Heading-and-footer-in-PDF-tp4681.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

Alex Zuan
Thank you for your help! I waas hoping for another way to be honest, as I can't seem to insert a string containing numbers in the running footer, nor a table.; am I missing something?
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

mojavelinux
Administrator

On Fri, May 20, 2016 at 3:41 AM, Alex Zuan [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I waas hoping for another way to be honest,

That's the way I decided to do it. However, I'll admit it will be even easier once we can import one them into other (see https://github.com/asciidoctor/asciidoctor-pdf/issues/367).

I can't seem to insert a string containing numbers in the running footer, nor a table.; am I missing something?

That was a bug in 1.5.0.alpha.11. It's been fixed in master and will be part of the 1.5.0.alpha.12 release. You can try to use the version from git in the meantime.

Cheers, 

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

Alexander Zobkov
Hello Dan,

Do you have a specific date for asciidoctor-pdf 1.5.0.alpha.12 release?

My intention is to integrate to be released version of prawn-svg that includes fixes for SVG arrow-head support: https://github.com/mogest/prawn-svg/issues/49.
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

mojavelinux
Administrator
Alexander,

I'll try to get a release out this weekend.

-Dan

p.s. Releases will happen more frequently once we get them fully automated. It takes too long to do in between other tasks right now. We could really use the expertise of an automation specialist in the Asciidoctor project.


On Fri, May 20, 2016 at 9:06 AM, Alexander Zobkov [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello Dan,

Do you have a specific date for asciidoctor-pdf 1.5.0.alpha.12 release?

My intention is to integrate to be released version of prawn-svg that includes fixes for SVG arrow-head support: https://github.com/mogest/prawn-svg/issues/49.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Heading-and-footer-in-PDF-tp4681p4701.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

mojavelinux
Administrator
In reply to this post by Alexander Zobkov

 Alexander Zobkov:
My intention is to integrate to be released version of prawn-svg that includes fixes for SVG arrow-head support: https://github.com/mogest/prawn-svg/issues/49.

I've updated the version of prawn-svg in master, so it will make it into the release.

-Dan


--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

Alexander Zobkov
Thank you Dan! Can't wait for asciidoctor-pdf 1.5.0.alpha.12 release.
Will asciidoctorj-pdf 1.5.0.alpha.12 be released as well?
Reply | Threaded
Open this post in threaded view
|

Re: Heading and footer in PDF?

mojavelinux
Administrator
The AsciidoctorJ PDF release will depend on Robert's availability. However, there's going to be a slight problem because prawn-svg now requires Ruby 2, which is going to impact the AsciidoctorJ build. It may be necessary to downgrade prawn-svg in AsciidoctorJ until 1.6.0.

Once we get to 1.6.0, this will become a lot simpler because AsciidoctorJ PDF will be maintained in a separate repository. We learned our lesson from our experience working with a combined repository.

Since you are tracking the latest version closely, what I recommend is using the Ruby gem directly from AsciidoctorJ.

-Dan

On Sat, May 21, 2016 at 11:32 AM, Alexander Zobkov [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Thank you Dan! Can't wait for asciidoctor-pdf 1.5.0.alpha.12 release.
Will asciidoctorj-pdf 1.5.0.alpha.12 be released as well?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Heading-and-footer-in-PDF-tp4681p4705.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen