Asciidoctor-PDF | Title page with image only

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

Asciidoctor-PDF | Title page with image only

Hoplop
Again, for some reason I can't find answer for simple question in documentation: can or can't I create title page in PDF with no text whatsoever, only with background image?
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-PDF | Title page with image only

mojavelinux
Administrator
I think you are looking for the cover page, which is set using the front-cover-image attribute. See https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#theme-related-document-attributes. You can then disable the title page using the notitle attribute.

Cheers,

-Dan

On Tue, Oct 8, 2019 at 5:01 AM Hoplop [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Again, for some reason I can't find answer for simple question in documentation: can or can't I create title page in PDF with no text whatsoever, only with background image?


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192.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: Asciidoctor-PDF | Title page with image only

Hoplop
Can't i just say "title_page: empty " in theme.yaml or something? As far as i can see, by default only document title appears to be on the title page, so all i need is to get rid of it.
Your solutions is working, sure, but i'm really need to control title page settings in the theme.yaml, not in the source adoc.
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-PDF | Title page with image only

mojavelinux
Administrator
That's just not how Asciidoctor PDF works.

You could set the color of the text to transparent so that it doesn't show. But the title page always has the document title. Otherwise, it wouldn't be a title page.

-Dan

On Tue, Oct 8, 2019 at 6:07 AM Hoplop [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Can't i just say "title_page: empty " in theme.yaml or something? As far as i can see, by default only document title appears to be on the title page, so all i need is to get rid of it.
Your solutions is working, sure, but i'm really need to control title page settings in the theme.yaml, not in the source adoc.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7194.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: Asciidoctor-PDF | Title page with image only

Hoplop
>You could set the color of the text to transparent
I was trying to do that yesterday, this config didn't work:

title-page:
  background-image: rtk-title-page.png
  font-color: transparent

It had said something like unknown color.
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor-PDF | Title page with image only

mojavelinux
Administrator
The correct syntax is:

title-page:
  font-color: [0, 0, 0, 0]

We should probably support the "transparent" keyword for font colors too, but you can always fall back to a CMYK array.

Cheers,

-Dan

On Tue, Oct 8, 2019 at 11:38 PM Hoplop [via Asciidoctor :: Discussion] <[hidden email]> wrote:
>You could set the color of the text to transparent
I was trying to do that yesterday, this config didn't work:

title-page:
  background-image: rtk-title-page.png
  font-color: transparent

It had said something like unknown color.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7196.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: Asciidoctor-PDF | Title page with image only

mojavelinux
Administrator
My mistake. That's the color white. Give me a minute to figure out how to represent the color transparent.

-Dan

On Wed, Oct 9, 2019 at 12:39 AM mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
The correct syntax is:

title-page:
  font-color: [0, 0, 0, 0]

We should probably support the "transparent" keyword for font colors too, but you can always fall back to a CMYK array.

Cheers,

-Dan

On Tue, Oct 8, 2019 at 11:38 PM Hoplop [via Asciidoctor :: Discussion] <[hidden email]> wrote:
>You could set the color of the text to transparent
I was trying to do that yesterday, this config didn't work:

title-page:
  background-image: rtk-title-page.png
  font-color: transparent

It had said something like unknown color.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7196.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



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7197.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: Asciidoctor-PDF | Title page with image only

mojavelinux
Administrator
It's not supported. I'll open an issue since it probably should be.

Best,

-Dan

On Wed, Oct 9, 2019 at 12:47 AM mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
My mistake. That's the color white. Give me a minute to figure out how to represent the color transparent.

-Dan

On Wed, Oct 9, 2019 at 12:39 AM mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
The correct syntax is:

title-page:
  font-color: [0, 0, 0, 0]

We should probably support the "transparent" keyword for font colors too, but you can always fall back to a CMYK array.

Cheers,

-Dan

On Tue, Oct 8, 2019 at 11:38 PM Hoplop [via Asciidoctor :: Discussion] <[hidden email]> wrote:
>You could set the color of the text to transparent
I was trying to do that yesterday, this config didn't work:

title-page:
  background-image: rtk-title-page.png
  font-color: transparent

It had said something like unknown color.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7196.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



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7197.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



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Asciidoctor-PDF-Title-page-with-image-only-tp7192p7198.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: Asciidoctor-PDF | Title page with image only

Hoplop
Well, thanks, i'll stick with front-cover-image for now