Link

CSS Suffix

Appends the provided cssSuffix value to any classes and IDs within the document.

This allows you to prevent style conflicts when displaying multiple conversions within the same browsing context. For example, the selector for the first text style class on page 1 of a document would normally be .s1_1. However, setting a cssSuffix of doc1 would change the selector to .s1_1_doc1.

We recommend keeping the cssSuffix value short to prevent unnecessarily increasing the output filesize.

Note: This setting is only available when the View Mode is set to content.

Expected values:

  • Any string containing only characters [a-zA-Z0-9], hyphen (-) or underscore (_).

Default: empty string

Since: 2024.11

Usage Examples

Command Line

-Dorg.jpedal.pdf2html.cssSuffix="filename.pdf"

Cloud

{ "org.jpedal.pdf2html.cssSuffix": "filename.pdf" }

Java

contentOptions.setCssSuffix("filename.pdf");

What's included in your BuildVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about BuildVu.
  • An exceptional PDF to HTML converter that took over 20 years to build!

Start Your Free Trial