Starting from version 22.4 it is possible to change quality of image representation of document by setting property
imageQuality - where the value from 1 to 100. 1 means lowest resolution, 100 means highest
Here is the example of the code:
using(Annotatorannotator=newAnnotator("input.pdf-file"))// specify the path to the input PDF file{stringdataDir="input.pdf";// specify the path to the input PDF filestringdata="image.jpg";// the path to the JPG fileintpageNumber=1;// set the page where the image will be insertedintimageQuality=10;// set image quality from 1 to 100annotator.Document.AddImageToDocument(dataDir,data,pageNumber,imageQuality);}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
Along with full-featured .NET library we provide simple but powerful free Apps.
You are welcome to annotate your PDF, DOC or DOCX, XLS or XLSX, PPT or PPTX, PNG and other documents with free to use online GroupDocs Annotation App.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.