I added the pdf screenshot. As you can see, I have Chunk objects with a
scaled down Image in it.
At this point I ck.setAnchor(url); which makes it clickable and it fetched
an image or word document
from the server and opens it up.
All attempts to embed the attachment data and use that stand-alone didn't
work. In one case my thumbnail image disapears in another the whole document
gets screwed up.

Steps I tried to follow:
             //get attachment as byte array
        byte[] b = loadBytesFromURL(url);
        
             //created embedded file spec giving it byte array title and
name
        PdfFileSpecification pdfSpec = 
                PdfFileSpecification.fileEmbedded(docWriter, att.fileName, 
att.title,
b, true);       
        //add file level attachment to the pdf using above spec
        docWriter.addFileAttachment(pdfSpec); 

            //create action to go to the embedded
            PdfAction action = PdfAction.gotoEmbedded(att.fileName, pdfSpec,
dest, true);

            //finally attach action to the Chunk wrapping thumnail  image
            
        Chunk ck = new Chunk(imageAttachment, 0, -5);
        chunk.setAction(action);

As a result of the above, my document thumbnail image disapears, only image
title is visiable and and its not clickable.. 


vickatvuuch wrote:
> 
> 
> 
> 1T3XT info wrote:
>> 
>> Leonard Rosenthol wrote:
>>> Without seeing a final PDF page of what you are intending, my personal
>>> recommendation is to look at the new Portfolio features of Acrobat 9
>>> (PDF 1.7-ADBE-3) for incorporating non-PDF content into your documents.  
>>> 
>>> If you want to put the content directly inline (vs. the portfolio
>>> model), then you want to be using Launch actions for your link
>>> annotations.
>> 
>> For inspiration, take a look at
>> http://lowagie.com/itextwiki/doku.php/collections
>> -- 
>> This answer is provided by 1T3XT BVBA
>> http://www.1t3xt.com/ - http://www.1t3xt.info
>> 
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day 
>> trial. Simplify your report design, integration and deployment - and
>> focus on 
>> what you do best, core application coding. Discover what's new with 
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> iText-questions mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>> 
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>> Check the site with examples before you ask questions:
>> http://www.1t3xt.info/examples/
>> You can also search the keywords list:
>> http://1t3xt.info/tutorials/keywords/
>> 
>> 
>  http://www.nabble.com/file/p25424948/pdfScreen.jpg 
> http://www.nabble.com/file/p25424948/pdfScreen.JPG pdfScreen.JPG 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-embed-Word-document-and-make-a-clickable-thumnail-image-to-launch-MS-Word-tp25424592p25425068.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to