FW: FW: Invisible links

View: New views
3 Messages — Rating Filter:   Alert me  

FW: FW: Invisible links

by John Renfrew :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry
I retract that. I had it commented out...

HOWEVER it makes it not visible. Good. It makes it not selectable either...
Cursor is just an i-Beam....




john renfrew
Right Way Up
Office  +44 1675 475341
Fax      +44 1675 475342
Mobile +44 7767 443992


-----Original Message-----
From: 1T3XT info [mailto:info@...]
Sent: 06 November 2009 14:21
To: Post all your questions about iText here
Subject: Re: [iText-questions] FW: Invisible links

John Renfrew wrote:
> Setting PdfAnnotation (FLAGS_HIDDEN) works on a mac

Why would you set the annotation to FLAGS_HIDDEN,
when in fact you want FLAGS_INVISIBLE?
--
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
iText-questions@...
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/


------------------------------------------------------------------------------
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
iText-questions@...
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/

Re: FW: FW: Invisible links

by Leonard Rosenthol-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you post some sample PDFs that demonstrate what you are doing?

It would help if you could also be looking INSIDE the PDF to compare the actual file format results and not just what the code you are writing (or iText itself) is supposed to be doing.

Leonard

-----Original Message-----
From: John Renfrew [mailto:rwu@...]
Sent: Friday, November 06, 2009 10:15 AM
To: iText-questions@...
Subject: [iText-questions] FW: FW: Invisible links

Sorry
I retract that. I had it commented out...

HOWEVER it makes it not visible. Good. It makes it not selectable either...
Cursor is just an i-Beam....




john renfrew
Right Way Up
Office  +44 1675 475341
Fax      +44 1675 475342
Mobile +44 7767 443992


-----Original Message-----
From: 1T3XT info [mailto:info@...]
Sent: 06 November 2009 14:21
To: Post all your questions about iText here
Subject: Re: [iText-questions] FW: Invisible links

John Renfrew wrote:
> Setting PdfAnnotation (FLAGS_HIDDEN) works on a mac

Why would you set the annotation to FLAGS_HIDDEN,
when in fact you want FLAGS_INVISIBLE?
--
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
iText-questions@...
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/


------------------------------------------------------------------------------
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
iText-questions@...
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/

------------------------------------------------------------------------------
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
iText-questions@...
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/

Re: FW: FW: Invisible links

by 1T3XT info :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John Renfrew wrote:
> Sorry
> I retract that. I had it commented out...
>
> HOWEVER it makes it not visible. Good. It makes it not selectable either...
> Cursor is just an i-Beam....

A quick search in the source code for Anchor leads to Chunk.ACTION.
A search for Chunk.ACTION leads to two methods.

This one creates the annotation without a border:

public PdfAnnotation(PdfWriter writer, float llx, float lly, float urx,
float ury, PdfAction action) {
   this.writer = writer;
   put(PdfName.SUBTYPE, PdfName.LINK);
   put(PdfName.RECT, new PdfRectangle(llx, lly, urx, ury));
   put(PdfName.A, action);
   put(PdfName.BORDER, new PdfBorderArray(0, 0, 0));
   put(PdfName.C, new PdfColor(0x00, 0x00, 0xFF));
}

This one creates the action for the link:

public PdfAction(String url) {
   this(url, false);
}

Apparently there's no need to set flags after all. As all of this can be
done using methods that have been available in iText for ages, one tends
to forget how it was originally written.
--
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
iText-questions@...
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/