Login  Register

Re: Fitting PDF cover image

Posted by mojavelinux on Nov 28, 2019; 6:47am
URL: https://discuss.asciidoctor.org/Fitting-PDF-cover-image-tp7373p7375.html

The cover page can be scaled to cover the entire page (edge to edge) using the fit=cover attribute. Here's a test can you reference to see an example:

https://github.com/asciidoctor/asciidoctor-pdf/blob/master/spec/cover_page_spec.rb#L134-L143

If that does not work for you, please provide a link to the image so that I am able to test it.

Best,

-Dan

On Wed, Nov 27, 2019 at 3:45 AM mremond [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello,

I have a cover image that is sized for epub and mobi (1050x1600)

I cannot get the PDF cover to be full page. I always get some white margin on left and right.

Any idea what I could do ?

I tried to add fit=cover to the front cover image attribute but it does not change anything.

I am using asciidoctorp-pdf 1.5.0.beta.8

Thanks !


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Fitting-PDF-cover-image-tp7373.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