• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

watermark opacity and page wrapping in tables

New Here ,
Jul 05, 2022 Jul 05, 2022

Copy link to clipboard

Copied

I have 2 questions.

Watermark

I use the watermark option to mark draft pdf documents for review, however we've found it to be too dark at times. Is there a way to set it so it is lighter in color or more transparent? I looked through the CSS, but I didn't see any style that was obviously for a watermark, and I don't see any settings about it in any of the preferences menus. 

 

Page Wrapping in Tables

I created a binder class that I wrap all the sections I don't want split between pages. It is a pain to set up for new topics because I have to go into the code and enter it all manually, but once it place it doesn't need much upkeep unless topics are eventually split into two or more topics. I put an example of the CSS and how I use it in HTML below. It may not be pretty, but I'm still just learning coding and it works.

CSS

div.binder {
  page-break-inside: avoid;
}

HTML example

<div class="binder">
  <h3>Something Cool</h3>
  <p>Some text about the cool thing.</p>
  <img src="../../assets/images/coolthing.png"/>
</div>

 

My problem is that I have a very large table that is split between pages, which is fine, except it is split in the middle of a row. This isn't good. Is there a correct place to put the page-break-inside: avoid line in the table CSS so it breaks between rows? I'm working to learn more, but the table CSS is still mostly a mystery for me. From what I've read in some of my searches, the page-break-inside in CSS is sometimes ignored inside of tables?

TOPICS
New UI , Output presets , Scripting

Views

68

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 06, 2022 Jul 06, 2022

Copy link to clipboard

Copied

LATEST

The html to pdf converter is a bit of a blackbox so it's hard to know what will work and what won't.

 

You could try the following :

div.binder tr {
    page-break-inside: avoid;
}

(You could also try div.binder table tr and div.binder > table > tr if that doesn't work, as sometimes making things more specific will make something work in the cascade, but all bets are off with the pdf conversion given the rules aren't defined anywhere offical that I can find.)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp