Hello,
I am having a strange problem with Acrobat 8 and the W4 form from the
IRS. It seems that as soon as iText (1.4.8) touches the PDF it can not
be opened by Acrobat 8. Does anyone have any ideas. Below is a simple
program which I used to reproduce the problem. Also you can visit
http://146.203.59.234/samples.html for copies of the Original and the
PDF generated by the program.
Thanks,
Edwin S. Ramirez
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import java.io.*;
public class pdf_test {
public static void main(String[] args) {
try {
PdfReader reader = new PdfReader("nyres.pdf");
File output = File.createTempFile("w4new", ".pdf", new
java.io.File(
"."));
FileOutputStream dh = new FileOutputStream(output);
PdfStamper stamper = new PdfStamper(reader, dh);
stamper.close();
} catch(Exception e) {
e.printStackTrace();
}
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/