Hi,
The pdf documet which I generate has lot of formatted text. This text might have some document links. Do I have to convert these links to PageElements.Link? How can I accomplish the links in the pdf document.
Help is much appreciated.
Thanks,
JP.
Document link
Re: Document link
Support · Oct 27, 2009Hello JP,
It is not possible to add the links using the FormattedTextArea element. FormattedTextArea has limited support for the HTML tags and it do not support links. We will add support to most of the HTML tags in a future version but currently we do not have any immediate plans on this.
You will have to add the links to the PDF document using the Link page element. You will have to specify the X, Y width and height for the link element in this. You can refer to the Link
on our help documentation.
Thanks,
ceTe Software Support Team.
Re: Document link
Forum member · Nov 2, 2009Hi,
As I mentioned earlier, my pdf document displays multiple lines of text in each section. The users enter the document links anywhere in the text. How would I know the x and y positions of the link inside of the big chunk of text?
Thanks,
JP
Re: Document link
Support · Nov 2, 2009Hello,
You will have to know the location of text that you wish to make Links. THere is nothing within our API that will return the location of text within the PDF.
Thanks,
ceTe Software Support Team
Re: Document link
Forum member · Nov 17, 2009Hello,
I have links to other pdf documents in my pdf document. I want to open the other pdf in a new Adobe Reader window. How can I accomplish it?
Thanks.
SP
Re: Document link
Support · Nov 18, 2009Hello SP,
Yes, you can open PDF files from the system using the Link page element without any problem. You can use the UrlAction for this. Below is a sample code.
UrlAction actFile = new UrlAction(@"file:///C:/Temp/doc.pdf");
This action will open the browser window and the PDF will be opened in the browser. If you do not want to open it in browser then you will have to uncheck the check box saying "Display PDF in Browser" in the Internet category of the PDF preferences.
You may also use a JavaScriptAction using a script which can open files. But currently we do not have any ready script for this.
Thanks,
ceTe Software Support Team.