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

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, September 1, 2010 11:55:47 AM(UTC)

Otis  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 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 369 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:38:12 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 28 time(s) in 28 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 318 time(s).
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Wednesday, September 5, 2018 2:46:02 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

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

Edit: Moved updated version to separate thread
https://www.leadtools.com/support/forum/posts/m43664-HOW-TO--Convert-LEADTOOLS--AnnObjects-to-PDF-Annotations#post43664

Edited by user Friday, September 14, 2018 10:45:50 AM(UTC)  | Reason: Moved to new thread

Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
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-2024, Yet Another Forum.NET
This page was generated in 0.067 seconds.