Login  Register

Re: Set PDF document title property

Posted by mojavelinux on Oct 24, 2019; 10:04am
URL: https://discuss.asciidoctor.org/Set-PDF-document-title-property-tp7273p7281.html

Haven't we already discussed this in this thread? https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-td7192.html

No, you cannot have a title page and not have the document title. But you can have a cover page, which seems to be what you really want. For example:

= Document Title
:notitle:
:front-cover-image: image:cover.png[]

content starts here

You'll see that "Document Title" only shows up in the outline.

If you want a front cover AND another page that comes after it before the first page of content, you could create a 1-page PDF that uses the background image, then import it at the start of the document. Something like:

= Document Title
:notitle:
:front-cover-image: image:cover.jpg[]

image::background.pdf[]

content starts here

(The only downside to that approach is that the page numbers of off by one).

-Dan

On Thu, Oct 24, 2019 at 3:42 AM Hoplop [via Asciidoctor :: Discussion] <[hidden email]> wrote:
What i want is title page without title. Only with background image.
But title must be in document metadata. And its value must be configurable.
Is there a way to achieve that?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Set-PDF-document-title-property-tp7273p7280.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