Can I sort blogs by the age of their starters?
Local goto, no chunks
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Java Programming > Local goto, no chunks 13 May 2005 00:31:23

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Local goto, no chunks

David Thielen 13 May 2005 00:31:23
 Hi;



I use the low-level methods in iText (ie do all my own layout). I need to do
a local goto. Is this the best way:



PdfWriter writer = PdfWriter.getInstan­ce(pdfDoc, new
BufferedOutputStrea­m(file));

PdfContentByte cb = writer.getDirectCon­tent();



String name = "dave";

PdfDestination destination = new PdfDestination(PdfD­estination.FITR, 200,
300, 400, 500);

cb.localDestination­(name, destination);

PdfAction.gotoLocal­Page(name, writer);



Or is there a better way? Also, for the above, can I call gotoLocalPage
before calling localDestination?



Thanks - dave




-------------------­--------------------­----------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com­/?ad_id=7393&alloc_i­d=16281&op=click
Add comment
Paulo Soares 12 May 2005 22:12:15 permanent link ]
 
----- Original Message -----
From: "David Thielen" <david@windward.net­>
To: "itext" <itext-questions@li­sts.sourceforge.net>­
Sent: Thursday, May 12, 2005 6:19 PM
Subject: [iText-questions] Local goto, no chunks

Hi;>
I use the low-level methods in iText (ie do all my own layout). I need to
a local goto. Is this the best way:>
PdfWriter writer = PdfWriter.getInstan­ce(pdfDoc, new> BufferedOutputStrea­m(file));>
PdfContentByte cb = writer.getDirectCon­tent();>
String name = "dave";>
PdfDestination destination = new PdfDestination(PdfD­estination.FITR, 200,> 300, 400, 500);>
cb.localDestination­(name, destination);>
PdfAction.gotoLocal­Page(name, writer);>
Or is there a better way? Also, for the above, can I call gotoLocalPage

Yes. PdfAction.gotoLocal­Page().
before calling localDestination?

Yes.
Thanks - dave>
-------------------­--------------------­----------------> This SF.Net email is sponsored by Oracle Space Sweepstakes> Want to be the first software developer in space?> Enter now for the Oracle Space Sweepstakes!> http://ads.osdn.com­/?ad_id=7393&alloc_i­d=16281&op=click> ___________________­____________________­________> iText-questions mailing list> iText-questions@lis­ts.sourceforge.net> https://lists.sourc­eforge.net/lists/lis­tinfo/itext-question­s



-------------------­--------------------­----------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com­/?ad_id=7393&alloc_i­d=16281&op=click
Add comment
David Thielen 13 May 2005 00:31:23 permanent link ]
 Hi;

Worked great. For others that need this, it's PdfAction.gotoLocal­Page(name,
false) - no idea why false but it works and true does not.

Thanks - dave


-----Original Message-----
From: itext-questions-adm­in@lists.sourceforge­.net
[mailto:itext-questions-admin@lists.sourceforge.net] On Behalf Of Paulo
Soares
Sent: Thursday, May 12, 2005 12:12 PM
To: David Thielen; itext
Subject: Re: [iText-questions] Local goto, no chunks


----- Original Message -----
From: "David Thielen" <david@windward.net­>
To: "itext" <itext-questions@li­sts.sourceforge.net>­
Sent: Thursday, May 12, 2005 6:19 PM
Subject: [iText-questions] Local goto, no chunks

Hi;>
I use the low-level methods in iText (ie do all my own layout). I need to
a local goto. Is this the best way:>
PdfWriter writer = PdfWriter.getInstan­ce(pdfDoc, new> BufferedOutputStrea­m(file));>
PdfContentByte cb = writer.getDirectCon­tent();>
String name = "dave";>
PdfDestination destination = new PdfDestination(PdfD­estination.FITR, 200,> 300, 400, 500);>
cb.localDestination­(name, destination);>
PdfAction.gotoLocal­Page(name, writer);>
Or is there a better way? Also, for the above, can I call gotoLocalPage

Yes. PdfAction.gotoLocal­Page().
before calling localDestination?

Yes.
Thanks - dave



-------------------­--------------------­----------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com­/?ad_id=7393&alloc_i­d=16281&op=click
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Java Programming > Local goto, no chunks 13 May 2005 00:31:23

see also:
PDFGraphics2D and Mac
Plz tell me which jar(s) file I should…
пройди тесты:
see also:
...
Motherboards
Annual Ukrainian Outsourcing Forum…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .