Re: [iText-questions] how come itext pdf are a lot better than if iresave them in adobe?

2008-07-07 Thread 1T3XT info
Leonard Rosenthol wrote: It might, if the code used to generate the PDF wasn't very good...(eg. not iText, but improper use of) Consider improper reuse of common objects - like reloading the same image over and over again. Or the same font, once per page... That was also what I was

Re: [iText-questions] zlib compression levels

2008-07-07 Thread Bruno Lowagie
Tony Stevens wrote: This gives me all the ammunition I need - thanks! That was the main reason for the changes I made. I talked with a vendor of a commercial PDF solution lately. His product wasn't as feature rich as iText, but he had a fancy 'feature' list. As Paulo says: there's very little

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread bisoa
FlyingBuzz wrote: Smaller files saves more space and faster to email to customer. So wonder do i have to change compression and how? More importantly, smaller files can make your document images more blurry! -- View this message in context:

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread FlyingBuzz
Is there a way to make itext output the data into like a buffer stream and when it finish it loads the buffer stream and compress it than and make a output stream of the compressed pdf? 1T3XT info wrote: FlyingBuzz wrote: how come itext pdf are a lot better than if i resave them in adobe?

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread 1T3XT info
FlyingBuzz wrote: Is there a way to make itext output the data into like a buffer stream and iText can write PDF syntax to any OutputStream; for instance to a ByteArrayOutputStream. when it finish it loads the buffer stream and compress it than and make a output stream of the compressed pdf?

[iText-questions] Luk Lau/Nationwide/NWIE is out of the office.

2008-07-07 Thread LAUL
I will be out of the office starting 07/07/2008 and will not return until 07/08/2008. will be back :) - Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite

[iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread Sumedha Aranke
Hi, I am generating PDF from html content. for this i have used HTMLWorker. The code is like this ArrayList list=HTMLWorker.parseToList(new StringReader(sb.toString()),style); for(int i=0;ilist.size();i++) { document.add((Element)list.get(i)); } where document is object of

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread 1T3XT info
Sumedha Aranke wrote: Hi, I am generating PDF from html content. for this i have used HTMLWorker. The code is like this ArrayList list=HTMLWorker.parseToList(new StringReader(sb.toString()),style); for(int i=0;ilist.size();i++) { document.add((Element)list.get(i)); }

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread Sumedha Aranke
Hi, Thanx for the response. My complete code is : String filename= myfile.pdf; Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream(getPageContext().getServletContext().getRealPath() + File.separator + pdf + File.separator + filename));

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread Sumedha Aranke
Hi, Again sending my code. Regards Sumedha Aranke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 1T3XT info Sent: Monday, July 07, 2008 2:01 PM To: Post all your questions about iText here Subject: Re: [iText-questions] lot of space in pdf when

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread 1T3XT info
You need to make a small change in your code: Sumedha Aranke wrote: for(int i=0;ilist.size();i++) { document.add((Element)list.get(i)); } should be replaced with: Element e; for(int i=0;ilist.size();i++) { e = (Element)list.get(i); if (e instanceof PdfPTable) {

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread FlyingBuzz
well i dont think there was any lost in quality becuase i not doing the reduce file size i am just using save as. for adobe to just resave it bisoa wrote: FlyingBuzz wrote: Smaller files saves more space and faster to email to customer. So wonder do i have to change compression and

Re: [iText-questions] Signature validity unknow

2008-07-07 Thread KrazySmile
Anyone has any input on this matter ? Regards. KrazySmile wrote: Krazy is just fine, and thanks for the reply. ok, its a good practice. but, assuming the person opening the pdf does not have an active internet connection, the signature will appear as validity unknown. if i let reader

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread Sumedha Aranke
The problem is still there. Regards Sumedha Aranke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 1T3XT info Sent: Monday, July 07, 2008 3:08 PM To: Post all your questions about iText here Subject: Re: [iText-questions] lot of space in pdf when

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread Sumedha Aranke
The pdf u provided is accurate, but my when I did the same change in my code, I m not getting the proper pdf. After the first line of comment there is space in the remaining page and from next page the next lines of comment starts. Well m checking again my code with your changes. Thanx for the

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread 1T3XT info
Sumedha Aranke wrote: Well m checking again my code with your changes. At least now you know that the problem can be solved. The only question is: how? I've provided the answer, but now it's up to you to implement it. (First thing to check: which version of iText are you using?) -- This answer

Re: [iText-questions] lot of space in pdf when generate using iText

2008-07-07 Thread Sumedha Aranke
Yep. I will check my code . Sorry for ne harsh word, used unintentionally. Regards Sumedha Aranke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 1T3XT info Sent: Monday, July 07, 2008 3:53 PM To: Post all your questions about iText here Subject:

[iText-questions] get the url from some links and add javascript event

2008-07-07 Thread Federico Alba
HelloI'm trying to get the links from a pdf and then add a MouseUp javascript event only for some of them... I tried the GetLinks method of PdfReader that returns an ArrayList. HoweverI can't find the url of the link inside the links returned. Is there a specific property I have to

[iText-questions] Urgent: Button Not Showing up On Next Page

2008-07-07 Thread Athar Shiraz Siddiqui
Folks any help with this would be great (its rather urgent) thanks!: Perhaps I dont understand this correctly but I am trying to put some text and a button on each page of a document. Here is a naive implementation but it only prints a button on the first page: Document document =

Re: [iText-questions] Urgent: Button Not Showing up On Next Page

2008-07-07 Thread Howard Shank
An excerpt from the iText FAQs... The use of the word URGENT in a question is not done. You are (hopefully) paid to do your job, so it's your responsibility. We are not paid to do your job, we are NOT responsible. Regards, Howard Shank - Original Message From: Athar Shiraz Siddiqui

[iText-questions] 2 layers for colored and greyed content

2008-07-07 Thread philipp.stein
Hi, I'm using iText for automatic generation of some reports, that works great! My Problem is, that the reports contains some status-bars in green/red. When a report is printed on a black white printer, you can't differ which part of the status-bar is green and which is red. My solution at this

Re: [iText-questions] 2 layers for colored and greyed content

2008-07-07 Thread 1T3XT info
[EMAIL PROTECTED] wrote: Hi, I'm using iText for automatic generation of some reports, that works great! My Problem is, that the reports contains some status-bars in green/red. When a report is printed on a black white printer, you can't differ which part of the status-bar is green and

[iText-questions] Button Not Showing up On Next Page

2008-07-07 Thread Athar Shiraz Siddiqui
Sorry for putting urgent in the subject... I was just trying to attract someone's attention. Here is the question without the urgen in it ... Perhaps I dont understand this correctly but I am trying to put some text and a button on each page of a document. Here is a naive implementation but it

Re: [iText-questions] Urgent: Button Not Showing up On Next Page

2008-07-07 Thread Howard Shank
Document document = new Document(PageSize.LEGAL); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(testfiles\\HelloWorldButtonTest.pdf)); document.open(); PushbuttonField bt = new PushbuttonField(writer, new Rectangle(20,

[iText-questions] bug in iText? WAS: problem with Agency FB font, iText Graphics2D, and scaling

2008-07-07 Thread Jason Boehle
I'd suspect this is technically a bug in PdfGraphics2D... not scaling the italicizing matrix. It's possible that the transform from the font isn't setting it's skew flag (a bug in AWT), so AffineTransform's optimizations skip it, causing this behavior. BACK IN THE REAL WORLD, I'd strongly

Re: [iText-questions] Button Not Showing up On Next Page

2008-07-07 Thread Howard Shank
There are many people who respond to questions when properly presented on the mailing list. Trying to attract someones attention usually isn't necessary. Well formed questions that show some research on the part of the requester will result in many more responses than an Urgent or poorly

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread FlyingBuzz
Well how can i use pdfsmartcopy? I don't want to copy the page but I do have some images that get used over again. I made the header into a global function so it generates only once now but for other parts the information might be different but the image might be the same. So can i use

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread FlyingBuzz
I just tried using a hash of the image but all has are turning out different. So i am using tables with same filename and storing old images into the table for future image matchs. It reduce the file to the same amount of the save as version. So I guess it was just because of same images on

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread FlyingBuzz
well now that i check to make sure same images are not repeated. The file size became smaller and the save as file size is about the same. However if I use pdf optimizer and just do the clean up checked where it does not change image and stuff. The file size becames smaller From 1.88 MB

Re: [iText-questions] how come itext pdf are a lot better than if i resave them in adobe?

2008-07-07 Thread wasegraves
-- Original message -- From: FlyingBuzz [EMAIL PROTECTED] well now that i check to make sure same images are not repeated. The file size became smaller and the save as file size is about the same. However if I use pdf optimizer and just do the clean up

[iText-questions] Simulation of font styles (styled source to non styled display)

2008-07-07 Thread Peter van Raamsdonk
Hi, simulation works fine if you use a plain ttf font source (registering AWT font and PDF font) without any styles and want to display it bold or italic. But can it work the other way around? Having a bold italic or bold or just italic font and displaying it normally (not bold or italic). I

[iText-questions] RTF Tables / PdfPTable support

2008-07-07 Thread Howard Shank
Hello everyone, I have added basic support to RTF generation to support PdfPTables. You can test this functionality by obtaining the latest source code from the SourceForge repository. If you use this new functionality and have a specific instance where it does not function as expected,