• I’m setting up a custom document and setting the paper orientation with custom paper size is rendering the page the wrong way around making working out whats going on very awkward.

    I’ve created a document that is 216mm wide and 211mm high but setting the page orintation to landscape actually makes he page portrait. Setting it to portrait outputs it in landscape. While this may not sound like a big issue I am putting images in and height becomes width and width becomes height.

    This is not new to the latest version, when trying previously to do this setup I had the same results a couple of years ago.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Hi there,

    Using the latest version of Gravity PDF v6.4 I haven’t been able to replicate this issue. Setting the custom paper size to your values and the orientation to landscape produces a PDF that is 211mm wide and 216mm height, which is what I would expect from these particular settings.

    If you require the results to use the longest edge as the width when selecting landscape orientation then you’ll want to set the Custom Paper Size to 211 x 216mm instead.

    Thread Starter muttly

    (@muttly)

    Sorry for the delay.

    I am using 6.4.6. My settings within the PDf section are set to:
    Paper Size: Custom Paper Size
    Width: 216
    Height: 211
    Unit: mm
    Paper Orientation: Landscape

    DPI is set to 300, format is “Standard”

    I’ve exported a test file and when exported I get width 211mm and height 216mm. As part of this design I need to place an image of the same dimensions within the pdf output. No matter what way I set it I cannot get it to output correctly.

    Is there some sort of output I can provide to help with this issue?

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    Thanks for the additional info.

    This doesn’t sound like a problem with the paper size / orientation. How are you adding the image to the PDF? If you are looking to have the image take up the full width and height of the page you should add CSS to your custom PDF template similar to this:

    
    <style>
    @page {
      background: url(/path/to/images.jpg) no-repeat 0 0;
      background-image-resize: 6;
    }
    </style>
    
    Thread Starter muttly

    (@muttly)

    Sorry I should have explained further to the above, I meant in terms of the page orientation I could not get it right to match up width and height as expected.

    I have adapted my code to get the image displaying correctly but I’m using pixels rather than mm and forcing it the way I need.

    Would you have an email address I can send my zipped php file to? I can also include a screen shot of the settings I’m using. Maybe I’m doing something wrong but if I am, I can’t see it.

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    You can submit all the details privately via our support ticket system: https://gravitypdf.com/support/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Paper, page orintation’ is closed to new replies.