Skip to main content
vk-RH
Known Participant
May 3, 2023
Answered

PDF margins

  • May 3, 2023
  • 3 replies
  • 651 views

Dear colleagues,

 

I'm quite new on RoboHelp and I'm having an issue that is taking all my time and patience.

I would like to create a cover page with no margins but nothing is working. I tried the following:

 

- Add a specific template for the cover: Output > Templates >  tamplate > page layout.

- Work with different stylesheets; book.css as I saw in other discussions, and modify some values as specified.

- Work with a custom stylesheet with no margins and also with negative margins inclusive including  the property !important directly on the css.

With negative margins I can see in the output that the margin is applied in the topic but not in de output.

 

Also I 've been reading the documentation and tried to follow some indication of the following:

https://helpx.adobe.com/ch_it/robohelp/using/customize-pdf.html

Nothing worked for me.

By the way, it says that a cover page can be added from the TOC. Not me. I don't have any option to select or add a common topic as a Cover page.

Also I read somewhere that it is possible to add or quit margins at the pdf document at the output, but still not finding this parameter.

 

Since now i've been working with version 2022.0. I tried updating the version to 2022.2.22 but nothing solved.

 

Appreciate any help
Thanks!

 

    This topic has been closed for replies.
    Correct answer Carolin1234

    Have you tried it with the @4025150 parameters? 

    I had a similar problem, and this seems to help:

    I used the Basic PDF Template, opened the existing layout.css and added the following:

    @4025150 {
      size: 210mm 279mm;
      margin-top: 34mm;
      margin-bottom: 34mm;
      margin-left: 20mm;
      margin-right: 20mm;
    }

    Like you said, setting the paper size and margins in the Page Layouts does not have any effects for me either, but setting it in the layout - for all PDF pages, unfortunately - works for me.

    3 replies

    Legend
    July 18, 2023

    I was just fighting with a similar problem for quite a while. Thanks for this! Very helpful 🙂

    Carolin1234Correct answer
    Inspiring
    May 4, 2023

    Have you tried it with the @4025150 parameters? 

    I had a similar problem, and this seems to help:

    I used the Basic PDF Template, opened the existing layout.css and added the following:

    @4025150 {
      size: 210mm 279mm;
      margin-top: 34mm;
      margin-bottom: 34mm;
      margin-left: 20mm;
      margin-right: 20mm;
    }

    Like you said, setting the paper size and margins in the Page Layouts does not have any effects for me either, but setting it in the layout - for all PDF pages, unfortunately - works for me.

    vk-RH
    vk-RHAuthor
    Known Participant
    May 4, 2023

    Thanks a lot Carolin! That was very helpuf for me. I started to hate RH after three full days spent with the margins....

    Hope you have a nice day!

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 3, 2023

    Have you checked out Peter's site (grainge.org)? He probably discussed PDF output there.

    vk-RH
    vk-RHAuthor
    Known Participant
    May 4, 2023

    Thank Jeff for your answer. I've been checking Peter's site and I find an option to set the PDF margins in RH 2019. Unfortunately seems like this option is not available in RH 2022...