also, is it not possible to get the image used as the face of a button?

I was hoping to be able to do something like:

ByteArrayOutputStream baos = new ByteArrayOutputStream();
button.setImage(hiResImage);
//add button to writer
doc.close()

byte[] webVersion = Arrays.copy(baos.toByteArray(), baos.toByteArray().length)
button b = webversion.getNewButton()
b.setImage( resizeImage( b.getImage() ) )
webversion.replaceButton()
//flatten web version...if needed
//save web version

private Image resize(Image hiResImage) {
  // return a low res version of the hi res image
}

but it looks like getImage() of the original button is returning null....

Jason

-----Original Message-----
From: Mark Storer [mailto:[email protected]]
Sent: Mon 4/4/2011 7:22 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] replacePushButtonField image
 
It's still there if you used a stamper in "append" mode, or didn't call
reader.removeUnusedObjects().  Note that's READER, not stamper.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: Jason Berk [mailto:[email protected]] 
> Sent: Monday, April 04, 2011 3:39 PM
> To: [email protected]
> Subject: [iText-questions] replacePushButtonField image
> 
> I replaced the image of my pushbutton with a lower quality 
> image, yet the size of my PDF increased significantly.
> 
> Is the original image still in the dictionary?
> 
> Jason
> This is a transmission from Purdue Federal Credit Union 
> (Purdue Federal) and is intended solely for its authorized 
> recipient(s), and may contain information that is 
> confidential and or legally privileged. If you are not an 
> addressee, or the employee or agent responsible for 
> delivering it to an addressee, you are hereby notified that 
> any use, dissemination, distribution, publication or copying 
> of the information contained in this email is strictly 
> prohibited. If you have received this transmission in error, 
> please notify us by telephoning (765)497-3328 or returning 
> the email. You are then instructed to delete the information 
> from your computer. Thank you for your cooperation.
> 
> 
> --------------------------------------------------------------
> ----------------
> Xperia(TM) PLAY
> It's a major breakthrough. An authentic gaming smartphone on 
> the nation's most reliable network.
> And it wants your games.
> http://p.sf.net/sfu/verizon-sfdev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered 
> with a reference to the iText book: 
> http://www.itextpdf.com/book/ Please check the keywords list 
> before you ask for examples: http://itextpdf.com/themes/keywords.php
> 
> 

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php



This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is 
intended solely for its authorized recipient(s), and may contain information 
that is confidential and or legally privileged. If you are not an addressee, or 
the employee or agent responsible for delivering it to an addressee, you are 
hereby notified that any use, dissemination, distribution, publication or 
copying of the information contained in this email is strictly prohibited. If 
you have received this transmission in error, please notify us by telephoning 
(765)497-3328 or returning the email. You are then instructed to delete the 
information from your computer. Thank you for your cooperation.

<<winmail.dat>>

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to