[iText-questions] Extracting form field meta data

2006-02-09 Thread Richard Braman
Title: Message



I am trying to 
extract form field meta data out of a PDF form that uses 
FDF.
 
I dont want the 
data, ie what the user filled in
 
I want the data 
about the fields on the form including:
 
name of 
field
type of field 
(textbox, checkbox, etc)
location of field 
(rectangle)
font size used for 
text
 
I need this on a 
page by page basis, in other words I to iterate through each pages in a 
document and etxract this meta data page by page.
Richard Bramanmailto:[EMAIL PROTECTED]561.748.4002 (voice) 
http://www.taxcodesoftware.orgFree Open Source Tax Software
 


[iText-questions] Grainy images

2006-02-09 Thread Richard Braman
Title: Message



SOme of the user 
(Bill ensley) pointed to Jpedal as a good library for extracting images 
PDFs.  I managed to get my page xtracted as an image, but when it came out 
it was clear but has this strange background "fuzz"  I was wondering if any 
of you had any idea.  here is my java code. I know this is not an itext 
problem but maybe your users know whats happening here.
 
private void 
generatePNGfromPDF(PdfDecoder decoder, int PageNumber, double width, double 
height, String formname){    //int size = 
100;    try    {    
//decoder.decodePage(PageNumber);    
//decoder.setPageParameters(1,PageNumber); //values scaling (1=100%). page 
number    
decoder.useHiResScreenDisplay(true);    
    int dpi=300;    
decoder.setExtractionMode(32, dpi,2);    BufferedImage PDF = 
decoder.getPageAsImage(PageNumber);     width = 
PDF.getWidth() * .75;    height = PDF.getHeight() * 
.75;      GraphicsConfiguration gc = 
getDefaultConfiguration();    final BufferedImage PNG = 
getScaledInstance(PDF, (int)Math.round(width), (int)Math.round(height), 
gc);    String fileName = 
jTextAreaTargetDirectoryPath.getText() + "\\" + formname + "-" + PageNumber + 
".png";    ImageIO.write(PNG, "png", new File( fileName 
));    decoder.flushObjectValues(true);    
}    catch(Exception 
ex){    flogger.log(Level.SEVERE, 
"Cannot generate image from page.", ex);    }   
    }private static GraphicsConfiguration 
getDefaultConfiguration() {    
GraphicsEnvironment ge = 
GraphicsEnvironment.getLocalGraphicsEnvironment();    
GraphicsDevice gd = 
ge.getDefaultScreenDevice();    
return gd.getDefaultConfiguration();    } private static 
BufferedImage toCompatibleImage(BufferedImage image, GraphicsConfiguration gc) 
{    if (gc == 
null)    gc = 
getDefaultConfiguration();    int w = 
image.getWidth();    int h = 
image.getHeight();    int 
transparency = 
image.getColorModel().getTransparency();    
BufferedImage result = gc.createCompatibleImage(w, h, 
transparency);    Graphics2D g2 = 
result.createGraphics();    
g2.drawRenderedImage(image, null);    
g2.dispose();    return 
result;    } private static 
BufferedImage copy(BufferedImage source, BufferedImage target) 
{    Graphics2D g2 = 
target.createGraphics();    
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, 
    
RenderingHints.VALUE_INTERPOLATION_BICUBIC);    
 g2.setRenderingHint(RenderingHints.KEY_DITHERING,RenderingHints.VALUE_DITHER_DISABLE); g2.setRenderingHint(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_QUALITY);    
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);    
  g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,RenderingHints.VALUE_FRACTIONALMETRICS_ON);   
    double scalex = (double) 
target.getWidth()/ 
source.getWidth();    double scaley = 
(double) target.getHeight()/ 
source.getHeight();    
AffineTransform xform = AffineTransform.getScaleInstance(scalex, 
scaley);    
g2.drawRenderedImage(source, 
xform);    
g2.dispose();    return 
target;    } private static BufferedImage 
getScaledInstance(BufferedImage image, int width, int height, 
GraphicsConfiguration gc) {    if (gc 
== null)    
gc = getDefaultConfiguration();    
int transparency = 
image.getColorModel().getTransparency();    
return copy(image, gc.createCompatibleImage(width, height, 
transparency));    }private PdfDecoder openpdf(Object 
file){    //open pdf using jpedal    
PdfDecoder decoder = new PdfDecoder();    try 
    {    
decoder.openPdfFile(file.toString());    
}    catch(org.jpedal.exception.PdfException 
ex){    flogger.log(Level.SEVERE, 
"Cannot open pdf.", ex);    } 
return decoder;  } 
 
Richard Bramanmailto:[EMAIL PROTECTED]561.748.4002 (voice) 
http://www.taxcodesoftware.orgFree Open Source Tax Software
 


RE: [iText-questions] WMF, SVG, & iText

2006-02-09 Thread David Thielen
Hi;

If you get the java part working, then if Uehara-san does not want to port
it to .NET, I will.

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544

-Original Message-
From: Bill Ensley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 5:34 PM
To: 'David Thielen'; iText Mail Group
Subject: RE: [iText-questions] WMF, SVG, & iText

I have a good amount of experience with SVG as well as quite a bit of code
for it.
If anyone else on this list has some experience with it and has some extra
time, 
I would be willing to work with them on a sub-project to get a true SVG
parser into
iText.

We could built it to be both Java and .Net compliant

-Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Thursday, February 09, 2006 4:21 PM
To: 'iText Mail Group'
Subject: RE: [iText-questions] WMF, SVG, & iText

Hi;

I was afraid it required Batik - we run on .NET too (iTextDotNet is
fantastic) and I have a bad feeling that Batik would be a mess to convert.

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544

-Original Message-
From: Bill Ensley [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 3:00 PM
To: 'David Thielen'; iText Mail Group
Subject: RE: [iText-questions] WMF, SVG, & iText

1) Yes, SVG can be placed into iText in a roundabout way.

The Apache Batik project is fully compliant with the current SVG spec.
What you do is load the SVG using Batik and then paint it into a
PdfGraphics2D Object.

I am working on a wrapper that will let and SVG file be used as simply and
Image in iText, but not Done yet.

I believe if you search the iText mail archives, there is a rather large
example.

2) Yes, WMF files keep their vector information.  Actually, it is one of the

Best WMF parsers I have seen, I actually reused some of it to parse WMF's
into Another format.

-Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Thursday, February 09, 2006 1:04 PM
To: itext
Subject: [iText-questions] WMF, SVG, & iText

Hi;

 

A couple of questions.

1.  Can svg images be placed in iText?
2.  For wmf (and svg if supported), is it converted to a bitmap or does
it remain a set of vectors (and is therefore infinitely zoomable)?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] WMF, SVG, & iText

2006-02-09 Thread Bill Ensley
I have a good amount of experience with SVG as well as quite a bit of code
for it.
If anyone else on this list has some experience with it and has some extra
time, 
I would be willing to work with them on a sub-project to get a true SVG
parser into
iText.

We could built it to be both Java and .Net compliant

-Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Thursday, February 09, 2006 4:21 PM
To: 'iText Mail Group'
Subject: RE: [iText-questions] WMF, SVG, & iText

Hi;

I was afraid it required Batik - we run on .NET too (iTextDotNet is
fantastic) and I have a bad feeling that Batik would be a mess to convert.

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544

-Original Message-
From: Bill Ensley [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 3:00 PM
To: 'David Thielen'; iText Mail Group
Subject: RE: [iText-questions] WMF, SVG, & iText

1) Yes, SVG can be placed into iText in a roundabout way.

The Apache Batik project is fully compliant with the current SVG spec.
What you do is load the SVG using Batik and then paint it into a
PdfGraphics2D Object.

I am working on a wrapper that will let and SVG file be used as simply and
Image in iText, but not Done yet.

I believe if you search the iText mail archives, there is a rather large
example.

2) Yes, WMF files keep their vector information.  Actually, it is one of the

Best WMF parsers I have seen, I actually reused some of it to parse WMF's
into Another format.

-Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Thursday, February 09, 2006 1:04 PM
To: itext
Subject: [iText-questions] WMF, SVG, & iText

Hi;

 

A couple of questions.

1.  Can svg images be placed in iText?
2.  For wmf (and svg if supported), is it converted to a bitmap or does
it remain a set of vectors (and is therefore infinitely zoomable)?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] WMF, SVG, & iText

2006-02-09 Thread David Thielen
Hi;

I was afraid it required Batik - we run on .NET too (iTextDotNet is
fantastic) and I have a bad feeling that Batik would be a mess to convert.

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544

-Original Message-
From: Bill Ensley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 3:00 PM
To: 'David Thielen'; iText Mail Group
Subject: RE: [iText-questions] WMF, SVG, & iText

1) Yes, SVG can be placed into iText in a roundabout way.

The Apache Batik project is fully compliant with the current SVG spec.
What you do is load the SVG using Batik and then paint it into a
PdfGraphics2D Object.

I am working on a wrapper that will let and SVG file be used as simply and
Image in iText, but not 
Done yet.

I believe if you search the iText mail archives, there is a rather large
example.

2) Yes, WMF files keep their vector information.  Actually, it is one of the

Best WMF parsers I have seen, I actually reused some of it to parse WMF's
into
Another format.

-Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Thursday, February 09, 2006 1:04 PM
To: itext
Subject: [iText-questions] WMF, SVG, & iText

Hi;

 

A couple of questions.

1.  Can svg images be placed in iText?
2.  For wmf (and svg if supported), is it converted to a bitmap or does
it remain a set of vectors (and is therefore infinitely zoomable)?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] WMF, SVG, & iText

2006-02-09 Thread Bill Ensley
1) Yes, SVG can be placed into iText in a roundabout way.

The Apache Batik project is fully compliant with the current SVG spec.
What you do is load the SVG using Batik and then paint it into a
PdfGraphics2D Object.

I am working on a wrapper that will let and SVG file be used as simply and
Image in iText, but not 
Done yet.

I believe if you search the iText mail archives, there is a rather large
example.

2) Yes, WMF files keep their vector information.  Actually, it is one of the

Best WMF parsers I have seen, I actually reused some of it to parse WMF's
into
Another format.

-Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Thursday, February 09, 2006 1:04 PM
To: itext
Subject: [iText-questions] WMF, SVG, & iText

Hi;

 

A couple of questions.

1.  Can svg images be placed in iText?
2.  For wmf (and svg if supported), is it converted to a bitmap or does
it remain a set of vectors (and is therefore infinitely zoomable)?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] WMF, SVG, & iText

2006-02-09 Thread David Thielen
Hi;

 

A couple of questions.

1.  Can svg images be placed in iText?
2.  For wmf (and svg if supported), is it converted to a bitmap or does
it remain a set of vectors (and is therefore infinitely zoomable)?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread Paulo Soares
That's the decoded bytes bet there's also a method to get the raw coded
bytes.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of A. S. Golub
> Sent: Thursday, February 09, 2006 6:03 PM
> To: itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] Retrieving of the content of 
> stream objects
> 
>  
> Back to the streams again...
> 
> When I'm trying to read the content of stream, I use the 
> following code:
> 
> PdfStream stream;
> ...
> byte[] byteStream = PdfReader.getStreamBytes((PRStream)stream)
> 
> Variable 'stream' refers to a stream object from source PDF 
> document. As you
> know, this stream object is represented in the document in 
> the following
> form:
> 
> dictionary
> stream
> ... stream of bytes ...
> endstream
> 
> When I call method getStreamBytes(), I expect to obtain the 
> content of the
> stream (marked as "...stream of bytes..." in my schema), and 
> I expect to get
> exactly that number of bytes which is specified in the 
> stream's "Length"
> property. But method returns much more bytes then specified 
> in the "Length".
> Why ? Does method getStreamBytes() returns information 
> contained within
> stream part of the object stream as already decoded 
> information ? Could
> anyone explain, how to obtain the content of object stream in 
> that simple
> form (array of bytes) which could allow me later to create 
> exact copy of the
> stream ?
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
> dat=121642
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread A. S. Golub
 
Back to the streams again...

When I'm trying to read the content of stream, I use the following code:

PdfStream stream;
...
byte[] byteStream = PdfReader.getStreamBytes((PRStream)stream)

Variable 'stream' refers to a stream object from source PDF document. As you
know, this stream object is represented in the document in the following
form:

dictionary
stream
... stream of bytes ...
endstream

When I call method getStreamBytes(), I expect to obtain the content of the
stream (marked as "...stream of bytes..." in my schema), and I expect to get
exactly that number of bytes which is specified in the stream's "Length"
property. But method returns much more bytes then specified in the "Length".
Why ? Does method getStreamBytes() returns information contained within
stream part of the object stream as already decoded information ? Could
anyone explain, how to obtain the content of object stream in that simple
form (array of bytes) which could allow me later to create exact copy of the
stream ?




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problem with hidden fields

2006-02-09 Thread Paulo Soares
Use TextField, PushbuttonField and RadioCheckField.

> -Original Message-
> From: Udo Rader [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 09, 2006 5:02 PM
> To: Paulo Soares
> Cc: itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] Problem with hidden fields
> 
> On Thu, 2006-02-09 at 16:50 +, Paulo Soares wrote:
> >  
> > > -Original Message-
> > > From: Udo Rader [mailto:[EMAIL PROTECTED] 
> > > Sent: Thursday, February 09, 2006 4:42 PM
> > > To: Paulo Soares
> > > Cc: itext-questions@lists.sourceforge.net
> > > Subject: RE: [iText-questions] Problem with hidden fields
> > > 
> > > Thanks, that solved it.
> > > 
> > > But does this mean that the addHiddenField is actually 
> useless if one
> > > wants to submit the form data?
> > >
> > 
> > Yes. getAcroForm() is a legacy.
> 
> Hmm, so what's the best (and most future-proof) to generate 
> form fields
> then? The "direct" way without the getAcroForm() "high level" API?
> 
> The reason I am highly interested in this is because I am just in the
> process of writing an extension for jasperreports to produce PDF forms
> and I want to make it as reasonable as possible.
> 
> Udo Rader
> 
> -- 
> bestsolution.at EDV Systemhaus GmbH
> http://www.bestsolution.at
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Question about List in RTF

2006-02-09 Thread Mark Hall
On Wednesday 08 February 2006 10:46, Sidney wrote:
> I am using RtfWriter2 to generate a RTF document. I use
> com.lowagie.text.List to generate a list and put it in a
> com.lowagie.text.rtf.table.RtfCell object. I know that the RtfCell object
> doesn't support adding in the ListItem. But can I add in a List object?
> Also I wanna ask is there any problem for my code below? Actually the code
> doesn't come out with any exceptions or errors during compilation or
> generating the rtf document.

There was a bug in the handling of List elements in table cells that has been 
fixed.

> Table table = new Table(1);
> RtfCell cell = new RtfCell();
>
> cell.addElement("Line 1 before List");
> cell.addElement("Line 2 before List");
>
> List list = new List(true, 0);
> list.add(new ListItem("Point 1"));
> list.add(new ListItem("Point 2"));
> list.add(new ListItem("Point 3"));
>
> cell.addElement(list);
> cell.addElement("Line 1 after List");
> cell.addElement("Line 2 after List");
> table.addCell(cell);
>
> doc.add(table);

You cannot (at least as far as I am aware and I get a compiler error if I try 
it) add a String to a Cell with addElement. You need to wrap it in a 
Paragraph or similar. Apart from that the code is functional.

Greetings,
Mark
-- 
A horse!  A horse!  My kingdom for a horse!
-- Wm. Shakespeare, "Henry VI"

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc


pgpJM0yB5aY3L.pgp
Description: PGP signature


RE: [iText-questions] Problem with hidden fields

2006-02-09 Thread Udo Rader
On Thu, 2006-02-09 at 16:50 +, Paulo Soares wrote:
>  
> > -Original Message-
> > From: Udo Rader [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, February 09, 2006 4:42 PM
> > To: Paulo Soares
> > Cc: itext-questions@lists.sourceforge.net
> > Subject: RE: [iText-questions] Problem with hidden fields
> > 
> > Thanks, that solved it.
> > 
> > But does this mean that the addHiddenField is actually useless if one
> > wants to submit the form data?
> >
> 
> Yes. getAcroForm() is a legacy.

Hmm, so what's the best (and most future-proof) to generate form fields
then? The "direct" way without the getAcroForm() "high level" API?

The reason I am highly interested in this is because I am just in the
process of writing an extension for jasperreports to produce PDF forms
and I want to make it as reasonable as possible.

Udo Rader

-- 
bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at


signature.asc
Description: This is a digitally signed message part


RE: [iText-questions] Problem with hidden fields

2006-02-09 Thread Paulo Soares
 

> -Original Message-
> From: Udo Rader [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 09, 2006 4:42 PM
> To: Paulo Soares
> Cc: itext-questions@lists.sourceforge.net
> Subject: RE: [iText-questions] Problem with hidden fields
> 
> Thanks, that solved it.
> 
> But does this mean that the addHiddenField is actually useless if one
> wants to submit the form data?
>

Yes. getAcroForm() is a legacy.
 
> Udo Rader
> 
> On Thu, 2006-02-09 at 15:51 +, Paulo Soares wrote:
> > Use a hidden text field. 
> 
> -- 
> bestsolution.at EDV Systemhaus GmbH
> http://www.bestsolution.at
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Arbitrary text under barcode

2006-02-09 Thread Jay Parashar
Title: Arbitrary text under barcode






Hi all,

I know we can display or hide the text representing the barcode with setFont(null) etc. Can I put any arbitrary text instead of the text that makes the barcode?

Example...generates barcode for XXX.ABC. I want the text as “Item Abc”. Is there any way we can change the text dynamically to make it user friendly? The barcode should still scan XX.ABC only the text is different. I know we can do it using cells, tables etc.

Thanks.

Jay








Re: [iText-questions] RtfHeaderFooterGroup

2006-02-09 Thread Mark Hall
On Friday 03 February 2006 20:16, Sokolov, Oleg wrote:
> I don't het anything except
>
> [EMAIL PROTECTED] 
>
> in footer or header depending what i set
>
Sorry for the long wait, but I've been rather busy. I've run your example and 
don't get any errors and the document works, the header or footer table is 
displayed.
Please specify what version of iText you are using.

Greetings,
Mark
-- 
Q:  How did you get into artificial intelligence?
A:  Seemed logical -- I didn't have any real intelligence.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc


pgpf0qNPJ8sOg.pgp
Description: PGP signature


RE: [iText-questions] Problem with hidden fields

2006-02-09 Thread Udo Rader
Thanks, that solved it.

But does this mean that the addHiddenField is actually useless if one
wants to submit the form data?

Udo Rader

On Thu, 2006-02-09 at 15:51 +, Paulo Soares wrote:
> Use a hidden text field. 

-- 
bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at


signature.asc
Description: This is a digitally signed message part


[iText-questions] Using nested tables from xml interface

2006-02-09 Thread Javier Barletta
Hi,

I'm trying to use iText to convert xml files to pdf files. I have some 
experience with iText but using it from java code. Now, I don't get the same 
functionality by using XmlParser class. Concretely, I need to generate a form 
using nested tables. Am I wrong or iText is not a powerful tool to convert xml 
in pdf files by using nested tables?  

Thanks!

by

Javier.

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/252 - Release Date: 06/02/2006



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Text rotation in PdfPCell

2006-02-09 Thread Paulo Soares
 

> -Original Message-
> From: Gaet [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 09, 2006 3:15 PM
> To: Paulo Soares
> Subject: Re: [iText-questions] Text rotation in PdfPCell
> 
> Thanks!
>  
> But, from CVS, that means that I have to compile the source code no?

Yes.

> Do you have nighty build?
>  

No but you can use http://www.lowagie.com/iText/ant.html to do it for
you.

> With rotation directly in PdfPCell, can I have a vertical 
> text on two lines? because I don't managed do to it with the 
> templates...
>

You could do it with templates and can do it now, of course.
  
> Thanks
> 
>  
> 
>   - Original Message - 
>   From: Paulo Soares   
>   To: Gaet   ; 
> itext-questions@lists.sourceforge.net 
>   Sent: Thursday, February 09, 2006 4:00 PM
>   Subject: RE: [iText-questions] Text rotation in PdfPCell
> 
>   If you get iText from the CVS you'll find that rotated 
> text is supported
>   directly in PdfPCell. 
>   
>   > -Original Message-
>   > From: [EMAIL PROTECTED] 
>   > [mailto:[EMAIL PROTECTED] 
> On Behalf Of Gaet
>   > Sent: Thursday, February 09, 2006 2:44 PM
>   > To: itext-questions@lists.sourceforge.net
>   > Subject: Re: [iText-questions] Text rotation in PdfPCell
>   > 
>   > Sorry,
>   >  
>   > the anwser is here : 
>   > http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable
>   > /index.html#verticaltext
>   >  
>   > But it's not always easy to find the information among all 
>   > the information on iText website but at least it is 
> well documented!
>   >  
>   > Thanks
>   > 
>   
>   
>   ---
>   This SF.net email is sponsored by: Splunk Inc. Do you 
> grep through log files
>   for problems?  Stop!  Download the new AJAX search 
> engine that makes
>   searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
>   http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
>   ___
>   iText-questions mailing list
>   iText-questions@lists.sourceforge.net
>   https://lists.sourceforge.net/lists/listinfo/itext-questions
>   
> 
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] rowspan?

2006-02-09 Thread Paulo Soares
Nested tables. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Gaet
> Sent: Thursday, February 09, 2006 3:31 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] rowspan?
> 
> Hi,
>  
> Is there a way to do the rowspan behaviour in a table?  
> Because setColspan(int) is ok for column but what for rows ???
> 
> Cordialement, 
>  
> 
>   - Original Message - 
>   From: Gaet   
>   To: itext-questions@lists.sourceforge.net 
>   Sent: Thursday, February 09, 2006 3:44 PM
>   Subject: Re: [iText-questions] Text rotation in PdfPCell
> 
>   Sorry,
>
>   the anwser is here : 
> http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable
> /index.html#verticaltext
>
>   But it's not always easy to find the information among 
> all the information on iText website but at least it is well 
> documented!
>
>   Thanks
> 
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problem with hidden fields

2006-02-09 Thread Paulo Soares
Use a hidden text field. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Udo Rader
> Sent: Thursday, February 09, 2006 3:24 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Problem with hidden fields
> 
> Hi,
> 
> so here comes another problem I stumbled upon. After 
> inserting a hidden
> field, the data submitted does not contain any fields. Here's 
> again what
> I am doing:
> 
> --CUT--
> pdfWriter_.getAcroForm().addSingleLineTextField( 
>   "foo", 
>   "somevalue", 
>   base_font, 
>   text.getFontSize(), 
>   llx, 
>   lly, 
>   rux, 
>   ruy );
> 
> pdfWriter_.getAcroForm().addHiddenField( "bar", "nothing" );
> 
> pdfWriter_.getAcroForm().addHtmlPostButton( 
>   "sender" 
>   label,
>   null,
>   url,
>   base_font, 
>   text.getFontSize(), 
>   bllx, 
>   blly,
>   brux, 
>   brul );
> --CUT--
> 
> This way, the data transmitted doesn't contain neither
> the foo nor the bar value.
> 
> If I comment out the addHiddenField, the "foo" field data
> is transmitted.
> 
> So is this a bug or am I again missing something?
> 
> Thanks in advance
> 
> Udo Rader
> 
> -- 
> bestsolution.at EDV Systemhaus GmbH
> http://www.bestsolution.at
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] PdfStamperImp enhancements for keeping the integrity of the original PDF

2006-02-09 Thread Paulo Soares
Use PdfStamper.insertPage()

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Tenesi
> Sent: Thursday, February 09, 2006 3:15 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] PdfStamperImp enhancements for 
> keeping the integrity of the original PDF
> 
> 
> Thanks for the prompt good news.
> 
> Would you please let me know what is wrong with this snippet 
> and What would be the right approach to do it?
> 
> 
>  FileOutputStream os= new FileOutputStream("final.pdf"); // The target
>  com.lowagie.text.pdf.PdfReader baseR = new 
> com.lowagie.text.pdf.PdfReader("base.pdf"); // The base file 
>  com.lowagie.text.pdf.PdfStamper update = new 
> com.lowagie.text.pdf.PdfStamper(baseR, os, '\0',true); // An 
> stamper prepared for incremental changes
> 
>  com.lowagie.text.pdf.PdfWriter stamperImp 
> =update.getWriter(); // The corresponding writer of the appender
> 
> //XXX: Add new page?
> 
>  stamperImp.setPageEmpty(false);
>  stamperImp.newPage();
> 
> //Fetch the new page from the additions
>  com.lowagie.text.pdf.PdfReader reader2 = new 
> com.lowagie.text.pdf.PdfReader("additions.pdf");
>  com.lowagie.text.pdf.PdfImporte 
> dPage ipage= stamperImp.getImportedPage(reader2,1);
> 
> //XXX:Get the under layer to add the imprtedpage into the new 
> page in target? 
> // A getUnderContent(baseR.getNumberOfPages()+1) on the 
> PdfStamper itself will not help  as the  newPage is not 
> counted properly
> 
>  com.lowagie.text.pdf.PdfContentByte under = 
> stamperImp.getDirectContentUnder();
> 
> /*Add the page now this operation throws: 
> java.lang.NullPointerExceptionat 
> com.lowagie.text.pdf.PdfContentByte.addTemplate(PdfContentByte
> .java:1898)  under.addTemplate(ipage, 1, 0, 0, 1, 0, 0);*/
> 
> //commit the updates
>  update.close();
>  os.close();
> 
> Thanks again for your help in advance and best regards
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Parsing HTML and generate PDF - Table Problem

2006-02-09 Thread Fuhrmann, Michael
Title: Parsing HTML and generate PDF - Table Problem






Hi All,


I'm currently developing an application to generate PDF Files out of HTML - Sites.
Therefore I'm using the SaxMyHtmlHandler. The application works fine with 1 exception.

When I try to convert tables the resulting table looks completely different.

Now my question: Is it possible to change the convertion method e.g. by overwriting the class?

My main problem is that the first column of the generated table is much too large.

That's why I would like to trigger that event and set the width of the column by myself….

Apart from that I would also like to change the look of the table.


Thanks a lot

Michael





[iText-questions] rowspan?

2006-02-09 Thread Gaet



Hi,
 
Is there a way to do the rowspan behaviour in a 
table?  
Because setColspan(int) is ok for column but what for 
rows ???
Cordialement, 

 

  - Original Message - 
  From: 
  Gaet 
  To: itext-questions@lists.sourceforge.net 
  
  Sent: Thursday, February 09, 2006 3:44 
  PM
  Subject: Re: [iText-questions] Text 
  rotation in PdfPCell
  
  Sorry,
   
  the anwser is here : http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/index.html#verticaltext
   
  But it's not always easy to find the information 
  among all the information on iText website but at least it is well 
  documented!
   
  Thanks


[iText-questions] Problem with hidden fields

2006-02-09 Thread Udo Rader
Hi,

so here comes another problem I stumbled upon. After inserting a hidden
field, the data submitted does not contain any fields. Here's again what
I am doing:

--CUT--
pdfWriter_.getAcroForm().addSingleLineTextField( 
"foo", 
"somevalue", 
base_font, 
text.getFontSize(), 
llx, 
lly, 
rux, 
ruy );

pdfWriter_.getAcroForm().addHiddenField( "bar", "nothing" );

pdfWriter_.getAcroForm().addHtmlPostButton( 
"sender" 
label,
null,
url,
base_font, 
text.getFontSize(), 
bllx, 
blly,
brux, 
brul );
--CUT--

This way, the data transmitted doesn't contain neither
the foo nor the bar value.

If I comment out the addHiddenField, the "foo" field data
is transmitted.

So is this a bug or am I again missing something?

Thanks in advance

Udo Rader

-- 
bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at


signature.asc
Description: This is a digitally signed message part


Re: [iText-questions] PdfStamperImp enhancements for keeping the integrity of the original PDF

2006-02-09 Thread Tenesi
Thanks for the prompt good news.



Would you please let me know what is wrong with this snippet and What would be the right approach to do it?





 FileOutputStream os= new FileOutputStream("final.pdf"); // The target

 com.lowagie.text.pdf.PdfReader baseR = new com.lowagie.text.pdf.PdfReader("base.pdf"); // The base file 

 com.lowagie.text.pdf.PdfStamper update = new
com.lowagie.text.pdf.PdfStamper(baseR, os, '\0',true); // An stamper
prepared for incremental changes



 com.lowagie.text.pdf.PdfWriter stamperImp =update.getWriter(); // The corresponding writer of the appender



//XXX: Add new page?



 stamperImp.setPageEmpty(false);

 stamperImp.newPage();



//Fetch the new page from the additions

 com.lowagie.text.pdf.PdfReader reader2 = new com.lowagie.text.pdf.PdfReader("additions.pdf");

 com.lowagie.text.pdf.PdfImporte
dPage ipage= stamperImp.getImportedPage(reader2,1);

//XXX:Get the under layer to add the imprtedpage into the new page in target? 
// A getUnderContent(baseR.getNumberOfPages()+1) on the PdfStamper
itself will not help  as the  newPage is not counted properly

 com.lowagie.text.pdf.PdfContentByte under = stamperImp.getDirectContentUnder();

/*Add the page now this operation throws:
java.lang.NullPointerException   
at
com.lowagie.text.pdf.PdfContentByte.addTemplate(PdfContentByte.java:1898) 
under.addTemplate(ipage, 1, 0, 0, 1, 0, 0);*/

//commit the updates
 update.close();
 os.close();

Thanks again for your help in advance and best regards



RE: [iText-questions] Text rotation in PdfPCell

2006-02-09 Thread Paulo Soares
If you get iText from the CVS you'll find that rotated text is supported
directly in PdfPCell. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Gaet
> Sent: Thursday, February 09, 2006 2:44 PM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] Text rotation in PdfPCell
> 
> Sorry,
>  
> the anwser is here : 
> http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable
> /index.html#verticaltext
>  
> But it's not always easy to find the information among all 
> the information on iText website but at least it is well documented!
>  
> Thanks
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Text rotation in PdfPCell

2006-02-09 Thread Gaet



Sorry,
 
the anwser is here : http://itextdocs.lowagie.com/tutorial/objects/tables/pdfptable/index.html#verticaltext
 
But it's not always easy to find the information among 
all the information on iText website but at least it is well 
documented!
 
Thanks


[iText-questions] pre submit checks

2006-02-09 Thread Udo Rader





Hi, 

Somehow I am not able to make reasonable pre submit checks using itext.

What I want is to execute some arbitrary _javascript_ code before a form is
submitted.

Here's what I do:

--CUT---
PdfFormField button = new PdfFormField(pdfWriter_, llx, lly, rux,lux, null );

PdfAction submit = PdfAction.createSubmitForm(url, null, PdfAction.SUBMIT_XFDF );
PdfAction some_action = PdfAction._javascript_( "app.alert('hello');", pdfWriter_ );

button.setAction( submit );
button.setAdditionalActions( PdfName._javascript_, some_action );
--CUT---

This way, the form is actually submitted, but the alert never shows up.

Then I tried to reverse the order:
--CUT---
PdfFormField button = new PdfFormField(pdfWriter_, llx, lly, rux,lux, null );

PdfAction submit = PdfAction.createSubmitForm(url, null, PdfAction.SUBMIT_XFDF );
PdfAction some_action = PdfAction._javascript_( "app.alert('hello');", pdfWriter_ );

button.setAction( some_action );
button.setAdditionalActions( PdfName.SUBMITFORM, submit );
--CUT---

Now the alert shows up, but the form is not submitted.

So what's the correct way to implement this?

thanks

Udo Rader





-- 
bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at








signature.asc
Description: This is a digitally signed message part


Re: Re: [iText-questions] Parsing xml with polish character

2006-02-09 Thread saxenashyam
Hi Bruno,
 
I downloaded  the laest version from1.3.6 and set the basefont for customtaghandler but still its not working properly ,it will display some other special character in palace of desired one.
Thanks & Regards"Bruno Lowagie"<[EMAIL PROTECTED]> wrote:
saxenashyam wrote:>Hi Bruno,>>I tried to call setBaseFont() method in constructor but its not there,then I download latest itext.jar form site still setBaseFont() method is not there in class SAXiTextHandler .>In the jar I decomplie it but there is not method.>Did you download version 1.3.6?br,BrunoIndiatimes Email now powered by APIC Advantage. Help! Help<
 a!
 target="_blank" href="">


RE: [iText-questions] Default cell & ruler in table

2006-02-09 Thread Frank Fischer
Hi Paulo

Thanks for your answer.

> > I got a little bit confused after trying to work with
> > PdfTable.getDefaultCell(). First i can not find that method 
> > in the api docs
> 
> Maybe you should look in the PdfPTable class.


Good Lord, i just overread the P in PdfPTable I think i'm going to meet
my 


> > I would like to set a horizontal ruler between two table 
> > rows, something
> > like:
> > 
> > text in row 1
> > --
> > Text in row 2
> > 
> > How can this be done?
> > 
> 
> Have the top row have only a bottom border.

I just tried that, but there are two things i don't really like. First, the
line is too thick in relation to the Font size i'm using in the table
(HELVETICA, 8), even with setBorderWidth(1). The lines used to draw the
chars are much smaller so the rules looks too thick.
Second the line starts at the table borders without taking care of the cell
padding which doesn't really look smart. So i wonder if there is a way to
take these both aspects into account?

PdfPCell cell = new PdfPCell(new Paragraph(new Chunk("PSTN",
FontFactory.getFont(FontFactory.HELVETICA, 10;
  cell.setColspan(9);
  cell.setBorderWidth(1);
  cell.setBorder(com.lowagie.text.Rectangle.BOTTOM);
  cell.setBorderColorBottom(new Color(0x00, 0x00,
0x00));
  table.addCell(cell);

Thanks for your help.

- Frank




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Text rotation in PdfPCell

2006-02-09 Thread Gaet



Hi,
 
Is it possible to rotate a text of 90° degree in a 
PdfPCell?
if yes, how to?
 
Thanks


[iText-questions] Word and Charecter Spacing

2006-02-09 Thread M 501

Hello,

I try to generate a dynamic document where all heading should be printed 
with a certain font and color. This is no problem. I simply added a new Font 
using the BaseFont - class.


Now I also want to set the charakterand word spacing but I don't know how. 
Is it possible to simply set the word and charakter spacing for the font? Or 
can I set the spacing for the chunk?


Is this possible without using the DirectContentByte?

Greetings Peter




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread Leonard Rosenthol

At 04:39 AM 2/9/2006, A. S. Golub wrote:

I've already made routine that reads the set of basic "properties" from
annotation dictionary into special value-object, that is used for
re-creation of rough copy of annotation later.


Yes, it sounds like - at least for the simple stuff - you've 
got it handled.  The only area that isn't covered would be the case 
of an annotation (like a Stamp) where there is more than one stream 
that needs to be stored.




Now I'm solving an inverse problem : how to create PDF annotation using
pre-populated value-object (container of annotation properties) and iText
library.
This way worked for all simple properties, untill I've enocunered streams.
This type of data is a mixed type, and I was confused not knowing how to
handle this type of data.


Look at how setAppearance() works - that what it is doing, 
setting a stream.




You pointed out that I must go low level - and I did. After additional
examining of PDF Reference it seemed to me that I've found the right way of
setting the annotation appeearance, but before starting the implementation I
asked you to check my logic.


Yes, you are definitely on the right path!!


Leonard



---
Leonard Rosenthol
Chief Technical Officer  
PDF Sages, Inc.  215-938-7080 (voice)
 215-938-0880 (fax)



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] iText - PDF standard

2006-02-09 Thread Tan Dunlin

Hi Paulo,

Thanks for the information.

Will do some testing and will drop another mail if there is a need.

Thank you.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Paulo Soares wrote:

It can generate 1.2, 1.3, 1.4 and 1.5. This will all work in a 1.5/1.6
viewer.



-Original Message-
From: Tan Dunlin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 09, 2006 10:09 AM

To: Paulo Soares
Cc: Bruno Lowagie; itext-questions@lists.sourceforge.net; Dunlin
Subject: Re: [iText-questions] iText - PDF standard

Hi Paulo,

From what I understand, iText version 1.1 (paulo 132) 
produce the PDF 
that meet PDF standards 1.4.



Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Paulo Soares wrote:


The answer is any.

- Original Message - From: "Tan Dunlin" 


<[EMAIL PROTECTED]>


To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: "Bruno Lowagie" <[EMAIL PROTECTED]>; 
; "Dunlin" 


<[EMAIL PROTECTED]>


Sent: Thursday, February 09, 2006 8:27 AM
Subject: Re: [iText-questions] iText - PDF standard




Hi Paulo,

I am standing from consumer point of view, wondering if the PDF 
generated using iText will be able to meet PDF 1.5 / 1.6 standards.


If yes, which version of iText should be used?

Please advise.

Thanks.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd


Paulo Soares wrote:


You'll have to rephrase it better than that. That's a 


question for a 


consumer not a producer. What features from 1.5/1.6 do you need?

- Original Message - From: "Tan Dunlin" 


<[EMAIL PROTECTED]>


To: "Bruno Lowagie" <[EMAIL PROTECTED]>
Cc: ; "Dunlin" 
<[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 12:52 AM
Subject: Re: [iText-questions] iText - PDF standard




Hi Bruno,

Let me rephrase it.

Which version of iText will be able to support PDF 


standard 1.5 / 1.6?


Hope to hear from you soon.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Bruno Lowagie wrote:



Tan Dunlin wrote:



Hi Bruno,

Thanks for your reply.

Any of the iText produce PDF 1.5 / 1.6 standards?





These are some features that were added to PDF 1.5 or 1.6:
- Optional Content Groups
- changing the user unit
- some viewer preferences
- ...
br,
Bruno




---
This SF.net email is sponsored by: Splunk Inc. Do you 


grep through 


log files
for problems?  Stop!  Download the new AJAX search 


engine that makes

searching your log files as easy as surfing the  web.  


DOWNLOAD SPLUNK!

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
dat=121642 


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions








---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] PdfStamperImp enhancements for keeping the integrity of the original PDF

2006-02-09 Thread Paulo Soares
That's already possible with PdfStamper. 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Tenesi
> Sent: Thursday, February 09, 2006 11:14 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] PdfStamperImp enhancements for 
> keeping the integrity of the original PDF
> 
> Hello everybody,
> 
> My aim is to add one page from a Pdf to  another Pdf without 
> touching its previous content (incremental update). For that 
> the Catalog, Pages tree and some other objects should be 
> updated into new xref-ref table for sure. The idea is not to 
> touch the previosu structure (PdfCopy or PdfCopyFields are 
> not approperiate) because it might have been signed and we 
> don't want to invalidated the byteranges.
> 
> Q1: Is this a right assumption or it can be done with the 
> current library without changes?
> 
> 
> Reading the documentation and looking into the source codes 
> of PdfStamper, PdfStamperImp and PdfContentByte, It seems 
> some refactoring is needed to overcome the restrictions to be 
> able to do this. I tried to use the followin code at the user 
> application level:
> 
> 
>  com.lowagie.text.pdf.PdfReader pr = new 
> com.lowagie.text.pdf.PdfReader("originalfiletobe updated.pdf"); 
>  com.lowagie.text.pdf.PdfStamper update = new 
> com.lowagie.text.pdf.PdfStamper(pr, os, '\0',true);
> 
>  com.lowagie.text.pdf.PdfReader reader2 = new 
> com.lowagie.text.pdf.PdfReader(baos.toByteArray());
>  com.lowagie.text.pdf.PdfStamperImp stamperImp 
> =(com.lowagie.text.pdf.PdfStamperImp)update.getWriter();
>  
> stamperImp.newPage();
> com.lowagie.text.pdf.PdfContentByte directContent = 
> update.getWriter().getDirectContent();
> directContent.reset();
> com.lowagie.text.pdf.PdfImportedPage ipage= 
> update.getImportedPage(reader2,1);
> directContent.addTemplate(ipage, 1, 0, 0, 1, 0, 
> 0,stamperImp.getPageStamp(pr.getNumberOfPages()));
> update.close();
> 
> 
> It obviously will not work as the way StamperImp initializes 
> and keeps track of its pageResources is not the way the 
> PdfContentByte is designed to follow (It rather awaits this 
> info be encapsulated in a PdfDocument instance)
> 
> 
> Q2: Does the code  suffer an understanding problem or it 
> might had made sense, provided that the pageResources were 
> set properly? Is there a work around for this or anybody know 
> of a possibility to overcome this problem?
> 
> 
> Q3: What would you suggest to do to achieve this goal of 
> "ADDING" a page (or some other extra info which needs  
> updating  previous objects in the pdf document (Catalog/ 
> Pages ...) ) to a Pdf deploying the incremental update 
> possibilty provided in PDF-Specifications?
> 
> 
> Tnx
> Tenesi
> 
> -- 
> 
> 
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] PdfStamperImp enhancements for keeping the integrity of the original PDF

2006-02-09 Thread Tenesi
Hello everybody,

My aim is to add one page from a Pdf to  another Pdf without
touching its previous content (incremental update). For that the
Catalog, Pages tree and some other objects should be updated into new
xref-ref table for sure. The idea is not to touch the previosu
structure (PdfCopy or PdfCopyFields are not approperiate) because it
might have been signed and we don't want to invalidated the byteranges.

Q1: Is this a right assumption or it can be done with the current library without changes?


Reading the documentation and looking into the source codes of
PdfStamper, PdfStamperImp and PdfContentByte, It seems some refactoring
is needed to overcome the restrictions to be able to do this. I tried
to use the followin code at the user application level:


 com.lowagie.text.pdf.PdfReader pr = new com.lowagie.text.pdf.PdfReader("originalfiletobe updated.pdf"); 
 com.lowagie.text.pdf.PdfStamper update = new com.lowagie.text.pdf.PdfStamper(pr, os, '\0',true);
     
 com.lowagie.text.pdf.PdfReader reader2 = new com.lowagie.text.pdf.PdfReader(baos.toByteArray());
 com.lowagie.text.pdf.PdfStamperImp stamperImp =(com.lowagie.text.pdf.PdfStamperImp)update.getWriter();
 
stamperImp.newPage();
com.lowagie.text.pdf.PdfContentByte directContent = update.getWriter().getDirectContent();
directContent.reset();
com.lowagie.text.pdf.PdfImportedPage ipage= update.getImportedPage(reader2,1);
directContent.addTemplate(ipage, 1, 0, 0, 1, 0, 0,stamperImp.getPageStamp(pr.getNumberOfPages()));
update.close();


It obviously will not work as the way StamperImp initializes and keeps
track of its pageResources is not the way the PdfContentByte is
designed to follow (It rather awaits this info be encapsulated in a
PdfDocument instance)


Q2: Does the code  suffer
an understanding problem or it might had made sense, provided that the
pageResources were set properly? Is there a work around for this or
anybody know of a possibility to overcome this problem?


Q3: What would you suggest to
do to achieve this goal of "ADDING" a page (or some other extra info
which needs  updating  previous objects in the pdf document
(Catalog/ Pages ...) ) to a Pdf deploying the incremental update
possibilty provided in PDF-Specifications?

Tnx
Tenesi
-- 


[iText-questions] Newbie questions

2006-02-09 Thread Gaet



Hi,
 
I've read most of the docs but I still have some 
  simple questions that some of you may answer...
I'm using iText in order to generat only 
PDF...
 
Is it possible to define a table with variables 
  cell width (without using cell.setColspan() method)
 
I've seen in the doc that when a table reach the 
  end of the page it is automatically split and continue on the other page. Nice 
  but however is there a way to repeat the header of the column at the beginning 
  of the new page?
 
Thanks for your help
 
Gaet'


[iText-questions] BarcodePDF417 question

2006-02-09 Thread Ricardo Borillo Domenech
Hi all!!

I'm new to iText and I'm trying to produce GIF/JPG output images from a
BarcodePDF417 (Macro PDF 417). 

Here's my source code:

First pdf417_0 = new BarcodePDF417();
String text_0 = "text in the barcode";

pdf417_0.setMacroFileId("00");
pdf417_0.setMacroSegmentCount(2);
pdf417_0.setMacroSegmentId(0);
pdf417_0.setText(text_0);
pdf417_0.paintCode();


And here are my questions :)

1. What's the function of setMacroFileId("00") ?
2. After this code, i retrieve a byte[] representing the barcode:

   pdf417_0.getOutBits()

   What's the format of this information? It's an image? 
   How can i produce a GIF/JPG?


Thanks in advance 

-- 
Salut,

Ricardo Borillo Domenech
Analista/Programador - Servei d'Informàtica
Universitat Jaume I
http://xml-utils.com


smime.p7s
Description: S/MIME cryptographic signature


RE: [iText-questions] Default cell & ruler in table

2006-02-09 Thread Paulo Soares
 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Frank Fischer
> Sent: Thursday, February 09, 2006 9:53 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Default cell & ruler in table
> 
> Hi all
> 
> I have two questions regarding itext.
> 
> I got a little bit confused after trying to work with
> PdfTable.getDefaultCell(). First i can not find that method 
> in the api docs

Maybe you should look in the PdfPTable class.

> (but it compiles, so it's there). Second, it does not work as 
> i expected. I
> expected that when setting attributes via getDefaultCell() 
> this attributes
> would be taken for any cell in the table, unless a particular 
> attribute of a
> particular cell is manually overwritten (by setting that 
> attribute using the
> cell's setter-method). 
> But it seems, that, whenever i create a new cell, the settings of the
> default cell are not used but instead some other (api) 
> default values are
> used. Is that right? So this would mean, that i would have to set all
> default cell params if i only want to change one param on a 
> particular cell?
> 

That's explained in the PdfPTable.getDefaultCell() javadoc.

> I would like to set a horizontal ruler between two table 
> rows, something
> like:
> 
> text in row 1
> --
> Text in row 2
> 
> How can this be done?
> 

Have the top row have only a bottom border.

> 
> Thanks a lot for your help!
> 
> - Frank


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] iText - PDF standard

2006-02-09 Thread Paulo Soares
It can generate 1.2, 1.3, 1.4 and 1.5. This will all work in a 1.5/1.6
viewer.

> -Original Message-
> From: Tan Dunlin [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 09, 2006 10:09 AM
> To: Paulo Soares
> Cc: Bruno Lowagie; itext-questions@lists.sourceforge.net; Dunlin
> Subject: Re: [iText-questions] iText - PDF standard
> 
> Hi Paulo,
> 
>  From what I understand, iText version 1.1 (paulo 132) 
> produce the PDF 
> that meet PDF standards 1.4.
> 
> 
> Regards,
> 
> Tan Dunlin
> Elixir Report Support
> Elixir Technology Pte Ltd
> 
> 
> 
> Paulo Soares wrote:
> > The answer is any.
> > 
> > - Original Message - From: "Tan Dunlin" 
> <[EMAIL PROTECTED]>
> > To: "Paulo Soares" <[EMAIL PROTECTED]>
> > Cc: "Bruno Lowagie" <[EMAIL PROTECTED]>; 
> > ; "Dunlin" 
> <[EMAIL PROTECTED]>
> > Sent: Thursday, February 09, 2006 8:27 AM
> > Subject: Re: [iText-questions] iText - PDF standard
> > 
> > 
> >> Hi Paulo,
> >>
> >> I am standing from consumer point of view, wondering if the PDF 
> >> generated using iText will be able to meet PDF 1.5 / 1.6 standards.
> >>
> >> If yes, which version of iText should be used?
> >>
> >> Please advise.
> >>
> >> Thanks.
> >>
> >>
> >> Regards,
> >>
> >> Tan Dunlin
> >> Elixir Report Support
> >> Elixir Technology Pte Ltd
> >>
> >>
> >> Paulo Soares wrote:
> >>
> >>> You'll have to rephrase it better than that. That's a 
> question for a 
> >>> consumer not a producer. What features from 1.5/1.6 do you need?
> >>>
> >>> - Original Message - From: "Tan Dunlin" 
> <[EMAIL PROTECTED]>
> >>> To: "Bruno Lowagie" <[EMAIL PROTECTED]>
> >>> Cc: ; "Dunlin" 
> >>> <[EMAIL PROTECTED]>
> >>> Sent: Thursday, February 09, 2006 12:52 AM
> >>> Subject: Re: [iText-questions] iText - PDF standard
> >>>
> >>>
>  Hi Bruno,
> 
>  Let me rephrase it.
> 
>  Which version of iText will be able to support PDF 
> standard 1.5 / 1.6?
> 
>  Hope to hear from you soon.
> 
> 
>  Regards,
> 
>  Tan Dunlin
>  Elixir Report Support
>  Elixir Technology Pte Ltd
> 
> 
> 
>  Bruno Lowagie wrote:
> 
> > Tan Dunlin wrote:
> >
> >> Hi Bruno,
> >>
> >> Thanks for your reply.
> >>
> >> Any of the iText produce PDF 1.5 / 1.6 standards?
> >
> >
> >
> >
> > These are some features that were added to PDF 1.5 or 1.6:
> > - Optional Content Groups
> > - changing the user unit
> > - some viewer preferences
> > - ...
> > br,
> > Bruno
> >
> 
> 
>  ---
>  This SF.net email is sponsored by: Splunk Inc. Do you 
> grep through 
>  log files
>  for problems?  Stop!  Download the new AJAX search 
> engine that makes
>  searching your log files as easy as surfing the  web.  
> DOWNLOAD SPLUNK!
>  
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
> dat=121642 
> 
>  ___
>  iText-questions mailing list
>  iText-questions@lists.sourceforge.net
>  https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>
> >>>
> > 
> 


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] iText - PDF standard

2006-02-09 Thread Tan Dunlin

Hi Paulo,

From what I understand, iText version 1.1 (paulo 132) produce the PDF 
that meet PDF standards 1.4.



Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Paulo Soares wrote:

The answer is any.

- Original Message - From: "Tan Dunlin" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: "Bruno Lowagie" <[EMAIL PROTECTED]>; 
; "Dunlin" <[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 8:27 AM
Subject: Re: [iText-questions] iText - PDF standard



Hi Paulo,

I am standing from consumer point of view, wondering if the PDF 
generated using iText will be able to meet PDF 1.5 / 1.6 standards.


If yes, which version of iText should be used?

Please advise.

Thanks.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd


Paulo Soares wrote:

You'll have to rephrase it better than that. That's a question for a 
consumer not a producer. What features from 1.5/1.6 do you need?


- Original Message - From: "Tan Dunlin" <[EMAIL PROTECTED]>
To: "Bruno Lowagie" <[EMAIL PROTECTED]>
Cc: ; "Dunlin" 
<[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 12:52 AM
Subject: Re: [iText-questions] iText - PDF standard



Hi Bruno,

Let me rephrase it.

Which version of iText will be able to support PDF standard 1.5 / 1.6?

Hope to hear from you soon.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Bruno Lowagie wrote:


Tan Dunlin wrote:


Hi Bruno,

Thanks for your reply.

Any of the iText produce PDF 1.5 / 1.6 standards?





These are some features that were added to PDF 1.5 or 1.6:
- Optional Content Groups
- changing the user unit
- some viewer preferences
- ...
br,
Bruno




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through 
log files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions








---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Default cell & ruler in table

2006-02-09 Thread Frank Fischer
Hi all

I have two questions regarding itext.

I got a little bit confused after trying to work with
PdfTable.getDefaultCell(). First i can not find that method in the api docs
(but it compiles, so it's there). Second, it does not work as i expected. I
expected that when setting attributes via getDefaultCell() this attributes
would be taken for any cell in the table, unless a particular attribute of a
particular cell is manually overwritten (by setting that attribute using the
cell's setter-method). 
But it seems, that, whenever i create a new cell, the settings of the
default cell are not used but instead some other (api) default values are
used. Is that right? So this would mean, that i would have to set all
default cell params if i only want to change one param on a particular cell?

I would like to set a horizontal ruler between two table rows, something
like:

text in row 1
--
Text in row 2

How can this be done?


Thanks a lot for your help!

- Frank




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Retrieving of the content of stream objects

2006-02-09 Thread A. S. Golub
Yes, I have read the PDF Reference 1.6 and regularly re-reading its chapter
8.4 called "Annotations" :). That is why I'm asking you in such details.
Cannot say that 1236 pages of the reference gave me much enthusiasm, but...
 
I've already made routine that reads the set of basic "properties" from
annotation dictionary into special value-object, that is used for
re-creation of rough copy of annotation later. These basic properties are of
simple types : integers, floats, arrays of integers/floats, names, strings.
Properties of the reference type, which aren't interesting for me for a
while for recreation purposes, I represent (for simplicity sake) as
references in their string form "{number} {generation} R". Properties of
dictionary type are a little bit more complex, but when they consist of the
simple types (or insignificant references), they are easy to be read too.
Everything is stored just fine in my value-object.
And then I encountered property that is of content stream type. I didn't
know how to retrieve data from such property, therefore I've asked you for
the help (a little bit hasty - before your reply I've found the proper
means). Now I know how to extract data from content steams.

Now I'm solving an inverse problem : how to create PDF annotation using
pre-populated value-object (container of annotation properties) and iText
library. When I started to use iText library, I expected that library will
provide necessary simple classes which allow to create blank template for
arbitrary annotation object and then populate this template by required data
in "field by field" way using appropriate setters. When annotations were of
simple type, it worked. But then I've encountered the caret annotations.
Such type of annotations wasn't present in the list of creation methods, and
I started to find workarounds to solve this problem. Reading the mailing
list I
found out that I can solve this problem by considering my PdfAnnotation as
PdfDictionary and to create caret annotation from, say, text annotation by
changing property responsible for annotation type using PdfDictionary's
put(PdfName.SUBTYPE, new PdfName("Caret")) method call.

This way worked for all simple properties, untill I've enocunered streams.
This type of data is a mixed type, and I was confused not knowing how to
handle this type of data. Moreover, I was confused by PdfAnnotation's
instance method setAppearance() - I thought that if class has such setter
method for appearance, then some class should be able to create appearance
using appearance-specific methods. But I couldn't find such methods and
asked for help.

You pointed out that I must go low level - and I did. After additional
examining of PDF Reference it seemed to me that I've found the right way of
setting the annotation appeearance, but before starting the implementation I
asked you to check my logic.

And now, knowing all history, could you say, am I on the right way in
setting annotation appearance as dictionary of PdfStream objects ?

I checked Paulo's suggestion to look into the FdfWriter's and
PdfStamperImp's code, but unfortunately I couldn't manage to find the hint
for solving my problem.

Sorry for the long letter - I wanted to describe the situation as detailed
as possible.



> You are trying to save & restore annotations, in their
> entirety, correct?   As such, you need to first write a routine that
> will serialize the annotation into a form that will maintain all the
necessary
> information for recovery/restoration later on.  So start with that.
> Once you have figure out what you need to store and how - 
> then you should have a MUCH better understanding of how to put it all
> back together (restore).
> If you haven't already, you REALLY need to read the PDF Reference
concerning annotations...

>Leonard



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] iText - PDF standard

2006-02-09 Thread Tan Dunlin

Hi Paulo,

I am standing from consumer point of view, wondering if the PDF 
generated using iText will be able to meet PDF 1.5 / 1.6 standards.


If yes, which version of iText should be used?

Please advise.

Thanks.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd


Paulo Soares wrote:
You'll have to rephrase it better than that. That's a question for a 
consumer not a producer. What features from 1.5/1.6 do you need?


- Original Message - From: "Tan Dunlin" <[EMAIL PROTECTED]>
To: "Bruno Lowagie" <[EMAIL PROTECTED]>
Cc: ; "Dunlin" 
<[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 12:52 AM
Subject: Re: [iText-questions] iText - PDF standard



Hi Bruno,

Let me rephrase it.

Which version of iText will be able to support PDF standard 1.5 / 1.6?

Hope to hear from you soon.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Bruno Lowagie wrote:


Tan Dunlin wrote:


Hi Bruno,

Thanks for your reply.

Any of the iText produce PDF 1.5 / 1.6 standards?




These are some features that were added to PDF 1.5 or 1.6:
- Optional Content Groups
- changing the user unit
- some viewer preferences
- ...
br,
Bruno




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions 






---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] iText - PDF standard

2006-02-09 Thread Paulo Soares

The answer is any.

- Original Message - 
From: "Tan Dunlin" <[EMAIL PROTECTED]>

To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: "Bruno Lowagie" <[EMAIL PROTECTED]>; 
; "Dunlin" <[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 8:27 AM
Subject: Re: [iText-questions] iText - PDF standard



Hi Paulo,

I am standing from consumer point of view, wondering if the PDF generated 
using iText will be able to meet PDF 1.5 / 1.6 standards.


If yes, which version of iText should be used?

Please advise.

Thanks.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd


Paulo Soares wrote:
You'll have to rephrase it better than that. That's a question for a 
consumer not a producer. What features from 1.5/1.6 do you need?


- Original Message - From: "Tan Dunlin" <[EMAIL PROTECTED]>
To: "Bruno Lowagie" <[EMAIL PROTECTED]>
Cc: ; "Dunlin" 
<[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 12:52 AM
Subject: Re: [iText-questions] iText - PDF standard



Hi Bruno,

Let me rephrase it.

Which version of iText will be able to support PDF standard 1.5 / 1.6?

Hope to hear from you soon.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Bruno Lowagie wrote:


Tan Dunlin wrote:


Hi Bruno,

Thanks for your reply.

Any of the iText produce PDF 1.5 / 1.6 standards?




These are some features that were added to PDF 1.5 or 1.6:
- Optional Content Groups
- changing the user unit
- some viewer preferences
- ...
br,
Bruno




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions





---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] iText - PDF standard

2006-02-09 Thread Paulo Soares
You'll have to rephrase it better than that. That's a question for a 
consumer not a producer. What features from 1.5/1.6 do you need?


- Original Message - 
From: "Tan Dunlin" <[EMAIL PROTECTED]>

To: "Bruno Lowagie" <[EMAIL PROTECTED]>
Cc: ; "Dunlin" 
<[EMAIL PROTECTED]>

Sent: Thursday, February 09, 2006 12:52 AM
Subject: Re: [iText-questions] iText - PDF standard



Hi Bruno,

Let me rephrase it.

Which version of iText will be able to support PDF standard 1.5 / 1.6?

Hope to hear from you soon.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Bruno Lowagie wrote:

Tan Dunlin wrote:


Hi Bruno,

Thanks for your reply.

Any of the iText produce PDF 1.5 / 1.6 standards?



These are some features that were added to PDF 1.5 or 1.6:
- Optional Content Groups
- changing the user unit
- some viewer preferences
- ...
br,
Bruno




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log 
files

for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions 




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] How to retrieve the action uri of a push button

2006-02-09 Thread Paulo Soares
Go to http://partners.adobe.com/public/developer/pdf/index_reference.html 
and read the pdf reference about xfa in pdf. Then go to 
http://partners.adobe.com/public/developer/xml/index_arch.html for the 
actual xfa syntax.


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

To: 
Sent: Thursday, February 09, 2006 4:20 AM
Subject: Re: [iText-questions] How to retrieve the action uri of a push 
button




Can anyone give me the code for the same if you used this before?
Atleast give me some suggestions on how to proceed.
Also I want to know how to find the the difference between a push button
and HttpSubmit button field programatically.
Please help me out.
Thanks in advance,
Udaybhaskar.

Paulo Soares wrote:


That form was created in Designer and you'll need to parse the XFA to
get the uri.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of udaybhaskar
Sent: Wednesday, February 08, 2006 3:52 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] How to retrieve the action uri of
a push button

Dear all,
I am writing a program in java.
I need to retrieve the action uri of a push button in a pdf form.
I am struggling with this for the past 2 days.
Please suggest me a way to do this.
I am attaching the pdf form for your convenience.
The name of the field is form1[0].#subform[0].HTTPSubmitButton1[0]

--
Regards,
Venkata Udaybhaskar





---
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&;
dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions















---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] iText - PDF standard

2006-02-09 Thread Tan Dunlin

Hi Bruno,

Let me rephrase it.

Which version of iText will be able to support PDF standard 1.5 / 1.6?

Hope to hear from you soon.


Regards,

Tan Dunlin
Elixir Report Support
Elixir Technology Pte Ltd



Bruno Lowagie wrote:

Tan Dunlin wrote:


Hi Bruno,

Thanks for your reply.

Any of the iText produce PDF 1.5 / 1.6 standards? 



These are some features that were added to PDF 1.5 or 1.6:
- Optional Content Groups
- changing the user unit
- some viewer preferences
- ...
br,
Bruno




---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions