#1
Posted
:
Monday, December 4, 2017 9:42:11 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 70
Was thanked: 4 time(s) in 4 post(s)
The LEADTOOLS CloudServices library provides developers with a simple and streamlined way to verify input files by using the
VerificationEngine class. The VerficationEngine constructor takes the following parameters:
- maxElements - The maximum number of SVG elements to verify. The verification method will return false if more elements exist.
- maxWidth - The maximum width of the input. The verification method will return false if the width is larger than the specified value.
- maxHeight - The maximum height of the input. The verification method will return false if the height is larger than the specified value.
- supportImages- List of supported RasterImageFormats. Passing null indicates that the method will check all RasterImageFormats.
Code:
int MaxSVGElements = 30000;
int MaxRasterWidth = 30000;
int MaxRasterHeight = 30000;
var inputStream = File.Open(@"leadtools.pdf", FileMode.Open);
VerificationEngine verificationEngine = new VerificationEngine(MaxSVGElements, MaxRasterWidth, MaxRasterHeight, null);
if (verificationEngine.VerifyInput(inputStream, true, null))
Console.WriteLine("Verified");
else
Console.WriteLine("Verification Failed");
Edited by moderator Thursday, March 14, 2019 10:54:12 AM(UTC)
| Reason: Not specified
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.