[iText-questions] Urgent help required pdf strance problem

2002-05-02 Thread Mahammad Rafi S

Hi ,
I am mahammad rafi ,a user of I-text library.I found this api as wonderful.
In my current project my need is different .I need to read the pdf form
templates and populate them with the dynamic data. Can any body tell me how
to process form fields using i-text library.(like text fields,radio
buttens..etc). Currently i am using some wrapper classes available for form
processing,Due to which i am facing a problem. My generated form opens fine
with acrobat 4.o reader and writer.But when i try to open it in adobe
approval5.0. Then it behaves strangly. LIke , I have few multi line text
fields ,problem is that when i click the text area then only my text appears
other wise it disappears. i.e when the text field is editing or got focus
then only i can see the value . Where as this problem is not there in writer
4.0 or reader 4.0. I doubet ther representation of the objects in approval
5.0 is different for the earlier versions or what? Is ther any patch
available to correct such problems. ? Do any body has any solution ,or any
other alternative for form processing (i.e any api's available).Please
help.If any body has any information regarding then please share with me.


Thanks in advance.
Warm Regards,
Mahammad Rafi S
Phone:(+91-9820388545)
Off:7611090 X 4013
Pcs ltd.


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] TrueType and Type1 Fonts

2002-05-02 Thread Thomas Kübler



hallo,
 
i have a problem to print a pdf-document with 
TrueType-Fonts. I think
i can't print the document, because our 
Digitalprinter, a IBM InfoColor 100,
cannot Rip the TrueType-Font. When i changed the 
Font to a Type1 i can rip
and print. So i decided to convert the Truetype to 
a Type 1 with Transtype 2.1
from fontlab. But then i have problems to select 
the right codepage with
the glyph. How can i select the codepage 
Latin-Extended-A with iText?
 
thanks thomas kübler.


RE: [iText-questions] Acrobat 5 vs. Acrobat 4 problem

2002-05-02 Thread Wilhelm *Rafial* Fitzpatrick

>You forgot the PdfContentByte.endText().

Spot on.  I was chasing a red herring.  Turns out there was a 
difference in the input document that was being laid over the PDF 
that was causing my code to call endText() in one case, and not in 
another.  The fact that Acrobat 4 and xpdf were forgiving of this 
mistake was another misleading element.

Thank you!  And thanks to you and Bruno for creating a highly useful 
piece of software.

I'm cc'ing this back to this list in case future generations search 
the archive and want to know what the ultimate solution was.
-- 
__
 Wilhelm Fitzpatrick  |  When we speak of free
  http://www.3roses.com/  |  software we are referring
 [EMAIL PROTECTED]  |  to freedom not price.

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] PDF overlay

2002-05-02 Thread Wilhelm *Rafial* Fitzpatrick

At 2:29 PM -0500 5/2/02, Ben Sinclair wrote:
>This may not be the easiest way, but this is what I do... I use
>PdfContentByte.setTextMatrix() to locate at a specific point on the page and
>add text.

Very similar to what I'm doing except I use PdfContentByte.moveText() 
to get the position I want.

>I determine the points by opening the PDF in Photoshop at 72dpi, then
>multiplying the x and y location of my cursor by 72 to get points in the PDF.

How scientific!  I measure with a ruler, guess, and refine manually ;)

-- 
__
 Wilhelm Fitzpatrick  |  When we speak of free
  http://www.3roses.com/  |  software we are referring
 [EMAIL PROTECTED]  |  to freedom not price.

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Putting other objects in a PdfContentByte

2002-05-02 Thread Wilhelm *Rafial* Fitzpatrick

At 2:16 PM -0500 5/2/02, Ben Sinclair wrote:
>Is there a way to tell what location the "cursor" is when you are adding
>paragraphs and other objects? I'd like to know exactly where the next object
>will be placed.

Have you tried PDFContentByte.getXTLM() and getYTLM() ?  That's what I'm using.
-- 
__
 Wilhelm Fitzpatrick  |  When we speak of free
  http://www.3roses.com/  |  software we are referring
 [EMAIL PROTECTED]  |  to freedom not price.

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] RTF

2002-05-02 Thread Mark

On Thursday 02 May 2002 16:52, you wrote:
> I'm creating RTF document, but when trying to print it  chooses German Std
> Fanfold paper size by default, which not allows to print document properly
> - it got truncated.
> Why it does this and how i can force it to be A4 by default.
> Thanks
> Oleg

Have you tried creating the Document with Document doc = new 
Document(PageSize.A4); ?
If you're already doing this, please tell me which iText version you are 
running. And if possible include a generated RTF document.

Greetings,
Mark

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] urgent - servlet problems

2002-05-02 Thread Lord Zefyrus God

well
nothing worked. :(

if i could have a working sample code, i would konow what i'm doing wrong.

pls if one of you have, send it.

tks

zefyrus


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] NoSuchMethodError from PdfWriter

2002-05-02 Thread Ben Sinclair

Well, I'm not sure what I changed, but now when I try to pdf.close() I get
this:

java.lang.NoSuchMethodError
 at
com.lowagie.text.pdf.PdfWriter$PdfBody$PdfCrossReference.toPdf(PdfWriter.java:1
54)
 at
com.lowagie.text.pdf.PdfWriter$PdfBody.getCrossReferenceTable(PdfWriter.java:31
6)
 at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:768)
 at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:924)
 at com.lowagie.text.Document.close(Document.java:492)
 at dps.document.pdf.PDFRenderer.render(PDFRenderer.java:250)

--
Ben Sinclair
[EMAIL PROTECTED]


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Vertical alignment in PdfPCell

2002-05-02 Thread Joshua C. Lerner

Hi - I see that there have been questions on this topic before - how to
align text vertically in a PdfPCell. I read the posts but I'm not sure
what if anything I'm doing wrong.

The online docs note that "you can't always trust on the vertical
alignment." Is there any workaround I can try?

I'm running iText 0.92 and Java 1.4 (j2sdk-1.4.0-fcs) from Sun.

Compilable excerpt from my source code is below.

Thanks in advance very much.

Joshua Lerner


file align.java:
import java.io.FileOutputStream;
import java.io.IOException;
import java.awt.Color;
import com.lowagie.text.*;
import com.lowagie.text.pdf.PdfWriter;
import com.lowagie.text.pdf.PdfPTable;
import com.lowagie.text.pdf.PdfPCell;

public class align {
public static void main(String[] args) {
Document document = new Document();
try {
 PdfWriter.getInstance(document, new FileOutputStream("align.pdf"));
 document.open();

 Chunk stateCh = new Chunk("New York", 
FontFactory.getFont(FontFactory.TIMES, 32, Font.NORMAL,Color.white));
 Chunk districtCh = new Chunk("District 1", 
FontFactory.getFont(FontFactory.TIMES, 32, Font.NORMAL, Color.black));

 // begin header table
 PdfPTable table = new PdfPTable(3);
 table.setWidthPercentage(100);

 PdfPCell cell = new PdfPCell(new Phrase(stateCh));

 // doesn't seem to work
 cell.setVerticalAlignment(Element.ALIGN_MIDDLE);

 cell.setColspan(2);

 cell.setPhrase(new Phrase(stateCh));
 cell.setPaddingLeft(11);
 cell.setBackgroundColor(Color.blue);
 table.addCell(cell);

 cell = new PdfPCell(new Phrase(districtCh));

 // doesn't seem to work
 cell.setVerticalAlignment(Element.ALIGN_MIDDLE);

 cell.setColspan(1);
 cell.setBackgroundColor(Color.yellow);
 table.addCell(cell);

 document.add(table);
}
catch(DocumentException de) {
System.err.println(de.getMessage());
}
catch(IOException ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
}


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] PDF overlay

2002-05-02 Thread Ben Sinclair


This may not be the easiest way, but this is what I do... I use
PdfContentByte.setTextMatrix() to locate at a specific point on the page and
add text.

I determine the points by opening the PDF in Photoshop at 72dpi, then
multiplying the x and y location of my cursor by 72 to get points in the PDF.

--
Ben Sinclair
[EMAIL PROTECTED]

- Original Message -
From: "Matt Benson" <[EMAIL PROTECTED]>

> This question is about PDF in general:
>
> If you want to take an existing PDF which is a printed
> form (not a PDF form) and overlay precisely-positioned
> text, is there a way to do something like this with
> ghostScript or a combination of utilities?  Otherwise,
> what would be the easiest approach to doing this?



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] urgent - servlet problems

2002-05-02 Thread Matt Benson

It might help if you wrote your document to the
ByteArrayOutputStream before you set the content
length and transfer the contents to your
ServletOutputStream

-Matt

--- Lord Zefyrus God <[EMAIL PROTECTED]> wrote:
> hi
> 
>i know that i'm boring you all, but i puted he
> content.lenght at it and 
> it returs zero.
> 
> here is the code:
> 
> public void doGet (HttpServletRequest request,
> HttpServletResponse response)
> throws IOException, ServletException {
> Document document = new Document();
> try {
> // step 2: we set the ContentType and
> create an instance of the 
> corresponding Writer
> 
>   response.setContentType("application/pdf");
>   ByteArrayOutputStream ba = new
> ByteArrayOutputStream();
> 
> response.setContentLength(ba.size());
>   ServletOutputStream out =
> response.getOutputStream();
>   ba.writeTo(out);
>   out.flush();
>   document.open();
>   document.add(new Paragraph(new
> Date().toString()));
> document.add(new Paragraph(new
> Paragraph("" + ba.size(;
> 
>}
> catch(DocumentException de) {
> de.printStackTrace();
> System.err.println("document: " +
> de.getMessage());
> }
>   document.close();
> }
> 
> tks
> 
> Zefyrus
> 
> 
>
_
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp.
> 
> 
>
___
> 
> Have big pipes? SourceForge.net is looking for
> download mirrors. We supply
> the hardware. You get the recognition. Email Us:
> [EMAIL PROTECTED]
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions


__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] urgent - servlet problems

2002-05-02 Thread Wilhelm *Rafial* Fitzpatrick

>At 4:03 PM -0300 5/2/02, Lord Zefyrus God wrote:
>   still having problems.
>   may you send a sample code ???

Something like:

...
ByteArrayOutputStream buffer = new ByteArrayOutputStream(32000); new 
PDFGenerator().generate( statement, template, overlay, buffer );
resp.setContentType( "application/pdf" );
resp.setContentLength( buffer.size() );
buffer.writeTo( resp.getOutputStream() );
if ( debug ) log( "Content output size " + buffer.size() );
...

-- 
__
 Wilhelm Fitzpatrick  |  When we speak of free
  http://www.3roses.com/  |  software we are referring
 [EMAIL PROTECTED]  |  to freedom not price.

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] PDF overlay

2002-05-02 Thread Matt Benson

This question is about PDF in general:

If you want to take an existing PDF which is a printed
form (not a PDF form) and overlay precisely-positioned
text, is there a way to do something like this with
ghostScript or a combination of utilities?  Otherwise,
what would be the easiest approach to doing this?

Thanks,
Matt

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] urgent - servlet problems

2002-05-02 Thread Lord Zefyrus God

hi

   i know that i'm boring you all, but i puted he content.lenght at it and 
it returs zero.

here is the code:

public void doGet (HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
Document document = new Document();
try {
// step 2: we set the ContentType and create an instance of the 
corresponding Writer

response.setContentType("application/pdf");
ByteArrayOutputStream ba = new ByteArrayOutputStream();

response.setContentLength(ba.size());
ServletOutputStream out = response.getOutputStream();
ba.writeTo(out);
out.flush();
document.open();
document.add(new Paragraph(new Date().toString()));
document.add(new Paragraph(new Paragraph("" + ba.size(;

   }
catch(DocumentException de) {
de.printStackTrace();
System.err.println("document: " + de.getMessage());
}
  document.close();
}

tks

Zefyrus


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] Putting other objects in a PdfContentByte

2002-05-02 Thread Ben Sinclair

I'm going to try a new approach... Creating a new pdf whenever I "locate" on
the page, then setting the margins and using the normal methods of adding text.
Later I'll merge them all into one PDF.

Is there a way to tell what location the "cursor" is when you are adding
paragraphs and other objects? I'd like to know exactly where the next object
will be placed.

--
Ben Sinclair
[EMAIL PROTECTED]


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] urgent - servlet problems

2002-05-02 Thread Ramakrishna Kuppa
Title: RE: [iText-questions] urgent - servlet problems





Check the FAQ @ http://www.lowagie.com/iText/faq.html#msie and the related MS link. I think that explains the problem you have.


-Original Message-
From: Lord Zefyrus God [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 02, 2002 11:41 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [iText-questions] urgent - servlet problems


hi again


    i compled the example from iText. i'm also using ie5.5 and ie6.


    the problem is that every request that i do from ie to the "pdf" 
servlet, the ie doesn't brings the pdf on the browser. i need to make a 
refresh to it come up.


    i think that it is it.


[]'s
Zefryus


>From: Wilhelm *Rafial* Fitzpatrick <[EMAIL PROTECTED]>
>To: "Lord Zefyrus God" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [iText-questions] urgent - servlet problems
>Date: Thu, 2 May 2002 11:28:37 -0700
>
>>i've tried the examlpe that uses a servlet instead a main class.
>>and it locks the browser until i press the refresh key (f5), them the pdf 
>>comes up.
>
>I'm delivering PDFs built with iText via a servlet, so I might be able to 
>help if you can supply more details.
>Two important things are to set the content type (application/pdf) and 
>content length on the response object.
>
>>I'm using Tomcat and jdk 1.2
>
>What browser are you using?  And are running Tomcat & the Browser on the 
>same machine?
>--
>__
> Wilhelm Fitzpatrick  |  When we speak of free
>  http://www.3roses.com/  |  software we are referring
> [EMAIL PROTECTED]  |  to freedom not price.





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.



___


Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions





Re: [iText-questions] urgent - servlet problems

2002-05-02 Thread Wilhelm *Rafial* Fitzpatrick

>i've tried the examlpe that uses a servlet instead a main class.
>and it locks the browser until i press the refresh key (f5), them 
>the pdf comes up.

I'm delivering PDFs built with iText via a servlet, so I might be 
able to help if you can supply more details.
Two important things are to set the content type (application/pdf) 
and content length on the response object.

>I'm using Tomcat and jdk 1.2

What browser are you using?  And are running Tomcat & the Browser on 
the same machine?
-- 
__
 Wilhelm Fitzpatrick  |  When we speak of free
  http://www.3roses.com/  |  software we are referring
 [EMAIL PROTECTED]  |  to freedom not price.

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



Re: [iText-questions] urgent - servlet problems

2002-05-02 Thread Lord Zefyrus God

hi again

i compled the example from iText. i'm also using ie5.5 and ie6.

the problem is that every request that i do from ie to the "pdf" 
servlet, the ie doesn't brings the pdf on the browser. i need to make a 
refresh to it come up.

i think that it is it.

[]'s
Zefryus

>From: Wilhelm *Rafial* Fitzpatrick <[EMAIL PROTECTED]>
>To: "Lord Zefyrus God" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [iText-questions] urgent - servlet problems
>Date: Thu, 2 May 2002 11:28:37 -0700
>
>>i've tried the examlpe that uses a servlet instead a main class.
>>and it locks the browser until i press the refresh key (f5), them the pdf 
>>comes up.
>
>I'm delivering PDFs built with iText via a servlet, so I might be able to 
>help if you can supply more details.
>Two important things are to set the content type (application/pdf) and 
>content length on the response object.
>
>>I'm using Tomcat and jdk 1.2
>
>What browser are you using?  And are running Tomcat & the Browser on the 
>same machine?
>--
>__
> Wilhelm Fitzpatrick  |  When we speak of free
>  http://www.3roses.com/  |  software we are referring
> [EMAIL PROTECTED]  |  to freedom not price.




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Mailing Labels

2002-05-02 Thread [EMAIL PROTECTED]

Hello Joseph,
sorry it took me a while to find the files because I reinstalled my machine
and haven't had them on till now. Here are two java files and the pdf
output. Haven't done anything since. But this might gives you an idea of how
to use the absolute positioning.
I cc the iText list, since I couldn't find the old thread in the searchable
archive.
HTH

Gunter

--
air-conditioned environment - don't open windows !

--
Gunter Sammet
SAMMYSOLUTIONS.COM LTD
--
2102-12 AVE NW
Calgary/AB, T2N 4X1, CANADA
Ph./Fax: +1 (403) 210-2603,
Cell:+1 (403) 830-0705
E-mail:  [EMAIL PROTECTED]
Web: www.SammySolutions.com

-Original Message-
From: jrajkumar [mailto:jrajkumar]On Behalf Of Joseph Rajkumar
Sent: May 2, 2002 8:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [iText-questions] Mailing Labels


Hi Gunter

Thanks for your email and the information.
Unfortunately all the data is on a Postgresql server
on a system on the lan and secretaries want to be
able to connect to there server and though an interface
select only addresses for a certain state and generate
the rtf file and save it on their local machine and
print the address labels.

What I have done so far, is using Tomcat and
using a servlet which talks to Postgres, I have given
them an interface so they can select the state they want
to choose and then the servlet talks to the postgresDB
and queries and using iText formats and creates an rtf
file, which they could down load and save to their local
disk and then view it using word and print.

I have formatted the addresses using Tables and Cells,
but I am not able to specify the exact size of the CELL I want
because the address labels on the paper come as stickable
pieces on a single page which the secretaries can pull out
and put them on the envelope.

So I need the CELL to be exactly some known specific
size.

Tomcat/Servlet/talking to postgres, getting the exact
data that I want, formatting it using iText and generating
an rtf and viewing them using StarOffice, all of this works
perfectly. But I need to specify the cell size exactly and also
specify the font for the text in the cell.

Any help would be ever so gratefully appreciated.

Thanks
Joseph Rajkumar
PS: I am 100% Unix pro and I am use windows just for survival.

"[EMAIL PROTECTED]" wrote:
>
> If you want to print out in Word, wouldn't you be better up to import it
> straight into Word through a mail merge? You could connect through an ODBC
> datasource and have them available in Word.
> For myself, I haven't worked with rtf but I played a little bit around
with
> absolute positioning and printing into pdf as labels. Worked fine but
> haven't touched it in a while.
> HTH
>
> Gunter




Chap1007new.pdf
Description: Adobe PDF document


Chap1007new.java
Description: Binary data


Chap1007.pdf
Description: Adobe PDF document


Chap1007.java
Description: Binary data


RE: [iText-questions] itext sample for tiff(G3) to pdf

2002-05-02 Thread Paulo Soares

The example only works with single strip tiffs. With multiple strip you have
to extract each strip as an image and assemble the images in the pdf. This
is a way to do it:

public static void convert2(File inputFile, File outputFile) {
Document document = new Document(PageSize.LETTER, 0, 0, 0, 0);
try {
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(outputFile));
SeekableStream s = new FileSeekableStream(inputFile);
TIFFDirectory dir = new TIFFDirectory(s, 0);
long IFDOffset = dir.getIFDOffset();
document.open();

PdfContentByte cb = writer.getDirectContent();
while (IFDOffset != 0L) {
System.err.println("entering loop");

dir = new TIFFDirectory(s, IFDOffset, 0);
IFDOffset = dir.getNextIFDOffset();
long h =
dir.getFieldAsLong(TIFFImageDecoder.TIFF_IMAGE_LENGTH);
long w =
dir.getFieldAsLong(TIFFImageDecoder.TIFF_IMAGE_WIDTH);
long rowsStrip =
dir.getFieldAsLong(TIFFImageDecoder.TIFF_ROWS_PER_STRIP);
TIFFField field =
dir.getField(TIFFImageDecoder.TIFF_STRIP_OFFSETS);
long offset[];
if (field.getType() == TIFFField.TIFF_LONG)
offset = field.getAsLongs();
else { // must be short
short temp[] = field.getAsShorts();
offset = new long[temp.length];
for (int k = 0; k < temp.length; ++k)
offset[k] = temp[k];
}
field =
dir.getField(TIFFImageDecoder.TIFF_STRIP_BYTE_COUNTS);
long size[];
if (field.getType() == TIFFField.TIFF_LONG)
size = field.getAsLongs();
else { // must be short
short temp[] = field.getAsShorts();
size = new long[temp.length];
for (int k = 0; k < temp.length; ++k)
size[k] = temp[k];
}
boolean reverse = false;
if (dir.isTagPresent(TIFFImageDecoder.TIFF_FILL_ORDER))
reverse =
(dir.getFieldAsLong(TIFFImageDecoder.TIFF_FILL_ORDER) == 2L);
int compression = (int)
dir.getFieldAsLong(TIFFImageDecoder.TIFF_COMPRESSION);
switch (compression) {
case TIFFImage.COMP_FAX_G3_1D:
System.err.println("TIFFImage.COMP_FAX_G3_1D");
compression = Image.CCITTG3_1D;
break;
case TIFFImage.COMP_FAX_G3_2D:
System.err.println("TIFFImage.COMP_FAX_G3_2D");
compression = Image.CCITTG3_1D;
if
(dir.isTagPresent(TIFFImageDecoder.TIFF_T4_OPTIONS)) {
if (((int)
dir.getFieldAsLong(TIFFImageDecoder.TIFF_T4_OPTIONS) & 1) != 0)
compression = Image.CCITTG3_2D;
}
break;
case TIFFImage.COMP_FAX_G4_2D:
System.err.println("TIFFImage.COMP_FAX_G4_2D");
compression = Image.CCITTG4;
break;
default:
throw new Exception("Compression type " +
compression + " not supported");
}
long rowsLeft = h;
for (int k = 0; k < offset.length; ++k) {
byte im[] = new byte[(int) size[k]];
s.seek(offset[k]);
s.readFully(im);
Image img = Image.getInstance((int) w, (int)
Math.min(rowsStrip, rowsLeft), reverse, compression, 0, im);
rowsLeft -= rowsStrip;
img.scalePercent(72f / 200f * 100);
document.add(img);
}
boolean result = document.newPage();
}
document.close();
}
catch (Exception de) {
de.printStackTrace();
}
}

You can also use the example Chap0611.java although it's slower and the
memory usage is higher. The final pdf size is the same.

Best Regards,
Paulo Soares

> -Original Message-
> From: Elamathi Sambandam [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 17:16
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] itext sample for tiff(G3) to pdf
> 
> Hi
> 
> I am using itext to convert tiff to pdf files.
> I am using sample (chap0612 ) given by itext. I just changed the
> filename to my tiff file name
> It converts to PDF. When i opened the pdf in acrobat it says "read less
> image data than expected".
> The tiff file has  G3 format with COMP_FAX_G3_2D compression.
> Should i do anything more that is not given in the sample to convert
> tiff fil

[iText-questions] urgent - servlet problems

2002-05-02 Thread Lord Zefyrus God



hi

i've tried the examlpe that uses a servlet instead a main class.
and it locks the browser until i press the refresh key (f5), them the pdf 
comes up.

i'm using Tomcat and jdk 1.2

[]'s

Zefyrus

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] iText design question

2002-05-02 Thread Paulo Soares



> -Original Message-
> From: Leonard Rosenthol [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 17:17
> To:   Paulo Soares; [EMAIL PROTECTED]
> Subject:  RE: [iText-questions] iText design question
> 
> At 4:54 PM +0100 5/2/02, Paulo Soares wrote:
> > I'm transforming the PRObjects in PdfObjects.
> 
>   OK.
> 
> 
> >The only problem is PRStream that doesn't really
> >have the stream inside, only pointers to the data and I don't know if
> it's
> >wise to open up, decompress and store in memory the stream when most of
> the
> >time this is not needed.
> 
>   No, I would definitely NOT do that - you are right, that it 
> could potentially take up huge amounts of memory that would never be 
> referenced!
> 
> 
> >On the other hand if you are doing stream
> >manipulation this work will have to be done.
> 
>   As long as the conversion can take place "on the fly".  For 
> example, if there was a constructor for PdfStream that could take a 
> PRStream - that would really be what is needed.   Do you think that 
> would be workable??
> 
This needs some thought. Remember that what's in PRStream is other
document referencing other objects.


> > Well, I'm supporting all types but the problem of too many values
> >remain. It's doable but I suspect that type 4 and bigger were created for
> >the benefit of Photoshop.
> 
>   Illustrator actually ;).
> 
>   Adobe added them as part of the move to get Illustrator's 
> native file format away from a bastardized version of EPS to PDF. 
> This is also why all the transparency stuff in PDF 1.4 - because AI 
> had to add it.
> 
> 
> >Just to give you a flavor of the implementation
> >here's the type 3 example from the pdf reference 1.3.
> 
>   Ouch!   Very evil looking - but yes, it does work ;).  Any 
> thoughts about creating alternative accessor/contructor methods for 
> simple things (like a simple radial or linear gradient between two 
> colors)??  I have some code somewhere that figures out a bunch of the 
> dynamic values based on simple ones if you want me to dig it up.
> 
This is just a layer on top of the metal, the metal being the raw
dictionaries. I expect that, as it happened with the forms, higher level
layers will be put in place to ease the manipulation. If you have something
to simplify the calculations for axial (and radial) shadings it would
probably cater for 99% of the needs.

Best Regards,
Paulo Soares

> Leonard
> -- 
> --
> -
> Leonard Rosenthol
> 
> Chief Technical Officer  
> PDF Sages, Inc.  215-629-3700 (voice)

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] iText design question

2002-05-02 Thread Leonard Rosenthol

At 4:54 PM +0100 5/2/02, Paulo Soares wrote:
>   I'm transforming the PRObjects in PdfObjects.

OK.


>The only problem is PRStream that doesn't really
>have the stream inside, only pointers to the data and I don't know if it's
>wise to open up, decompress and store in memory the stream when most of the
>time this is not needed.

No, I would definitely NOT do that - you are right, that it 
could potentially take up huge amounts of memory that would never be 
referenced!


>On the other hand if you are doing stream
>manipulation this work will have to be done.

As long as the conversion can take place "on the fly".  For 
example, if there was a constructor for PdfStream that could take a 
PRStream - that would really be what is needed.   Do you think that 
would be workable??


>   Well, I'm supporting all types but the problem of too many values
>remain. It's doable but I suspect that type 4 and bigger were created for
>the benefit of Photoshop.

Illustrator actually ;).

Adobe added them as part of the move to get Illustrator's 
native file format away from a bastardized version of EPS to PDF. 
This is also why all the transparency stuff in PDF 1.4 - because AI 
had to add it.


>Just to give you a flavor of the implementation
>here's the type 3 example from the pdf reference 1.3.

Ouch!   Very evil looking - but yes, it does work ;).  Any 
thoughts about creating alternative accessor/contructor methods for 
simple things (like a simple radial or linear gradient between two 
colors)??  I have some code somewhere that figures out a bunch of the 
dynamic values based on simple ones if you want me to dig it up.


Leonard
-- 
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-629-3700 (voice)


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Acrobat 5 vs. Acrobat 4 problem

2002-05-02 Thread Paulo Soares

You forgot the PdfContentByte.endText().

Best Regards,
Paulo Soares

> -Original Message-
> From: Wilhelm *Rafial* Fitzpatrick [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 17:02
> To:   Paulo Soares
> Subject:  RE: [iText-questions] Acrobat 5 vs. Acrobat 4 problem
> 
> >This is really strange. Send me privately the PDF for examination.
> 
> Thanks for taking the time to look at this.  Here is a sample PDF 
> showing the problem.  I generated it with compression turned off so 
> it will be easier to inspect.
> 
> -- 
> __
>  Wilhelm Fitzpatrick  |  When we speak of free
>   http://www.3roses.com/  |  software we are referring
>  [EMAIL PROTECTED]  |  to freedom not price. << File:
> laftest.pdf >> 

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] itext sample for tiff(G3) to pdf

2002-05-02 Thread Elamathi Sambandam

Hi

I am using itext to convert tiff to pdf files.
I am using sample (chap0612 ) given by itext. I just changed the
filename to my tiff file name
It converts to PDF. When i opened the pdf in acrobat it says "read less
image data than expected".
The tiff file has  G3 format with COMP_FAX_G3_2D compression.
Should i do anything more that is not given in the sample to convert
tiff files of G3 with COMP_FAX_G3_2D

Thank you
regards
Mathi




___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] iText design question

2002-05-02 Thread Paulo Soares



> -Original Message-
> From: Leonard Rosenthol [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 16:27
> To:   Paulo Soares; [EMAIL PROTECTED]
> Subject:  RE: [iText-questions] iText design question
> 
> At 10:51 AM +0100 5/2/02, Paulo Soares wrote:
> >  > 1) Why the are two different types of low level PDF objects?
> >>  PRObject vs. PDFObject, etc.
> >>
> > The original objects (PdfObject) where designed to output PDF and as
> >such contain additional information that cannot be extracted from the
> read
> >pdf. The case of PdfString/PRString is paradigmatic. A PdfString contains
> a
> >Unicode string and an encoding. When this object is output to the pdf the
> >string is converted to a byte array depending on the encoding. The
> PRString
> >contains only a byte array disguised as a string that when output to the
> pdf
> >is only converted with direct byte casting. It's impossible to know what
> was
> >the original encoding. PdfStream contains the entire stream and PRStream
> >contains pointers to the file to save memory space. At the time this was
> >what I thought was the straightforward way to do things, maybe something
> can
> >be merged and changed to have an unified approach.
> 
>   And it looks like there is a simple/transparent conversion 
> between the two using the getPdfObject method of PdfReader.  As such, 
> that's fine since as I improve/enhance the pdfReader, I'll keep 
> working with the PR objects and just make sure to convert them to the 
> PdfObjects on their back to the caller.
> 
> 
> >  > 2) Why are both these sets of objects private to their package,
> >>  thereby disallowing "low level" access to applications?
> >>
> > This was essentially to protect the user from doing wrong things.
> >The structure of iText also doesn't allow to generate an arbitrary
> document
> >like PJ so it wasn't very important to expose the classes.
> 
>   Right.   But that's exactly what I am trying to do - give 
> iText capabilities ala PJ.  As such, I now need those PdfObjects 
> exposed...
> 
> 
> > For me they can all be public. I'm preparing a new release with
> >shading patterns and I'll make those classes public. I'll also see if
> some
> >of the PRObject can be eliminated and merged with the PdfObject.
> >
> 
>   Let's leave the two sets of classes, and just publicly expose 
> the PdfObjects.  I think that's a better approach for now.
> 
I'm transforming the PRObjects in PdfObjects. It turns out that most
of the initial restriction were not real or could be circumvented with small
changes in the PdfObjects. The only problem is PRStream that doesn't really
have the stream inside, only pointers to the data and I don't know if it's
wise to open up, decompress and store in memory the stream when most of the
time this is not needed. On the other hand if you are doing stream
manipulation this work will have to be done. It probably needs a mixed mode
to be discussed later.

>   Can't wait to see shading patterns!   How many of the 
> different types did you do?  I found that the simple linear and 
> radial gradients were pretty easy to implement - but the more complex 
> ones just required too many programmatic values to be viable.
> 
Well, I'm supporting all types but the problem of too many values
remain. It's doable but I suspect that type 4 and bigger were created for
the benefit of Photoshop. Just to give you a flavor of the implementation
here's the type 3 example from the pdf reference 1.3.

import java.awt.Color;
import java.io.*;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;

public class shading {

public static void main(String[] args) {
Document document = new Document(PageSize.A4, 50, 50, 50,
50);
Document.compress = false;
try {
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream("c:\\shading.pdf"));
document.open();

PdfFunction function1 = PdfFunction.type2(writer, new
float[]{0, 1}, null,
new float[]{.929f, .357f, 1, .298f}, new
float[]{.631f, .278f, 1, .027f}, 1.048f);
PdfFunction function2 = PdfFunction.type2(writer, new
float[]{0, 1}, null,
new float[]{.929f, .357f, 1, .298f}, new
float[]{.941f, .4f, 1, .102f}, 1.374f);
PdfFunction function3 = PdfFunction.type3(writer, new
float[]{0, 1}, null,
new PdfFunction[]{function1, function2}, new
float[]{.708f}, new float[]{1, 0, 0, 1});
PdfShadingPattern shading =
PdfShadingPattern.type3(writer, new CMYKColor(0, 0, 0, 0),
new float[]{0, 0, .096f, 0, 0, 1}, null, function3,
new boolean[]{true, true});

PdfContentByte cb = writer.getDirectContent();
cb.moveTo(316.789f, 140.311f);
 

RE: [iText-questions] iText design question

2002-05-02 Thread Leonard Rosenthol

At 10:51 AM +0100 5/2/02, Paulo Soares wrote:
>  > 1) Why the are two different types of low level PDF objects?
>>  PRObject vs. PDFObject, etc.
>>
>   The original objects (PdfObject) where designed to output PDF and as
>such contain additional information that cannot be extracted from the read
>pdf. The case of PdfString/PRString is paradigmatic. A PdfString contains a
>Unicode string and an encoding. When this object is output to the pdf the
>string is converted to a byte array depending on the encoding. The PRString
>contains only a byte array disguised as a string that when output to the pdf
>is only converted with direct byte casting. It's impossible to know what was
>the original encoding. PdfStream contains the entire stream and PRStream
>contains pointers to the file to save memory space. At the time this was
>what I thought was the straightforward way to do things, maybe something can
>be merged and changed to have an unified approach.

And it looks like there is a simple/transparent conversion 
between the two using the getPdfObject method of PdfReader.  As such, 
that's fine since as I improve/enhance the pdfReader, I'll keep 
working with the PR objects and just make sure to convert them to the 
PdfObjects on their back to the caller.


>  > 2) Why are both these sets of objects private to their package,
>>  thereby disallowing "low level" access to applications?
>>
>   This was essentially to protect the user from doing wrong things.
>The structure of iText also doesn't allow to generate an arbitrary document
>like PJ so it wasn't very important to expose the classes.

Right.   But that's exactly what I am trying to do - give 
iText capabilities ala PJ.  As such, I now need those PdfObjects 
exposed...


>   For me they can all be public. I'm preparing a new release with
>shading patterns and I'll make those classes public. I'll also see if some
>of the PRObject can be eliminated and merged with the PdfObject.
>

Let's leave the two sets of classes, and just publicly expose 
the PdfObjects.  I think that's a better approach for now.

Can't wait to see shading patterns!   How many of the 
different types did you do?  I found that the simple linear and 
radial gradients were pretty easy to implement - but the more complex 
ones just required too many programmatic values to be viable.


Leonard
-- 
---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-629-3700 (voice)


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] RTF

2002-05-02 Thread Sokolov, Oleg

I'm creating RTF document, but when trying to print it  chooses German Std
Fanfold paper size by default, which not allows to print document properly -
it got truncated.
Why it does this and how i can force it to be A4 by default.
Thanks
Oleg


--
Notice:  This e-mail message, together with any attachments, contains information of 
Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, 
proprietary copyrighted and/or legally privileged, and is intended solely for the use 
of the individual or entity named in this message.  If you are not the intended 
recipient, and have received this message in error, please immediately return this by 
e-mail and then delete it.

==


___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Mailing Labels

2002-05-02 Thread [EMAIL PROTECTED]

If you want to print out in Word, wouldn't you be better up to import it
straight into Word through a mail merge? You could connect through an ODBC
datasource and have them available in Word.
For myself, I haven't worked with rtf but I played a little bit around with
absolute positioning and printing into pdf as labels. Worked fine but
haven't touched it in a while.
HTH

Gunter



Hi
   Could you let me know if there is any example of
using iText to print mailing labels. I have lots of addresses
in a flat file where each address consists of three lines.
I want to create a pdf/rtf file consisting of three columns
of the addresses.

Ultimately the idea is to get the data from a
database like postgresql/mysql and use a servlet to obtain
the data and use iText to format the address labels and
save them as rtf so the file could be imported into word
and printed on to actual mailing labels.

Thanks
Joseph Rajkumar
--
email: [EMAIL PROTECTED]

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Mailing Labels

2002-05-02 Thread Joseph Rajkumar

Hi
   Could you let me know if there is any example of
using iText to print mailing labels. I have lots of addresses
in a flat file where each address consists of three lines.
I want to create a pdf/rtf file consisting of three columns
of the addresses.

Ultimately the idea is to get the data from a 
database like postgresql/mysql and use a servlet to obtain
the data and use iText to format the address labels and
save them as rtf so the file could be imported into word
and printed on to actual mailing labels.

Thanks
Joseph Rajkumar
-- 
email: [EMAIL PROTECTED]

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



FW: [iText-questions] How to specify link with japanese chars.

2002-05-02 Thread Paulo Soares

I received this mail and as I suspected it's a risk to use anything but
ASCII. In the japanese windows case the encoding is Shift-JIS and it works.
Now, I have US windows with the CP1252 encoding and this solution will not
work. It's platform dependent and defeats the purpose of the PDF. For those
desperate cases I'll include a byte input to the file name that can be used
with your favorite encoding and output to the pdf in the <...> format.

Best Regards,
Paulo Soares

> -Original Message-
> From: Kumata Mitsugu [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 6:28
> To:   Paulo Soares
> Subject:  Re: [iText-questions] How to specify link with japanese
> chars.
> 
> Hello all,
> 
> I'm a Japanese iText user.
> I will be glad if the follwings are a clue as to the problem of Japanese
> chars.
> 
> I do not know if iText will produce PdfString object represented by
> hexadecimal strings which must be enclosed within angle brackets < and >.
> So, I tried to make a change to a line in a pdf source which is generated
> by
> iText.
> Changed result is as follows:
> 
>   /F <8341 2f 8343 2e 70 64 66>
> 
> Spaces in angle brackets are meaningless for PDF Viewer. I put them just
> for
> making it easy to visually recognize each characters. So, even if there
> are
> no spaces, you can get the same result.
> 
> Codes in angle brackets are Shift-JIS code which is a major encoding for
> Japanese characters.
> 
> "<8341 2f 8343 2e 70 64 66>" represents a relative path.
> 
> Each code represent as follws;
>  
>  8341 -> Japanese Hiragana "a" (30a2 in Unicode)
>  2f ---> slash (represents directory)
>  8343 -> Japanese Hiragana "i" (30a4 in Unicode)
>  2e ---> period
>  70 ---> p
>  64 ---> d
>  66 ---> f
> 
> This link will work on Japanese Winodews and Japanese Mac OS.
> 
> 
> Regards,
> KuMi
> 
> 
> > The problem here is how are these multi-byte interpreted. What is the
> > encoding? I tried to create a link to a directory with a chinese name in
> my
> > computer with Acrobat 4 and it just put a "?" for the chinese name.
> Maybe it
> > works with the japanese Acrobat, or maybe not.
> > 
> > Best Regards,
> > Paulo Soares
> > 
> >> -Original Message-
> >> From:Leonard Rosenthol [SMTP:[EMAIL PROTECTED]]
> >> Sent:Tuesday, April 30, 2002 14:17
> >> To:Paulo Soares; 'B J'; [EMAIL PROTECTED]
> >> Subject:RE: [iText-questions] How to specify link with japanese
> >> chars.
> >> 
> >> At 10:49 AM +0100 4/30/02, Paulo Soares wrote:
> >>> According to the PDF specs:
> >>> 
> >>> The URL must adhere to the character-encoding requirements specified
> in
> >>> RFC 1738. Because 7-bit U.S. ASCII is a strict subset of
> PDFDocEncoding,
> >>> this
> >>> value may also be considered to be in that encoding.
> >>> 
> >> 
> >> I agree with that, concerning URL's - that wasn't my point.
> >> 
> >> I was talking about filenames - which CAN contain multi-byte
> >> characters.  In fact the PDF spec (v1.3, section 3.10.1) contains an
> >> entire subsection about "Multiple-Byte strings in file specification".
> >> 
> >> 
> >> Leonard
> >> -- 
> >>
> --
> >> -
> >> Leonard Rosenthol
> >> 
> >> Chief Technical Officer  
> >> PDF Sages, Inc.  215-629-3700 (voice)
> > 
> > ___
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Linearized PDFs

2002-05-02 Thread Paulo Soares



> -Original Message-
> From: Bala Guthy [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 0:01
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] Linearized PDFs
> 
> Hello, I know iText does not support Linearized PDFs at this time,
> given that:
> 
> 1. Do you plan on supporting it in future?
> 
Not likely.

> 2. Do you know of any public domain implementations?
> 
No. The ones I know are commercial.

Best Regards,
Paulo Soares

> Thank you.
> -- 
> Bala Guthy
> 
> 
> 
> ___
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] pdf file sizes

2002-05-02 Thread Paulo Soares

You are probably embedding a font. If the code is the same the result is the
same. You must have differences.

Best Regards,
Paulo Soares

> -Original Message-
> From: Campanale, Rocco [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 20:24
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] pdf file sizes
> 
> I am using version 0.91. My question is: Is there any explanation why the
> same exact pdf file created on a unix platform and windows nt platform
> would have widely different sizes? I am basically using Table with no
> graphics. The file size on windows is ~5k and on a solaris 2.5 unix box,
> ~178,256k. Thanks for your help in advance.
> 
> 
> 
> ___
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] iText design question

2002-05-02 Thread Paulo Soares



> -Original Message-
> From: Leonard Rosenthol [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 1:46
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] iText design question
> 
> I have two questions about the low level design decisions make during 
> the coding of iText.
> 
> 1) Why the are two different types of low level PDF objects? 
> PRObject vs. PDFObject, etc.
> 
The original objects (PdfObject) where designed to output PDF and as
such contain additional information that cannot be extracted from the read
pdf. The case of PdfString/PRString is paradigmatic. A PdfString contains a
Unicode string and an encoding. When this object is output to the pdf the
string is converted to a byte array depending on the encoding. The PRString
contains only a byte array disguised as a string that when output to the pdf
is only converted with direct byte casting. It's impossible to know what was
the original encoding. PdfStream contains the entire stream and PRStream
contains pointers to the file to save memory space. At the time this was
what I thought was the straightforward way to do things, maybe something can
be merged and changed to have an unified approach.

> 2) Why are both these sets of objects private to their package, 
> thereby disallowing "low level" access to applications?
> 
This was essentially to protect the user from doing wrong things.
The structure of iText also doesn't allow to generate an arbitrary document
like PJ so it wasn't very important to expose the classes.

> I ask these as I am in the process of extending the reading, parsing 
> and manipulating capabilities of the library - but these particular 
> restrictions are a major roadblock, since it prevents object-level 
> access to the application.
> 
> And if there isn't any good reason - would one of the maintainers be 
> willing to commit the changes to make these objects public?
> 
For me they can all be public. I'm preparing a new release with
shading patterns and I'll make those classes public. I'll also see if some
of the PRObject can be eliminated and merged with the PdfObject.

Best Regards,
Paulo Soares


> Thanks in advance,
> Leonard
> -- 
> --
> -
> Leonard Rosenthol
> 
> Chief Technical Officer  
> PDF Sages, Inc.  215-629-3700 (voice)
> 
> 
> ___
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



RE: [iText-questions] Acrobat 5 vs. Acrobat 4 problem

2002-05-02 Thread Paulo Soares

This is really strange. Send me privately the PDF for examination.

Best Regards,
Paulo Soares

> -Original Message-
> From: Wilhelm *Rafial* Fitzpatrick [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 22:34
> To:   [EMAIL PROTECTED]
> Subject:  [iText-questions] Acrobat 5 vs. Acrobat 4 problem
> 
> I am using iText to create PDF's of filled out forms by opening a 
> single page PDF document, copying the page into a new document, and 
> adding text to fill out the form fields.  Sometimes the resulting PDF 
> has multiple pages, each made by copying the single page template 
> over and over again, then adding text.
> 
> So far this has worked great.  However, I have discovered that with 
> some (not all) of the PDFs I am using a templates, the follow problem 
> occurs:
> 
> When the output document is viewed in Acrobat Reader 5, the added 
> text on the last page is not displayed.  If the document is a single 
> page, none of the added text is displayed.  The same documents work 
> fine when displayed in Acrobat Reader 4 or xpdf.
> 
> Has anyone ever seen a problem like this?  Any suggestions as to what 
> might be causing it?
> 
> Thanks for any insight!
> 
> -wilhelm
> 
> -- 
> __
>  Wilhelm Fitzpatrick  |  When we speak of free
>   http://www.3roses.com/  |  software we are referring
>  [EMAIL PROTECTED]  |  to freedom not price.
> 
> ___
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> ___
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] Linearized PDFs

2002-05-02 Thread Bala Guthy

Hello, I know iText does not support Linearized PDFs at this time,
given that:

1. Do you plan on supporting it in future?
2. Do you know of any public domain implementations?

Thank you.
-- 
Bala Guthy



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



[iText-questions] pdf file sizes

2002-05-02 Thread Campanale, Rocco

I am using version 0.91. My question is: Is there any explanation why the same exact 
pdf file created on a unix platform and windows nt platform would have widely 
different sizes? I am basically using Table with no graphics. The file size on windows 
is ~5k and on a solaris 2.5 unix box, ~178,256k. Thanks for your help in advance.



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions