Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, September 1, 2010 12:00:47 PM(UTC)


Groups: Guests
Posts: 3,049

Was thanked: 1 time(s) in 1 post(s)

The attached example demonstrates how to save LEADTOOLS annotations as true vector and text objects in PDF files. This differs from a normal 'realize' of annotations because the annotations are treated as actual vector and text objects, not realized as raster content. This means you can zoom in or out as far as you want without the objects distorting. Below are the involved steps:

1) Load an EMF file and create a DocumentPage from it.
2) Create some annotation objects and add them to the EMF page
3) Add the EMF page to the LEADTOOLS DocumentWriter class.
4) Write the page out as PDF.
File Attachment(s):
SaveAnnotationsAsPDF.zip (47kb) downloaded 122 time(s).

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Friday, September 29, 2017 3:43:12 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 112

Was thanked: 16 time(s) in 16 post(s)

Updated to LEADTOOLS v19 with Visual Studio 2017. Also changed project to automatically select dll's for running in 32-bit and 64-bit.
Extract to "C:\LEADTOOLS 19\Examples\DotNet\CS\" to use the example.

Changed annotation saving process to use the AnnPDFConvertor.ConvertToPDF() method instead of the DocumentEmfPage.AnnotationContainer property. Updated to using Leadtools.Annotations.Core instead of the deprecated Leadtools.Annotations namespace.
File Attachment(s):
CS_SaveAnnotationsAsPDF.zip (12kb) downloaded 75 time(s).
Anthony Northrup
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.

Powered by YAF.NET | YAF.NET © 2003-2018, Yet Another Forum.NET
This page was generated in 0.170 seconds.