public bool EnhanceThinLines {get; set;} @property (nonatomic, assign) BOOL EnhanceThinLines public boolean getEnhanceThinLines()public void setEnhanceThinLines(boolean value)
public:property bool EnhanceThinLines{bool get()void set(bool value)}
EnhanceThinLines # get and set (CodecsPdfLoadOptions)
| Value | Description |
|---|---|
| true | To enable thin lines enhancement when loading PDF files. The default value is true. |
| false | To disable thin lines enhancement when loading PDF files. |
The default value is true, meaning thin lines are enhanced by default. Set EnhanceThinLines to false makes the lines less visible.
Lines are considered "thin lines" if they have a width of less than 2 when loaded at 72 DPI.
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing.Core;using Leadtools.Pdf;public void CodecsEnhanceThinLinesOption_Example(){/* The following example shows you how to disable the thin line enhancement property */RasterCodecs codecs = new RasterCodecs();codecs.Options.Pdf.Load.EnhanceThinLines = false;string inputFile = @"MyFile.PDF";RasterImage rawImage = codecs.Load(inputFile, 24, CodecsLoadByteOrder.RgbOrGray, 1, -1);}
import java.io.File;import java.io.IOException;import java.net.URI;import java.net.URISyntaxException;import java.nio.file.Paths;import org.junit.*;import org.junit.runner.JUnitCore;import org.junit.runner.Result;import org.junit.runner.notification.Failure;import static org.junit.Assert.*;import leadtools.*;import leadtools.codecs.*;import leadtools.imageprocessing.core.MinMaxBitsCommand;public void codecsEnhanceThinLinesOptionExample() {final String LEAD_VARS_IMAGES_DIR = "C:\\LEADTOOLS23\\Resources\\Images";String outputFileName = combine(LEAD_VARS_IMAGES_DIR, "Result.jpg");// The following example shows you how to disable the thin line enhancement// property //RasterCodecs codecs = new RasterCodecs();codecs.getOptions().getPdf().getLoad().setEnhanceThinLines(false);String inputFile = combine(LEAD_VARS_IMAGES_DIR, "leadtools.pdf");RasterImage rawImage = codecs.load(inputFile, 24, CodecsLoadByteOrder.RGB_OR_GRAY, 1, -1);codecs.save(rawImage, outputFileName, RasterImageFormat.JPEG, 0);assertTrue("File unsuccessfully saved to " + outputFileName, (new File(outputFileName)).exists());System.out.printf("File successfully saved to %s%n", outputFileName);}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
