Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

PDF functionality in lead tools
Started by mblandfo at 04-11-2008 16:53. Topic has 6 replies.

Print Search « Previous Thread Next Thread »
  04-11-2008, 16:53
mblandfo is not online. Last active: 4/11/2008 9:47:51 PM mblandfo

Not Ranked
Joined on 04-11-2008
Posts 4
PDF functionality in lead tools
Reply Quote
Hi, I looked over the website for the PDF Writer plugin and I got the impression that it can convert images to pdf, and that the Document Imaging can write annotations to a PDF by using a transparent image.

Is there any product in leadtools that will let me do something like write text at any angle, import fonts, and write links to a pdf ?

   Report 
  04-13-2008, 13:35
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: PDF functionality in lead tools
Reply Quote
If you are interested in a SDK that can save to PDF, you can use our toolkit to do that, you can also use the Annotation objects (Part of the Document Imaging toolkit) to write text and rotate it, you can also use the system's fonts to change the text.
You can save the Annotation objects as a seperate layer or burn it (imprint it) to the image and change the Pixel Data.
If you need more information, or if this is not what you are asking for, please explain to me with more details.

Adam Boulad
LEADTOOLS Technical Support

   Report 
  04-14-2008, 11:43
mblandfo is not online. Last active: 4/11/2008 9:47:51 PM mblandfo

Not Ranked
Joined on 04-11-2008
Posts 4
Re: PDF functionality in lead tools
Reply Quote
I looked through two examples: CSAnnotationsDemo and CSAutomationDemo. They show how to do these things through a UI, is there an example or documentation for adding and modifying a pdf without a UI?

I see how to rotate text and change the font and color. So.. suppose I have a textbox with a couple paragraphs in it. How would I make one word bold and a different word red and slightly larger font? Also is there a way to know programmatically when the textbox is full?
   Report 
  04-14-2008, 16:23
mblandfo is not online. Last active: 4/11/2008 9:47:51 PM mblandfo

Not Ranked
Joined on 04-11-2008
Posts 4
Re: PDF functionality in lead tools
Reply Quote
Actually.. these demos don't actually modify the pdf.. they just save a .ann file in the same directory as the pdf. I was hoping for a demo of the PDF Writer plugin.

   Report 
  04-15-2008, 8:23
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: PDF functionality in lead tools
Reply Quote

Do you mean that you want to create and use Annotation objects programmatically?
If yes, you can create and add the annotation objects without UI, you can find sample codes in the .NET help files, for example, see the AnnTextObject Class help topic for sample code on how to create Text object.

I'm afraid that you cannot have different text formats inside one text object, changing the format will change the format for all the text in that object.

Do you mean that you want know if the text object capacity is full, or if the line in the text object is full and you will start a new line?

About saving the annotation objects, you must first 'Realize' the annotation objects, this will 'burn' the annotation objects to the image, and they become part of the image. Saving the image with annotation without realizing them will save the annotation in an ANN file. You can use the Realize option in the CSAutomationDemo from the Annotation menu.
Adam Boulad
LEADTOOLS Technical Support

   Report 
  04-15-2008, 10:13
mblandfo is not online. Last active: 4/11/2008 9:47:51 PM mblandfo

Not Ranked
Joined on 04-11-2008
Posts 4
Re: PDF functionality in lead tools
Reply Quote
Thanks Adam :)

Let me see if I understand this correctly: The annotations demo uses the Document Imaging API to create an image from the annotations. 'Realizing' the annotations image uses the PDF Writer plugin to add that image to a pdf.

And yes, I was hoping to add text programmatically to a text object and know when it's full so I can stop adding text.

   Report 
  04-16-2008, 6:33
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: PDF functionality in lead tools
Reply Quote
Realizing the Image will imprint (burn) the annotation to the Raster Image and do not use the PDF writer plug-in. The Save function will use the PDF plug-in if you save PDF.
Adam Boulad
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » PDF » PDF functionality in lead tools

Powered by Community Server, by Telligent Systems