Link
Skip to main content

How to hide line weights in the Viewer?

This can be done in one of two ways.

  1. In the properties file, update the value of hideLineWeights to true
    • Note that your current properties file can also be updated from within the Viewer by selecting Edit -> Preferences -> Page Display -> Hide Line Weights then clicking okay.
  2. From within your code using PdfDecoder.modifyNonstaticJPedalParameters(Map<Integer, Object>) as shown below
    //Create a new Map or provide a pre-existing one to update.  
    final HashMap<Integer, Object> parameters = new HashMap<>();  
    parameters.put(JPedalSettings.HIDE_LINE_WEIGHTS, Boolean.TRUE);  
            
    //Create a PdfDecoder object or provide your own  
    PdfDecoder pdfDecoder = new PdfDecoder();  
            
    pdfDecoder.modifyNonstaticJPedalParameters(values);
    

Get started with JPedal in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about JPedal

Start Your Free Trial


Customer Downloads

Select Download