[iText-questions] Ignore this

2004-01-15 Thread Bill Ensley
Sorry all, just testing to see if I set up my subscription right


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] Imposition Framework for iText

2004-01-19 Thread Bill Ensley
Bruno, Paulo et al:

Many compliments on your fantastic PDF Library, I have been using it
in-house
for several years and find it very easy to use as well as extend.

I developed many extended projects and frameworks for my own use that I
would like
to give back to the project.

One such project is a Layout Framework that uses your PDFGraphics class
to allow multiple up impositions of graphics designs.

You create your Layout and Graphics Design classes, pass them to the
Framework
and it does the work.

This is particularly well-suited to the Printing industry.
Much of my work that comes in comes as PDF files that I have the need to
impose.
Using this framework, I can simply and easily impose as needed.

This project also includes an Image Thumbnail program that lets
you choose your rows/columns and create a convenient PDF Proof Sheet to add
to that always growing collection of Digital Photographs.

My Question for you: Is this something that you would like to add
to iText?

If so, let me know, I will gladly give back to this great project.

Bill Ensley
Bear Printing



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] PDF file size too large while printing??

2004-01-21 Thread Bill Ensley



Prints fine, 
I agree, make sure "print as image" is not 
checked


[iText-questions] How to list the fonts used inside a PDF document with PDFReader?

2004-01-22 Thread Bill Ensley



I don't think that PDFReader can list the 
fonts for you
as I understand it, it just extracts the 
bytes for each page
and lets you re-purpose them.

There are no "Font Objects" that the 
PDFReader can access.




[iText-questions] using Servlet Output Stream in weblogic 7.1

2004-01-22 Thread Bill Ensley



You may need to set the ContentType = 
"Application/PDF"

Hope this helps
Bill Ensley


[iText-questions] Line Screen Frequency

2004-01-22 Thread Bill Ensley



Does anyone have any ideas on how to 
impliment an embedded Line Screen Frequency into a PDF using iText?

Thanks
Bill Ensley


[iText-questions] Updated information for IE multiple request problem

2004-02-13 Thread Bill Ensley



Hi all,

IE problem with the server getting multiple 
requests for a dynamically generated PDF:

The problem does not happen when a parent 
FRAME calls the PDF on a child FRAME ie:

Parent Frame calls:

parent.document.childFrame.document.location 
= 'getRequestForPDFServlet'; etc...

Hope this helps anyone.
Bill Ensley


[iText-questions] Re-Post: Line-Screen

2004-02-27 Thread Bill Ensley



Does anyone have any thoughts on 
embedding a default line-screen in a PDF with iText
I know 
it's possible to embed this in a pdf, and would be glad to start coding it, 
but
does anyone know where it gets written in the 
pdf?


[iText-questions] RE: Line-Screen

2004-02-27 Thread Bill Ensley



A 
Line-Screenisusedintheprintingindustry.
It describes how many lines per inch a dot-screen is 
rendered.
This applies to half-toning both on laser-printers and 
offset-presses.

For 
example:
a 
newspaper may use a 65 line screen 
a 
high speed press like a Heidelberg may use a 150 line 
screen.

most 
laser-printers use a 87.6, or a 106.7 line screen.

This 
setting is a carry-over from Post-Script, but I know that 
when
you use Acrobat Distiller to distill a 
postscript file that has an embedded Line-Screen,
it 
also get's embedded in the PDF.

The 
functionality is there, but the question is where.

Thanks Paulo, 

Bill 
Ensley
Bear 
Printing



RE: [iText-questions] Re-Post: Line-Screen

2004-03-01 Thread Bill Ensley



IBegtodiffer!

Please refer to Adobe PDF Reference 
Guide
Line-Screens 
and Halftones area HUGE part of PDF.

If this 
library is going to be the best, and I think it can be
(I'll gladly 
help), it should include this feature.

I realize 
that this library what not written with the Printing Industry in 
mind,
But so then, 
neither was PDF in the first place.

Adobe 
realized later the HUGE scope of what PDF means to us and 
added
everything 
needed to the specification.

Halftoning 
goes back to the very beginning of PDF.
The 
reference guide even has several exellent examples.

Please let 
me know where I would add code to implement this 
functionallity.

Thank 
you
Bill 
Ensely
Bear 
Printing




[iText-questions] RE: Line-Screens

2004-03-01 Thread Bill Ensley



PDF Reference Guide Version 1.5 Page 
446
HALFTONES


RE: [iText-questions] iText question

2004-03-01 Thread Bill Ensley



You'll 
likely get a rather vague answer from the iText team on this one, 

I'll 
try to help.

PDF 
Files are Vector and Image by default.

A 
vector file is a scaleable file ie Adobe illustrator, Corel Draw, 
Freehand;
it 
uses points to create a 2-dimensional shape so there is no set 
DPI.
it can 
be rendered at any DPI.

An 
image file is called a raster. it contains pixels set in a widthby 
height configuration.
An 
imagehas a dpi.
for 
example, if you have a 10 pixel by 10 pixel image,

* * *  * * 
* * * * *
* * *  
* * * * * 
* *
* 
* *  * * * * 
* * *
* * *  * 
* * * * * 
*
* 
* *  * * * * 
* * 
*
* * *  * 
* * * * * 
*
* 
* *  * * * * 
* * 
*
* * *  * 
* * * * * 
*
* 
* *  * * * * 
* * 
*
* * *  * 
* * * * * 
*

you can render this image at 1 inch by 1 
inch
and it would then be 
10dpi.

if you rendered it at .5 inch by .5 
inch
it would be 
20dpi


if you rendered it 
at2 inches by2 
inches
it would be 
5dpi

Does this make 
sense?

When using iText, you 
need to resample your 
images
to be the finished dpi 
you want them to be at the 

size you are putting it 
into 
iText.

for example, if you 
wanted a 300 dpi image in a 3 x 4 inch box in 
iText
your image would need to 
be 900 x 1200 
pixels.


If you have any other 
questions, I will try to give you a straight 
answer.

Thanks, Bill 
Ensley
Bear 
Printing

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Brian 
  TimmerSent: Friday, February 27, 2004 3:56 PMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] 
  iText question
  What DPI does the resulting PDF file use? Is it 
  different between iTextSharp and iText? I'm actually using 
  iTextSharp.
  
  Thanks,
  Brian TimmerYeti Software, LLCwww.yetisoftware.com


RE: [iText-questions] Re-Post: Line-Screen

2004-03-01 Thread Bill Ensley



I'm 
afraid you are not understanding what a Halftone is.

I have 
been involved in printing for over 20 years
I use 
almost a complete PDF workflow in my shop.

You 
can set a default Halftone in a PDF, 
we do 
it all the time from every program that creates PDFs that we 
use.

This 
is not about a Spot Function on objects, i'm not even sure what that 
means

When 
you print a PDF on a halftone device, be it a Laser-Printer or an Image-Setter 
that creates film for Press
you 
need a Line-Screen.

The 
output-device can set the screen, or it can use the embedded one in the 
PDF.

Just 
look at the print dialog for Adobe Acrobat!

It has 
a check box even Titled "Use Device Halftones" if this is unchecked, the 
device
will 
use the embedded halftone information.

Below 
is code directly out of the PDf Reference


28 0 obj
  /Type 
/Halftone
 
/HalftoneType 1
 
/Frequency 120
 
/Angle 30
 
/SpotFunction /CosineDot
 
/TransferFunction /Identity
 

endobj
Thank you 

Bill 
Ensley
P.S. As 
for the most folks that don't need/care about it, that's just 
naive

  -Original Message-From: Leonard Rosenthol 
  [mailto:[EMAIL PROTECTED]Sent: Monday, March 01, 2004 10:34 
  AMTo: Bill Ensley; iText Mail GroupSubject: RE: 
  [iText-questions] Re-Post: Line-ScreenAt 12:52 PM 
  3/1/2004, Bill Ensley wrote:
  Please refer to Adobe PDF 
Reference GuideLine-Screens and Halftones are a HUGE part of 
  PDF.I 
  assume you are referring to the spot function which can be used to produce a 
  line-screen LIKE result for certain object types, yes?? If so, then yes, 
  I guess you could call it that - but it's not a full  complete "line 
  screen" as needed in some printing processes. That's why folks who 
  are that anal about printing control will rasterize FIRST, then adjust the 
  raster to match the screen, and then print the raster image.
  If this library is going to be 
the best, and I think it can be(I'll gladly help), it should include 
this 
  feature.Sure, 
  supporting spot functions as part of the creation for spot colors seems like a 
  nice addition - you will need to it for all uses of spot (both raster  
  vector). However, honestly, most folks don't need/care about it. 
  You'll find very few PDFs (for print) that actually have 
  them.Leonard 
  ---
  Leonard 
  Rosenthol 
  mailto:[EMAIL PROTECTED]
  Chief Technical 
  Officer 
  http://www.pdfsages.com
  PDF Sages, 
  Inc. 
  215-629-3700 (voice)
   
  215-629-0789 (fax)


RE: [iText-questions] PS to PDF

2004-03-02 Thread Bill Ensley
Leonard,

I have a copy of ToastScript, but it does not contain any licensing
information.

Do you think I can pass it on to iText users?

Thanks
Bill Ensley

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Leonard
Rosenthol
Sent: Tuesday, March 02, 2004 6:41 AM
To: Janis Kruse; [EMAIL PROTECTED]
Subject: Re: [iText-questions] PS to PDF


At 05:09 PM 3/1/2004, Janis Kruse wrote:
is there an example or tutorial how to convert Postscript Files to PDF
using iText? My Boss used to do this via Ghostscript but now he wants to
do it Java...

 You can check out PSServices from Apago (http://www.apago.com),
which offers a Java interface to PS  PDF rasterization and conversion
services.

 There used to be a product called ToastScript, but it seems to
have disappeared :(.


Leonard

---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-629-3700 (voice)
  215-629-0789 (fax)



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Information for all!

2004-03-03 Thread Bill Ensley
sorry,

And TIFF


-Original Message-
From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 9:25 AM
To: Bill Ensley; iText Mail Group
Subject: Re: [iText-questions] Information for all!


At 12:05 PM 3/3/2004, Bill Ensley wrote:
iText only support direct importing of a few image formats
WMF
JPG
PNG
GIF

 And TIFF


LDR

---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-629-3700 (voice)
  215-629-0789 (fax)



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Can i convert PDF created with ITEXT to TIFF too

2004-03-12 Thread Bill Ensley
Title: Message



Do you 
want to create a TIFF from the PDF or from the same data as the PDF is created 
with?

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Philippe CouasSent: Friday, March 12, 2004 1:05 
  AMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] Can i convert PDF created with ITEXT to TIFF 
  too
  Hi,
  
  Can i create a 
  TIFF file with a PDF create with ITEXT.
  I want in same 
  application create a PDF file for my mail server and a TIFF file too for my 
  FAX server on AIX 4.3.3 ?
  
  Regards
  Philippe
  
  


RE: TR : [iText-questions] Can i convert PDF created with ITEXT to TIFF too

2004-03-12 Thread Bill Ensley
Title: Message



Then 
no, iText will not work, I have had success however using 
JPedal

  -Original Message-From: Philippe Couas 
  [mailto:[EMAIL PROTECTED]Sent: Friday, March 12, 2004 8:53 
  AMTo: [EMAIL PROTECTED]Subject: TR : 
  [iText-questions] Can i convert PDF created with ITEXT to TIFF 
  too
  I 
  prefere USE PDF, because my PDF is a result of two prévious 
  PDF.
  
  Regards,
  Philippe
  
  
  -Message d'origine-De: Bill Ensley 
  [mailto:[EMAIL PROTECTED] Envoyé: vendredi 12 mars 2004 
  14:38À: iText Mail Group; Philippe 
  CouasObjet: RE: [iText-questions] Can i convert PDF created 
  with ITEXT to TIFF too
  Do 
  you want to create a TIFF from the PDF or from the same data as the PDF is 
  created with?
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]On Behalf Of 
Philippe CouasSent: Friday, March 12, 2004 1:05 
AMTo: [EMAIL PROTECTED]Subject: 
[iText-questions] Can i convert PDF created with ITEXT to TIFF 
too
Hi,

Can i create a 
TIFF file with a PDF create with ITEXT.
I want in same 
application create a PDF file for my mail server and a TIFF file too for my 
FAX server on AIX 4.3.3 ?

Regards
Philippe




RE: [iText-questions] PDF/X-3 compliant attributes

2004-03-15 Thread Bill Ensley
touche, I should know better!

Bill Ensley
Bear Printing

-Original Message-
From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 9:39 AM
To: Bill Ensley
Subject: RE: [iText-questions] PDF/X-3 compliant attributes


At 12:19 PM 3/15/2004, Bill Ensley wrote:

 foo.pdf is a PDF/X-3 document with an output intent of USSWOP
 bar.pdf is a PDF/X-3 document with an output intent of EuroCoated

 What is the result of merging them?!?!

Let the user decide by order of input file.

 You might think that, but it wouldn't be correct since the colors
wouldn't output correctly.

 Remember that output intent is the equivalent of the input profile
when doing color conversion/rasterization of a document.

 So if you have a document with an output intent of SWOP and just
change the intent to EuroCoated - you've done a job on the color when final
output takes place since your data won't match your profiles.

 You need to do color correction from the one profile to the
other...


Leonard

---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-629-3700 (voice)
  215-629-0789 (fax)



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] PDF/X-3 compliant attributes

2004-03-16 Thread Bill Ensley
My apologies to all, including the iText team.
I haven't intended to create a flame war.
I was told my Leonard that web/screen was the focus of
iText and PDF/X is output by nature.

I will tone down my comments in an effor to 
create a more positive productive environment
in this mialing-list.

I admit that I lack Leonard's technical expertise regarding
internal workings of PDF's.

I do have a fairly rare perspective from a user's side
because I deal with dozens of customer supplied
PDF's each day (each with their own unique problems)
that must be output.

My discussions have been to hopefully create a dialog
for adding more output support to iText.

Again, my apologies to any who have been offended by my
comments.  

I have and will continue to make my own improvements
to iText, if anyone wants to discuss with me a mini-subproject
adding more output support to iText, please let me know.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matt
Benson
Sent: Tuesday, March 16, 2004 8:10 AM
To: itext-questions
Subject: RE: [iText-questions] PDF/X-3 compliant attributes


--- Paulo Soares [EMAIL PROTECTED] wrote:
 No member of the team said that there aren't plans
 to support PDF/X in the future. As you saw, iText

  Yes, and it bothered me when I saw that remark.  I
remember approximately the comments from which it was
derived, but I felt this last comment contained
inferences that weren't necessarily present at the
source.

  I see both list members who took part in that
discussion (we'll call them the incumbent and the
challenger) as valuable members of this community,
the incumbent being a wealth of PDF-specific
knowledge, and the challenger possessing what
appears to be a fairly rare perspective on PDF from
the user side.  Either one's departure would represent
a loss.  However, at the risk of starting a flame war,
of which I want or need no part, that comment looked
suspiciously like a complaint.  As with all OSS, any
user is welcome and encouraged to develop and
contribute functionality and while it's nice to ask
and receive, being in a position to help yourself is
no bad thing either.  A quick query of the list will
usually yield a pointer into the right approach and/or
starting point for any feature addition.

$0.02

-Matt

__
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] streaming jpeg into PdfContentByte

2004-03-23 Thread Bill Ensley
Check out the JAI tutorial on Sun's Website at
http://java.sun.com/developer/onlineTraining/javaai/jai/index.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Menke,
John
Sent: Tuesday, March 23, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] streaming jpeg into PdfContentByte


I have a method that will print TIFF images to my pdf and my business
requirements have changed and now i need to support JPG images also.

currently the logic boils down to this:



PdfContentByte cb = writer.getDirectContent();

k=1;

ParameterBlock pb = new ParameterBlock();
pb.add(s);
pb.add(new TIFFDecodeParam());
pb.add(k);
RenderedImage ri = JAI.create(TIFF, pb);

Raster ra = ri.getData();

BufferedImage bi =new BufferedImage(
ri.getColorModel(),
Raster.createWritableRaster(
ri.getSampleModel(),
ra.getDataBuffer(),
null),
false,
new Hashtable());
Image img = Image.getInstance(bi, null, true);

cb.addImage(img);


MY QUESTION IS THIS.  CAN I create a rendered image with a JPEGDecodeParam()
instead of the TIFFDecodeParam and if so what do i use as params  for the
JAI.create method.  I can't find a reference for valid operator names for
the JAI.create method






---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problem adding images to a pdf

2004-03-24 Thread Bill Ensley



I 
won't pretent to be an expert in this area, but it sounds alot like something is 
not getting closed out, or reset at the end of
your 
first run. Then, when the second runs, it is using stale data of some 
sort, you might try various out prints to see 
if you 
are getting something odd.

Perhaps some resource is not getting set again on the 
second attempt?
I 
assume that all subsequent attempts create the same problem?

If you 
want to send me some code, I will look at it.
It 
seems that we are both working on similar projects.
I too 
am returning a PDF with images back to my user for proofing 
purposes.

Bill 
Ensley
Bear 
Printing

  -Original Message-From: Eric Vandervort 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, March 24, 2004 
  6:39 AMTo: Bill EnsleySubject: Re: [iText-questions] 
  Problem adding images to a pdf
  I'm using the outputstream in my servlet, and 
  calling another class to actually create the pdf's into a 
  bytearrayoutputstream.
  
  
  Servlet code snippet:
  
   
  OutputStream out = 
  res.getOutputStream(); 
  CreatePDF createPDF = new 
  CreatePDF(); 
  out = createPDF.Create(path, allUploadedData, parseFile.getWhichDocument(), 
  out); 
   
  out.close();
  
  
  
- Original Message - 
From: 
Bill 
Ensley 
To: Eric Vandervort 
Sent: Tuesday, March 23, 2004 3:42 
PM
Subject: RE: [iText-questions] Problem 
adding images to a pdf

Are you getting no image or no data in an empty image? do you 
have Adobe Acrobat? if you do, you can use it to see if the image is not 
getting written, or if it is getting
written only with empty data.

Hope this helps better
Bill Ensley
Bear Printing

  -Original Message-From: Eric Vandervort 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, March 23, 2004 
  12:37 PMTo: Bill Ensley; 
  [EMAIL PROTECTED]Subject: Re: 
  [iText-questions] Problem adding images to a pdf
  Bill, Thanks for the suggestion. I 
  tried this and it didn't work. When I click back, I then click 
  submit again to call the servlet and it does call it successfully and 
  everything else prints fine, except the image. It seems like that 
  may be the right mode of thinking though, because the first time I run 
  this I get the image, everytime thereafter I do not.
  
  Here's the code I entered into my servlet 
  (already had the response coming in):
  
   
  res.addHeader("Pragma", 
  "No-cache"); 
  res.addHeader("Cache-Control", 
  "no-cache"); 
  res.addDateHeader("Expires", 1);
  Thanks,Eric
  
----- Original Message - 
From: 
Bill 
Ensley 
To: Eric 
Vandervort 
Sent: Tuesday, March 23, 2004 2:52 
PM
Subject: RE: [iText-questions] 
Problem adding images to a pdf

Back and Forward buttons on a browser to not automatically 
re-load a page from the server.

I solved this problem by adding a no-caching value into the 
request header.

HttpServletResponse response = 
(HttpServletResponse)pageContext.getResponse();response.addHeader("Pragma", 
"No-cache");response.addHeader("Cache-Control", 
"no-cache");response.addDateHeader("Expires", 
1);

hope this helps
Bill Ensley
Bear Printing

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Eric VandervortSent: Tuesday, March 23, 2004 6:20 
  AMTo: 
  [EMAIL PROTECTED]Subject: 
  [iText-questions] Problem adding images to a pdf
  Hello, I am trying to add an image to a 
  pdf, it seems to work the first time, but if I choose the back button 
  on my browser and try again it's not there. Its a variable image 
  that is different based on who is creating the pdf. Any 
  suggestions?
  
  Here's my code:
  
  if (printSignature) { 
  Image jpg = Image.getInstance(path + "/bar/signatures/" + signature + 
  ".jpg");jpg.setAbsolutePosition(88, 
  20);cb.addImage(jpg);//cb.addImage(jpg, 
  176, 0, 0, 20, 88, 20);
  }
  
  Thanks,Eric
  
  
  Eric Vandervort Applications 
  Analyst/ProgrammerAdministrative Information SystemsUniversity 
  Of North Carolina at Chapel Hill Phone: (919) 962-9894 Email: 
  [EMAIL PROTECTED] 
  Visit My Homepage at http://www.unc.edu/~ericv


RE: [iText-questions] Positioning images based on millimeters

2004-03-24 Thread Bill Ensley
1 millimeter = 0.0393700787 inch = 25.4 millimeters per inch

72 points in an inch

72 / 25.4 = 2.8346 points in a millimeter

25.4 / 72 = .35277 millimeters in a point

example:
image is 30mm from top and 50mm from left
image is 85pts from top and 141pts from left.


I think I have done my math right, if I haven't, at least you see how the
conversion works

Hope this helps
Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Koen
Swolfs
Sent: Wednesday, March 24, 2004 7:25 AM
To: Help iText
Subject: [iText-questions] Positioning images based on millimeters


Hello,

I would like to add some images (jpg files) to a pdf document, it is very
important in this case that the jpg files are well positioned on the page
(at millimeter level!).  For example: I would like to position image1 at
30mm from the top of the page and 50mm from the left of the page.  Is there
a way to position the image based on millimeters, instead of x- and
y-coordinates?  Or how can I convert x- and y-coordinates to millimeters?

Any help is appreciated!

Koen.

---
[This E-mail scanned for viruses by Declude Virus]



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] howto stop grayscale jpg lightening automatically on output to pd f?

2004-03-24 Thread Bill Ensley
It's entirely possible that you are changing it yourself.

The colormodel that the RasterImage returns may be affecting your output.

Try using iText's default Image.getInstance(imagePath);
constructor to test if this is the case.

Let me know
Bill

-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 1:52 PM
To: 'Bill Ensley'
Subject: RE: [iText-questions] howto stop grayscale jpg lightening
automatically on output to pd f?


could i be changing the bytes myself without realizing it?

i use blow to get a RenderedImage from a SeekableStream created from the
JPEG :

private RenderedImage createRenderedImageFromJPEGStream(SeekableStream
inputStream)
throws IOException {

ImageDecoder decoder =
ImageCodec.createImageDecoder(
jpeg,
inputStream,
((ImageDecodeParam) new JPEGDecodeParam()));

RenderedImage jpegImage = decoder.decodeAsRenderedImage(0);

return jpegImage;
}



after that i create an Itext Image from the the RenderedImage:

Raster ra = ri.getData();
BufferedImage bi =
new BufferedImage(
ri.getColorModel(),
Raster.createWritableRaster(
ri.getSampleModel(),
ra.getDataBuffer(),
null),
false,
new Hashtable());
Image img = Image.getInstance(bi, null, true);


THIS SHOULD NOT BE ALTERING THE BYTES RIGHT?






-Original Message-
From: Bill Ensley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:16 PM
To: Menke, John
Subject: RE: [iText-questions] howto stop grayscale jpg lightening
automatically on output to pd f?


If I understand correctly, iText just dumps the jpeg data into the PDF file.
It does'nt adjust the jpeg, Acrobat must be doing that.

Try creating a java image and passing the bytes to iText instead and see if
that works.

Hope this helps
Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Menke,
John
Sent: Wednesday, March 24, 2004 11:49 AM
To: '[EMAIL PROTECTED]'
Subject: [iText-questions] howto stop grayscale jpg lightening
automatically on output to pd f?


i have a grayscale jpg image that appears in all image viewers i have with a
dark gray background.  when i output the image to pdf it appears as if itext
is automatically adjusting the colors on the page so that this dark gray is
white and other darker spots on the image are lightened by the same
amount...is there a way to turn this off??



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] howto stop grayscale jpg lightening automat ically on output to pd f?

2004-03-24 Thread Bill Ensley
Yes, what Matt said.

-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:02 PM
To: Menke, John; 'Bill Ensley'
Cc: '[EMAIL PROTECTED]'
Subject: RE: [iText-questions] howto stop grayscale jpg lightening
automat ically on output to pd f?


--- Menke, John [EMAIL PROTECTED] wrote:
 Bill, thanks for getting back to me.  I have not
 used the Image constructor
 directly because i 
 need get my images as a stream and there does not
 appear to be a constructor
 that matches with
 inputStream.  

Instead of public constructors, Image provides a
number of static getInstance() methods including 1
that take data from a byte[].  Worst case, you should
be able to read your stream into a
ByteArrayOutputStream and construct the Image with the
result of toByteArray().

 
 the reason i get as stream is that i am pulling the
 image out of jar file:
 
 imageFileUrl = new URL(urlString);
 jarConnection = (JarURLConnection)
 imageFileUrl.openConnection();
 inputStream = jarConnection.getInputStream();
 

If you're using a URL, Image has getInstance(URL)...

-Matt

__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Cannot RIP

2004-04-01 Thread Bill Ensley



Send 
me the PDF, I have extensive experience with this problem

Bill 
Ensley
Bear 
Printing

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Shahzad LatifSent: Thursday, April 01, 2004 5:05 
  PMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] Cannot RIP
  
  Hi:
  Client gave me a PDF which I have to customize and put some sort of 
  factsheet at the end (as a last page). I do so using iText (concat example). 
  Unfortunately, the printer (IBM) RIPs the individual PDF's correctly, but the 
  merged document is giving out a postscript error. Tried my best to contact as 
  many people, but no use. You are the last resort with the hope we have a 
  solution.
  Here is the error message:
  I_OSTREAM_BB Byte Buffer Dump (length: 77 bytes)
  %%[ Error: limitcheck; OffendingCommand: save; ErrorInfo: HalftoneType 1 
  ]%%.
  I_OSTREAM_PEMSG PostScript error: %%[ Error: limitcheck; OffendingCommand: 
  save; ErrorInfo: HalftoneType 1 ]%%
  I_OSTREAM_BB Byte Buffer Dump (length: 63 bytes)
  %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%.
  PS: I saw a similar posting online with mention if iText:
  http://groups.google.com/groups?hl=enlr=ie=UTF-8oe=UTF-8threadm=2cce0630.-1%40webx.la2eafNXanIrnum=5prev=/groups%3Fq%3D%2525%2525%255B%2BError:%2Bioerror%253B%2BOffending%2BCommand:%2Bimage%2B%255D%2525%2525%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D2cce0630.-1%2540webx.la2eafNXanI%26rnum%3D5
  Also, when I pass the file through distiller, I get the following error 
  message:
  %%[ Error: ioerror; OffendingCommand: image ]%%
  Stack:
  -dict-
  -save-
  -save-
  -save-
  
  %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
  %%[ Warning: PostScript error. No PDF file produced. ] %%
  Here it is important to note that individual files (sourced from distiller) 
  are RIP'ed perfect. Only when two files are concatenated via iText, we are 
  coming across the problem.
  Thanks,
  Shahzad
  Do you Yahoo!?Yahoo! Mail - More reliable, more storage, less 
  spam


RE: [iText-questions] why PdfStamper can write to FileOutputStream but not to ServletOutputStream

2004-04-12 Thread Bill Ensley
You need to set the content-length and content-type on the response.

response.setContentType(application/pdf);
response.setContentLength(baos.size());

those methods might be a little different, but you get the point

Bill

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of gs lai
Sent: Sunday, April 11, 2004 7:53 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] why PdfStamper can write to FileOutputStream
but not to ServletOutputStream


I want to read a file and change something,then to the browser and I see
nothing,but to a file which is i want,Can you tell where is my wrong(with
j2sdk1.4.1_03,tomcat4.1.24,iText1.02b,MS ie6.0sp1).thanks for your doing for
us,and your help
the code is:

public class PrintProtocolUsePdfAction
extends org.apache.struts.action.Action {
public ActionForward execute(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) throws
Exception {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
response.setHeader(Cache-Control, max-age=30);
response.setHeader(Content-Type, application/pdf);
PdfReader reader = new PdfReader(D:\\Tomcat
4.1\\webapps\\tms\\docs\\protocol1.pdf);
PdfStamper stamp = new PdfStamper(reader,new
FileOutputStream(D:\\Tomcat 4.1\\webapps\\tms\\docs\\obj.pdf));//(1)
//  PdfStamper stamp = new PdfStamper(reader,baos);//(2)
AcroFields aform = stamp.getAcroFields();
aform.setField(text1, hello,iText);
stamp.setFormFlattening(true);
ServletOutputStream out= response.getOutputStream();
baos.flush();
baos.writeTo(out);
stamp.close();
out.flush();
baos.reset();
return null
}
}

notes:
(1)write to file,and it is ok!
(2)write to browser,then it doesn't work.why?
thanks again.

_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] [i-Text] Scanning for text

2004-04-14 Thread Bill Ensley



JPedal 
gives you access to the text in a page, however, scanning 25000 pages would lock 
your system up i'm sure.
but 
you can give it a try

Bill 
Ensley
Bear 
Printing

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Lior 
  ShliechkornSent: Tuesday, April 13, 2004 10:56 AMTo: 
  iTextSubject: [iText-questions] [i-Text] Scanning for 
  text
  Hi,
  
  I'm trying to read a document containing over 25000 pages and I want to 
  extract pages from it that contain an account number in a specific range. 
  However, I'm unable to find good documentation on how to do a search on a PDF 
  document using java.
  
  Can anyone be of assitance, and/ or provide a good example?
  
  Thanks,
  Lior
  
  
  Do you Yahoo!?Yahoo! 
  Small Business $15K Web Design Giveaway - Enter 
today


RE: [iText-questions] HtmlParser class missing?

2004-04-15 Thread Bill Ensley
I just read the below mentioned article, and would like to ask if there is
anyone

who can think of a gui front-end need to any of the iText sub-projects.

I have a good grasp of gui design and would love to help.

Bill Ensley
Bear Printing


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bruno
Sent: Thursday, April 15, 2004 12:14 AM
To: Paul Hastings
Cc: [EMAIL PROTECTED]
Subject: Re: [iText-questions] HtmlParser class missing?


Quoting Paul Hastings [EMAIL PROTECTED]:

  Look for the iTextXML.jar,
  http://itext.sourceforge.net/downloads/

 ha! never made the connection. many thanks. is that in the docs anyplace
 that i missed?

The link is on the download page:
http://www.lowagie.com/iText/download.html

But you're right, it's not easy to make the connection.
Yesterday I read this through slashdot:
http://firstmonday.org/issues/issue9_4/levesque/index.html
I must admit most of the issues apply for iText :(

On the other hand, it shouldn't discourage us
to use F/OS Software ;-)
br,
bruno


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Embed ttf fonts and use PdfGraphics2D

2004-05-04 Thread Bill Ensley
You need to specify a DefaultFontMapper
Look in the turorial, it is there

-Bill Ensley

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Thorsten Schülein
Sent: Tuesday, May 04, 2004 2:05 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Embed ttf fonts and use PdfGraphics2D


Hi,

my application needs several external TrueType fonts, supplied by the
appropriate ttf-files. It is no problem to create a BaseFont from these
files, but the application only uses the PdfGraphics2D class to print to the
pdf.

Now the problem is as follows:

When i try to create a java.awt.Font object with my font name (e.g. Gill
Sans), the getFontName() method falls back to return dialog. The initial
font name is only available through calling getName() (even if the font is
installed on the system).
Now PdfGraphics2D uses an internal cache for BaseFonts that unfortunately
maps the fonts according to the awt font name (returned by getFontName(),
which in this case is always dialog).
So every time i call setFont() on PdfGraphics2D with a non-built-in font,
PdfGraphics2D seeks the cache for an entry mapped by the key dialog and
then returns the same font even for different initial font names (e.g.
Gill Sans and Gill Sans Bold).

Even using my own implementation of FontMapper could not solve the problem,
as the FontMapper is only consulted once - when the BaseFont is not yet in
the cache.

Any suggestions how to register the fonts or prevent java.awt.Font from that
fallback?

Thanks in advance, Thorsten




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Convert doc to pdf

2004-05-06 Thread Bill Ensley
You either need to write your own .doc parser, or
Jakarta has an expirimental .doc parser in it's POI project.

Either way, it's not pretty.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Marcio
Mesti
Sent: Thursday, May 06, 2004 11:14 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Convert doc to pdf


Hi,

  I need convert document .doc in .pdf and include water mark in all pages.

Thanks.

--
Marcio Mesti
(11) 7192-9393
[EMAIL PROTECTED]
Mesti  Benito Informática
www.mestibenito.com.br




---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] how save PDF more 72dpi

2004-05-24 Thread Bill Ensley



Are 
you referring to image quality?



  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Rafael 
  A. Sornes G.Sent: Monday, May 24, 2004 7:06 PMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] how 
  save PDF more 72dpi
  how save a pdf with more DPI than 72dpi? i need 
  600dpi
  
  thanks 
  
  Rafael


RE: [iText-questions] how save PDF more 72dpi

2004-05-24 Thread Bill Ensley



dpi 
only refers to images so I assume thats what you mean. 

how 
are you putting the images into the pdf, getInstance() or 
PdfGraphics2D?


  -Original Message-From: Rafael A. Sornes G. 
  [mailto:[EMAIL PROTECTED]Sent: Monday, May 24, 2004 9:28 
  PMTo: Bill EnsleySubject: Re: [iText-questions] how save 
  PDF more 72dpi
  Ineed to the final file pdf have more than 
  72dpi of resolution. 
  
- Original Message - 
From: 
Bill 
Ensley 
To: iText Mail Group ; 
Rafael A. Sornes 
G. 
Sent: Tuesday, May 25, 2004 12:19 
AM
Subject: RE: [iText-questions] how save 
PDF more 72dpi

Are you referring to image 
quality?



  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Rafael A. Sornes G.Sent: Monday, May 24, 2004 7:06 
  PMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] how save PDF more 72dpi
  how save a pdf with more DPI than 72dpi? i 
  need 600dpi
  
  thanks 
  
  Rafael


RE: [iText-questions] Toastscript

2004-05-26 Thread Bill Ensley
I do have a copy of ToastScript and would be glad to pass it on, 
however, it is only Postscript Level 1.

Let me know if you want it

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matt
Benson
Sent: Wednesday, May 26, 2004 7:32 AM
To: Dipankar; [EMAIL PROTECTED]
Subject: Re: [iText-questions] Toastscript


There's always ghostScript, which is great.  However I
seem to recall this conversation taking place on this
list before which ended with a member having a copy. 
Search the archives.

-Matt

--- Dipankar [EMAIL PROTECTED] wrote:
 Hi,
 I urgently need a tool to convert postscript to
 text. I know there was a tool called ToastScript but
 unfortunately it is dead.
 If anyone has a copy of Toastscript please share it
 with me.
 
 Dipankar.





__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Question of PDF content generated by iText

2004-06-09 Thread Bill Ensley



How 
large is the finished PDF?

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of S 
  LamSent: Wednesday, June 09, 2004 2:56 AMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] 
  Question of PDF content generated by iText
  
  Hi all,
  
  I need your great help.
  
  Firstly, Igenerate 2 pdf files by FOP 20.4 each in 1 page, with 
  Asian NLS characters. 
  
  Then, I use iText to concat two pdf files into a 2-page pdf. The 
  filecan beopened and viewed with Acrobat reader in Window 
  successfully.
  
  However, when I try to send the 2-page pdf via email, the Internet mail 
  gateway blocks the email and says it cannot verify the email content. 
  This problem doesn't occur when I send the 2 separate 1-page pdf files via 
  email.
  
  I understand the problem is dependent on the mail gateway policy. 
  However, I want to know how (and why) iText will alter the pdf content when 
  merging the pdf files. And how to prevent it.
  
  I originally suspect the problem is due to the second binary comment 
  (some binary characters to indicate the file is in binary format). 
  However, after I amended the coding to skip this comment, the problem 
  persists.
  
  Any comment and help?
  
  Thanks
  SL
  S Lam [EMAIL PROTECTED] wrote:
  
Dear all,
I am using iText to merge two pdf files into one. However, I don't 
want to include the second line comment '%`abc' in the pdf. Any 
comment or advice where can I turn off this binary character option?
Thanks for your great help in advance.
SL



Do you Yahoo!?Friends. Fun. Try the all-new Yahoo! 
  Messenger
  
  
  Do you Yahoo!?Friends. Fun. Try the all-new Yahoo! 
Messenger


RE: [iText-questions] Transparant Images

2004-06-09 Thread Bill Ensley
Paulo,

Thank you for your response, but I must just not be getting it.

Do you have any code samples, other than the tutorial, that illustrate image
masking and transparency?

Thanks
Bill Ensley
Bear Printing


-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 05, 2004 5:13 AM
To: Bill Ensley; iText Mail Group
Subject: Re: [iText-questions] Transparant Images


The pdf format doesn't support ARGB, only RGB. Transparency is done:

- setting an array to mark the transparent colors (6 elements for RGB)
- creating a BW image to use as a mask
- creating a grayscale image to use as an smask to have 256 degrees of alpha

Best Regards,
Paulo Soares

- Original Message -
From: Bill Ensley [EMAIL PROTECTED]
To: iText Mail Group [EMAIL PROTECTED]
Sent: Saturday, June 05, 2004 2:52
Subject: RE: [iText-questions] Transparant Images


 Sorry to bother again, but image.setTransparency() is not working at all,
I
 see no effect on the output.

 Any thoughts?

 Thanks
 Bill Ensley
 Bear Printing
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bill
Ensley
   Sent: Friday, June 04, 2004 6:00 PM
   To: iText Mail Group
   Subject: RE: [iText-questions] Transparant Images


   Never mine, I found it
   Image.setTransparency(int[]);

   Bill Ensley
   Bear Printing
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bill
Ensley
 Sent: Friday, June 04, 2004 5:15 PM
 To: iText Mail Group
 Subject: [iText-questions] Transparant Images


 My Apologies,
 I'm sure someone has already asked this question, but I was unable to
 find it in the mail archives.

 I have a dynamically generated ARGB Image that has some transparent
 areas.

 When I put this image into a PDF, it loses it's transparency.

 Am I missing something simple?

 Thanks
 Bill Ensley
 Bear Printing




---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Transparant Images

2004-06-14 Thread Bill Ensley
Thanks,

I'll try to repay the favor to someone else with a question I can answer.

Bill Ensley
Bear Printing

-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 9:58 AM
To: Bill Ensley; iText Mail Group
Subject: Re: [iText-questions] Transparant Images


Here you have, in a silver platter:

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

public class stamperjap {
public static void main(String args[]) {
try {
Document doc = new Document();
PdfWriter writer = PdfWriter.getInstance(doc, new
FileOutputStream(c:\\stamperjap.pdf));
doc.open();
PdfContentByte cb = writer.getDirectContent();
for (int k = 0; k  40; ++k)
doc.add(new Paragraph(This text is under the images - this
text is under the images.));
byte dataImage[] = {-1, 0, 0, 0, -1, 0, 0, 0, -1};
Image img1 = Image.getInstance(3, 1, 3, 8, dataImage);
img1.scalePercent(6400, 19200);
Image img2 = Image.getInstance(3, 1, 3, 8, dataImage);
img2.scalePercent(6400, 19200);
Image img3 = Image.getInstance(3, 1, 3, 8, dataImage);
img3.scalePercent(6400, 19200);
img1.setAbsolutePosition(50, 600);
img2.setAbsolutePosition(50, 600 - 200);
img3.setAbsolutePosition(50, 600 - 400);
byte maskr[] = {0x18, 0x3c, 0x66, (byte)0xc3, 0x66, 0x3c, 0x18};
Image mask = Image.getInstance(8, 7, 1, 1, maskr);
mask.makeMask();
mask.setInvertMask(true);
img2.setImageMask(mask);
byte smaskr[] = new byte[63];
for (int k = 0; k  smaskr.length / 2 + 1; ++k)
smaskr[k] = smaskr[smaskr.length - 1 - k] = (byte)(k * 254 *
2 / smaskr.length);
Image smask = Image.getInstance(63, 1, 1, 8, smaskr);
smask.makeMask();
img3.setImageMask(smask);
cb.addImage(img1);
cb.addImage(img2);
cb.addImage(img3);
doc.close();
System.out.println(Fim.);
}
catch ( Exception e ) {
e.printStackTrace();
}
}
}

Best Regards,
Paulo Soares

- Original Message -
From: Bill Ensley [EMAIL PROTECTED]
To: iText Mail Group [EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 21:06
Subject: RE: [iText-questions] Transparant Images


 Paulo,

 Thank you for your response, but I must just not be getting it.

 Do you have any code samples, other than the tutorial, that illustrate
image
 masking and transparency?

 Thanks
 Bill Ensley
 Bear Printing


 -Original Message-
 From: Paulo Soares [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 05, 2004 5:13 AM
 To: Bill Ensley; iText Mail Group
 Subject: Re: [iText-questions] Transparant Images


 The pdf format doesn't support ARGB, only RGB. Transparency is done:

 - setting an array to mark the transparent colors (6 elements for RGB)
 - creating a BW image to use as a mask
 - creating a grayscale image to use as an smask to have 256 degrees of
alpha

 Best Regards,
 Paulo Soares

 - Original Message -
 From: Bill Ensley [EMAIL PROTECTED]
 To: iText Mail Group [EMAIL PROTECTED]
 Sent: Saturday, June 05, 2004 2:52
 Subject: RE: [iText-questions] Transparant Images


  Sorry to bother again, but image.setTransparency() is not working at
all,
 I
  see no effect on the output.
 
  Any thoughts?
 
  Thanks
  Bill Ensley
  Bear Printing
-Original Message-
From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Bill
 Ensley
Sent: Friday, June 04, 2004 6:00 PM
To: iText Mail Group
Subject: RE: [iText-questions] Transparant Images
 
 
Never mine, I found it
Image.setTransparency(int[]);
 
Bill Ensley
Bear Printing
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Bill
 Ensley
  Sent: Friday, June 04, 2004 5:15 PM
  To: iText Mail Group
  Subject: [iText-questions] Transparant Images
 
 
  My Apologies,
  I'm sure someone has already asked this question, but I was unable
to
  find it in the mail archives.
 
  I have a dynamically generated ARGB Image that has some transparent
  areas.
 
  When I put this image into a PDF, it loses it's transparency.
 
  Am I missing something simple?
 
  Thanks
  Bill Ensley
  Bear Printing
 



 ---
 This SF.Net email is sponsored by: GNOME Foundation
 Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
 GNOME Users and Developers European Conference, 28-30th June in Norway
 http://2004/guadec.org
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions

RE: [iText-questions] Transparant Images

2004-06-14 Thread Bill Ensley
MY FOOLISHNESS!!!

I have untold hours into learning transparency, and it was all
foiled by the fact that I was using an old version of ACROBAT!!!

I tested this class below and it did not work in Acrobat 4.0,
But it works perfectly in Acrobat 5.0 and higher.

I did not think until now that was my problem.

Thank you all for your valuable input.

Bill Ensley
Bear Printing

-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 9:58 AM
To: Bill Ensley; iText Mail Group
Subject: Re: [iText-questions] Transparant Images


Here you have, in a silver platter:

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

public class stamperjap {
public static void main(String args[]) {
try {
Document doc = new Document();
PdfWriter writer = PdfWriter.getInstance(doc, new
FileOutputStream(c:\\stamperjap.pdf));
doc.open();
PdfContentByte cb = writer.getDirectContent();
for (int k = 0; k  40; ++k)
doc.add(new Paragraph(This text is under the images - this
text is under the images.));
byte dataImage[] = {-1, 0, 0, 0, -1, 0, 0, 0, -1};
Image img1 = Image.getInstance(3, 1, 3, 8, dataImage);
img1.scalePercent(6400, 19200);
Image img2 = Image.getInstance(3, 1, 3, 8, dataImage);
img2.scalePercent(6400, 19200);
Image img3 = Image.getInstance(3, 1, 3, 8, dataImage);
img3.scalePercent(6400, 19200);
img1.setAbsolutePosition(50, 600);
img2.setAbsolutePosition(50, 600 - 200);
img3.setAbsolutePosition(50, 600 - 400);
byte maskr[] = {0x18, 0x3c, 0x66, (byte)0xc3, 0x66, 0x3c, 0x18};
Image mask = Image.getInstance(8, 7, 1, 1, maskr);
mask.makeMask();
mask.setInvertMask(true);
img2.setImageMask(mask);
byte smaskr[] = new byte[63];
for (int k = 0; k  smaskr.length / 2 + 1; ++k)
smaskr[k] = smaskr[smaskr.length - 1 - k] = (byte)(k * 254 *
2 / smaskr.length);
Image smask = Image.getInstance(63, 1, 1, 8, smaskr);
smask.makeMask();
img3.setImageMask(smask);
cb.addImage(img1);
cb.addImage(img2);
cb.addImage(img3);
doc.close();
System.out.println(Fim.);
}
catch ( Exception e ) {
e.printStackTrace();
}
}
}

Best Regards,
Paulo Soares

- Original Message -
From: Bill Ensley [EMAIL PROTECTED]
To: iText Mail Group [EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 21:06
Subject: RE: [iText-questions] Transparant Images


 Paulo,

 Thank you for your response, but I must just not be getting it.

 Do you have any code samples, other than the tutorial, that illustrate
image
 masking and transparency?

 Thanks
 Bill Ensley
 Bear Printing


 -Original Message-
 From: Paulo Soares [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 05, 2004 5:13 AM
 To: Bill Ensley; iText Mail Group
 Subject: Re: [iText-questions] Transparant Images


 The pdf format doesn't support ARGB, only RGB. Transparency is done:

 - setting an array to mark the transparent colors (6 elements for RGB)
 - creating a BW image to use as a mask
 - creating a grayscale image to use as an smask to have 256 degrees of
alpha

 Best Regards,
 Paulo Soares

 - Original Message -
 From: Bill Ensley [EMAIL PROTECTED]
 To: iText Mail Group [EMAIL PROTECTED]
 Sent: Saturday, June 05, 2004 2:52
 Subject: RE: [iText-questions] Transparant Images


  Sorry to bother again, but image.setTransparency() is not working at
all,
 I
  see no effect on the output.
 
  Any thoughts?
 
  Thanks
  Bill Ensley
  Bear Printing
-Original Message-
From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Bill
 Ensley
Sent: Friday, June 04, 2004 6:00 PM
To: iText Mail Group
Subject: RE: [iText-questions] Transparant Images
 
 
Never mine, I found it
Image.setTransparency(int[]);
 
Bill Ensley
Bear Printing
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Bill
 Ensley
  Sent: Friday, June 04, 2004 5:15 PM
  To: iText Mail Group
  Subject: [iText-questions] Transparant Images
 
 
  My Apologies,
  I'm sure someone has already asked this question, but I was unable
to
  find it in the mail archives.
 
  I have a dynamically generated ARGB Image that has some transparent
  areas.
 
  When I put this image into a PDF, it loses it's transparency.
 
  Am I missing something simple?
 
  Thanks
  Bill Ensley
  Bear Printing
 



 ---
 This SF.Net email is sponsored by: GNOME Foundation
 Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
 GNOME

RE: [iText-questions] pdfviewer example

2004-06-25 Thread Bill Ensley
What are you using to parse the PDF?
is is the old Adobe Java Viewer?

This is very interesting, I would like to know more.

Bill Ensley
Bear Printing


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Carsten
Hammer
Sent: Thursday, June 24, 2004 10:17 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] pdfviewer example


Hi,
for anybody interested I packed the pdfviewer example (itext FAQ) as 
Java Webstart at http://home.t-online.de/home/carsten.hammer/PDFView.html

Source is there too.
Best regards,
Carsten Hammer

PS: if you look at it the first time dont expect much, it just tries to 
show the usage of the adobe reader in java for conversion of pdf in 
image data.




---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] pdfviewer example

2004-06-25 Thread Bill Ensley
Never mind, I just needed to read the iText FAQ

Thanks for the hard work
Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Carsten
Hammer
Sent: Thursday, June 24, 2004 10:17 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] pdfviewer example


Hi,
for anybody interested I packed the pdfviewer example (itext FAQ) as 
Java Webstart at http://home.t-online.de/home/carsten.hammer/PDFView.html

Source is there too.
Best regards,
Carsten Hammer

PS: if you look at it the first time dont expect much, it just tries to 
show the usage of the adobe reader in java for conversion of pdf in 
image data.




---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Images and PDF File Size

2004-07-07 Thread Bill Ensley
If file size is your priority, first convert your Java image into a JPEG
and then dump the JPEG into the PDF directly:


ByteArrayOutputStream baos = new ByteArrayOutputStream();

JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(baos);

JPEGEncodeParam param = JPEGCodec.getDefaultJPEGEncodeParam(javaImage);

param.setQuality(.95f, true); // first argument is quality level, 0.00f to
1.00f higher being better quality

encoder.encode(image, param);

javaImage.flush();

javaImage = null;

com.lowagie.text.Image =
com.lowagie.text.Image.getInstance(baos.toByteArray());


Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Leonard
Rosenthol
Sent: Wednesday, July 07, 2004 4:26 AM
To: Youssef Eldakar; [EMAIL PROTECTED]
Subject: Re: [iText-questions] Images and PDF File Size


At 04:48 AM 7/7/2004, Youssef Eldakar wrote:
I am writing PDF documents in iText where each page is originally a TIFF.
Each TIFF is either a bilevel or RGB image. PDF file size being a
priority, I am interested in learning what is the most optimal method for
storing these images into the PDF documents as far as file size is
concerned.


 PDF file size reduction and optimization is a science all to
itself - involving parts of compression theory, image processing and PDF
know how.  If you want that best - use PDF Enhancer
(http://www.pdfenhancer.com).

 There are, however, many easy things that can be done such as
resolution downsampling or application of JPEG or JBIG2 compression
(depending on the type of image).  Try JAI...


Leonard

---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-938-7080 (voice)
  215-938-0880 (fax)



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] re: displaying pdf in new window

2004-08-27 Thread Bill Ensley



_javascript_:

var win = window.open('generatePDFHere.servlet', 'pdf','');

-bill

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  [EMAIL PROTECTED]Sent: Thursday, August 26, 2004 4:34 
  PMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] re: displaying pdf in new 
  windowSir 
  I am new to itext and i have the question 
  about the generated pdf My 
  architecture is using xml as the primary window page and click a link to 
  trigger a servlet that call a class inherited from itext to generate the pdf 
  file However, i found the pdf file 
  generated will be on the same window so that my primary page will be 
  overridden. Is there any way to display the pdf in new windows by means of 
  servlet/java class/xml control? Thanks a lotTimothy Ma


RE: [iText-questions] Help needed IE problem

2004-09-08 Thread Bill Ensley



Read 
the tutorial

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  cristianSent: Wednesday, September 08, 2004 12:29 
  AMTo: [EMAIL PROTECTED]Subject: 
  [iText-questions] Help needed IE problem
  Hello,
  I am using iText for creating a pdf on the fly in 
  an Internet Explorer browser. On IE 6.0 and high is working perfect, but on IE 
  5.5 it does not work. It returns in browser with a picture of broken link to 
  an image (as HTML does when an image could not be retrieved by the 
  browser).
  
   Can u give some knowleadge on this issue. 
  It is a critical part of my project.
  
   Thank you.
  
   
  Cristian


RE: [iText-questions] Images being enlarged 33%

2004-09-13 Thread Bill Ensley
pixels to points
pixels * .75f

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Tom
Hjellming
Sent: Monday, September 13, 2004 9:39 AM
To: '[EMAIL PROTECTED]'
Subject: [iText-questions] Images being enlarged 33%


Hi,

I'm trying to build PDF documents that contain images in various places
(headers/footers, inside tables, etc).

It seems that iText is enlarging the image 33% every time.  A GIF image that
starts as 253 x 55 is enlarged to be 338 x 74 in the resulting PDF.  [And
yes, I have Acrobat Reader's page scaling set to 100% when viewing the
resulting PDF].

Here is the trivial code fragment:

Image image = Image.getInstance(logo.gif);
image.setAlignment(Rectangle.ALIGN_LEFT);

document.add(image);


If I call:
image.scaleAbsoluteWidth(150);

then the image comes out 201 x 74 -- width has been enharged 33% from what I
specified.  Calling image.scalePercent(100) didn't help either.

If I install a HtmlWriter, the resulting html file is generated with the
correct height/width attributes for the image.


I have looked over the iText tutorial, on-line doc and the javadoc but don't
see anything that explains it.  In fact, even the Chapter 6 examples in the
iText tutorial have the same problem
(http://www.lowagie.com/iText/examples/Chap0601.html vs
http://www.lowagie.com/iText/examples/Chap0601.pdf).

One solution might be to always call image.scalePercent(75) -- the images
come out the right size in PDF (but not HTML).

Any ideas what is going on here?

Thank you,
Tom



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Solve my RTF problem

2004-09-16 Thread Bill Ensley
Title: Solve my RTF problem



RTF 
stands for rich TEXT file.

I 
don't believe that images are supported

-Bill

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of 
  Gupta_SachinSent: Thursday, September 16, 2004 7:45 
  AMTo: '[EMAIL PROTECTED]'Cc: 
  '[EMAIL PROTECTED]'Subject: [iText-questions] 
  Solve my RTF problem
  hi folks, 
  The problem is that i generate a RTF Document that 
  is word document using java with the help of itext. In that i am inserting 
  images of format .gif or .bmp. When i open that document in WORD i am not able 
  to view the images but when i click the mouse on the document where the images 
  should have been i just see the outline .
  Is that wORD DO NOT SUPPORT .GIF OR .BMP OR PLASE 
  HELP ME OUT IN GETTING THE IMAGES. 
  Thanks  
  Regards:Sachin 
  GuptaSatyam Computer Services LtdSRU-GEGDCHyderabad (STC)Cell : 
  9885087321 
  
  ** 
  This email (including any attachments) is 
  intended for the sole use of the intended recipient/s and may contain material 
  that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance 
  by others or copying or distribution or forwarding of any or all of the 
  contents in this message is STRICTLY PROHIBITED. If you are not the intended 
  recipient, please contact the sender by email and delete all copies; your 
  cooperation in this regard is appreciated.
  ** 
  


RE: [iText-questions] html2pdf OutOfMemoryError Help me :((

2004-10-13 Thread Bill Ensley



Your 
JVM needs more memory

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Ali 
  CBCBINARSent: Wednesday, October 13, 2004 9:05 AMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] 
  html2pdf OutOfMemoryError Help me :((
  Hi my application program is itext;
  the large table error page.For example 6000 sheets pdf page big 
  report.
  Not view page.Only small page opens.Big pdf why view?
  Help me.
  thanks.
  
  
  JspFactoryImpl: Exception initializing page context: 
  java.lang.OutOfMemoryError
  
  
  Do you Yahoo!?Yahoo! 
  Mail Address AutoComplete - You start. We finish.


RE: [iText-questions] Duplex Printing.

2004-10-14 Thread Bill Ensley
No

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Ezequiel Cuellar
Sent: Thursday, October 14, 2004 1:59 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Duplex Printing.


I have a PDF of 50 pages that is generated with iText on the fly. I need to
make
some of the pages to be printed in duplex. Is there a way to set this
programatically when creating the PDF?

Thanks.



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] zoom to specified area with action

2004-10-04 Thread Bill Ensley



Hello,Is it possible to zoom to a 
specified area in a pdf with an action?

ie: an image with an onClick action would zoom to that 
image.

Thanks
Bill


RE: [iText-questions] zoom to specified area with action

2004-10-04 Thread Bill Ensley
Leonard, thanks for the quick reply, 

I found the Named Destinations and understand how they work, am 
I correct that they need to be tied to an outline?

I don't see how to tie them to an object with an Action.

If I am missing something obvious my apologies.

-Bill

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Leonard
Rosenthol
Sent: Monday, October 04, 2004 11:23 AM
To: Bill Ensley; iText Mail Group
Subject: Re: [iText-questions] zoom to specified area with action


At 12:24 PM 10/4/2004, Bill Ensley wrote:
Is it possible to zoom to a specified area in a pdf with an action?

 Of course!

 Check out Named Destinations - they are the PDF equivalent of 
HTML anchors.


LDR

---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-938-7080 (voice)
  215-938-0880 (fax)



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] zoom to specified area with action

2004-10-04 Thread Bill Ensley
For anyone who has been following this Thread:



Image img = Image.getInstance(c:/beccapark.jpg);
img.scaleAbsolute(150,250);
img.setAbsolutePosition(50,50);

float zoom = 4.0f;

PdfDestination d = new PdfDestination(PdfDestination.XYZ, 0, 300, zoom);
cb.addImage(img);
cb.setAction(PdfAction.gotoLocalPage(1, d, writer), 50f,50f,200f,300f);



The above code will zoom to the image when clicked.

Hope this helps anyone else needing something like this.

Many thanks again to Leonard.

Bill Ensley
Bear Printing



-Original Message-
From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 5:51 PM
To: Bill Ensley; iText Mail Group
Subject: RE: [iText-questions] zoom to specified area with action


At 04:55 PM 10/4/2004, Bill Ensley wrote:
I found the Named Destinations and understand how they work, am
I correct that they need to be tied to an outline?

 Not at all!!

 They are global entries in a special (Names) table in the 
PDF.  They can be used anytime you have an Action (GoTo name instead of 
GoTo page 1).

 I haven't looked into this part of iText, so it may be something 
that has to be added...


Leonard

---
Leonard Rosentholmailto:[EMAIL PROTECTED]
Chief Technical Officer  http://www.pdfsages.com
PDF Sages, Inc.  215-938-7080 (voice)
  215-938-0880 (fax)



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] itext and svg-picture

2004-10-08 Thread Bill Ensley
There is an example in the mail archives in the last few months of how
to use Batik to transcode into iText

-Bill

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of felix
haberlach
Sent: Friday, October 08, 2004 4:55 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [iText-questions] itext and svg-picture


Hello Everyone!

I have´a Question about itext and svg. I wrote a java-programm that creates
a Pdf-file with normal text. Now i was thinking about adding a picture to
the pdf. My question is: is it possible to add svg-pictures? cause in the
itext-doc i can't find a word about svg...
What can i do? It would be great if somebody could halp me an give me some
help.

greets
Felix


--
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Press-Ready or RIP ready PDF files

2004-10-22 Thread Bill Ensley
Title: Message



Mostly 
you just need to know what you are doing, iText is a VERY complete PDF 
Library.

There 
is not much you can't do with it, my customers use it extensively to create 
print and press ready PDF Files
from 
my website.

-Bill
Bear 
Printing

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Danny 
  PaganSent: Friday, October 22, 2004 11:58 AMTo: 
  [EMAIL PROTECTED]Subject: [iText-questions] 
  Press-Ready or RIP ready PDF files
  Is it possible to create press-ready or 
  RIP ready PDF files using iText? Are there special API's within iText for this 
  or do you just need to know what you're doing?
  
  Thanks for 
  your valuable time.
  
  Danny
  
  


RE: [iText-questions] x,y position at the document

2004-11-01 Thread Bill Ensley
That's java coords, in postscript and pdf, x is still at the left,
but y is from bottom up.

-Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of dee3lmo
Sent: Monday, November 01, 2004 7:57 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] x,y position at the document


My question is about this statement:
cb.showTextAlignedKerned(PdfContentByte.ALIGN_LEFT,
This is the first line., 0, 0, 0) ;

Why is the text 'This is the first line.' written at
the bottem left of the document? If x=0 and y=0 I
thought it should be printed at the top left of the
document?

thanx,
dee.





___ALL-NEW Yahoo!
Messenger - all new features - even more fun! http://uk.messenger.yahoo.com


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] A problem with Graphics2D fonts

2004-11-05 Thread Bill Ensley
Yes, you do need to show the component in order for it to lay itself out.

I isn't painted until you show it.

-Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Avelino
Herrera
Sent: Friday, November 05, 2004 3:55 AM
To: [EMAIL PROTECTED]
Subject: [iText-questions] A problem with Graphics2D fonts


Hi, all.
I'm trying to build a JPanel subclass (named JPanelPDF) that 
includes a custom printPDF public method to write the JPanel to a PDF 
document ussing Graphics2D returned by PdfContentByte.createGraphics(w, 
h, mapper). The idea is to design any JPanelPDF subclass with a WYSIWYG 
GUI editor (such as JDeveloper, NetBeans, etc) and, directly do a 
panelObject.printPDF(outputStream) at runtime. The object runs ok but 
it must to be showed previously to be printed to the PDF (?). If i 
directly call the panel's printPDF method the output PDF document only 
contains the non-text objects but if i shows previously the panel in any 
container (such a JFrame or JDialog) and then call panel's printPDF 
method, the output PDF document is ok (with lovelly vectorial fonts :-) ).
I am ussing TrueType fonts (calling 
DefaultFontMapper.insertDirectory(...)) and at design time, in 
JDeveloper, i can see the fonts correctly since i do a 
Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(path)) to get 
the adecuate java.awt.Font objects.
Thanks in advance.



Avelino Herrera



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Optimized files

2004-12-16 Thread Bill Ensley



Acrobat 6 is likely placing the images into the final PDF as jpeg ( I 
think ). If you are using PDFGraphics2D there is a constructor to aid you 
in this
if 
not, you will have to manually convert your images to jpeg. you can look 
at the PDFGraphics2D class to see how this is done.

Bill 
Ensley
Bear 
Printing



  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Bart 
  AllenSent: Thursday, December 16, 2004 9:30 AMTo: 
  ITEXTSubject: [iText-questions] Optimized 
  filesI am using iText to perform variable data 
  merges. On these pdf's that get created, I am mostly the same images, + 
  a variable image + personalized variable data. In one case, I end of 
  creating a 130mb file for 30 people, 1 page per person. If I do a save 
  as in Acrobat 5.x it stays the same size. If I do a save as in Acrobat 
  6.0, it is now only 5mb. Is there something I can/should be doing to tag 
  the images that get reused as reusable objects so that my initial pdf file 
  size is minimal?Thanks for any info. 


RE: [iText-questions] Looking for a JPedal user for a question ...

2004-12-16 Thread Bill Ensley
I have played with JPedal to view a PDF in java and came up with the same
problems, I dug into the code and found some bugs? with finding an embedded
font.  I was never able to get the embedded font to work, but with some
tweaking I was able to get text output in a default font.

I recommend highly trying the example on the iText website using Adobe's
java pdf reader.

I have had much better success with that one.

Good luck
Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of NICOLAU
Raffaele
Sent: Monday, December 13, 2004 8:38 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [iText-questions] Looking for a JPedal user for a question ...


Hi iText users,

Following Sven Henckel recommendations for my problem (to show a PDF into a
JInternalFrame), using JPedal. But I have a problemn, it seems I don't
really understand Fonts and Pdfs.

The PDF I try to show is created with iText, and its font is embedded it
seems (i have attached it for information). I try to put the pdf content
inside of my JInternalFrame using the following :

public class FormAbout extends DematInternalFrame   --- 
DematInternalFrame
extends JInternalFrame
{
  /** Le Logger */
  protected transient Logger log = Logger.getLogger(FormAbout.class);

  /** Code de la fenêtre, pour pouvoir la repérer facilement et l'enlever du
desktop */
  public int FRAME_CODE = DematDesktopPane.FORM_ABOUT;

  protected PdfDecoder pdf = null;

  public FormAbout()
  {
super(A propos - TEST PDF, false);  // @translate

try
{
  PdfFont.setStandardFontMappings();

  pdf = new PdfDecoder();
  pdf.openPdfFile(F:\\RETAIL-order.pdf);

  pdf.setBackground(DematStyle.bgColorFrame);

//  String[] nameInPDF={ArialUnicodeMS};
//pdf.setSubstitutedFontAliases(Arial Unicode MS Normal, nameInPDF);
//  BufferedImage _img = pdf.getPageAsThumbnail(1);

  if (pdf.isFileViewable())
  {
log.debug(NB PAGES PDF = +pdf.getPageCount());
pdf.decodePage(1);
pdf.flushObjectValues(true);
pdf.setPageParameters(1, 1);

JScrollPane _js = new JScrollPane(pdf);

addToContent(_js);
  }
}
catch (PdfException _ex)
{
  log.error(_ex, _ex);
}
catch (Exception _e)
{
  log.error(_e, _e);
}
  }
}

The only thing I can get in my JInternalFrame is the right PDF's layout, but
characters are glitched (see screenshot). So, maybe someone will see my
bottle sent to the ocean and help me with this Font problem. I'm not sure
how I could make the PdfDecoder class realize that the Font used to render
the characters is embedded (or not?).

Well, anyway, thanks for your help !

Best regards,

Raffaele NICOLAU
Développement B4One  Portier Bénévole
INFLUE
Tel : +33 (0)1 46 97 56 34
Email : [EMAIL PROTECTED]



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] iText dynamic pdf using http stream to IE6

2005-01-06 Thread Bill Ensley
I may have just been lucky due to my unique needs but I
use a buffer page that writes itself based on the browser type
(JSP)
%
String user = request.getHeader(User-Agent);
if(user.indexOf(MSIE) != -1  user.indexOf(Windows) != -1){
out.print(body leftMargin=\0\ topMargin=\0\ scroll=\no\);
  out.print(EMBED src=\PDFPreview.pdf?type=pdf\ width=\100%\
height=\100%\ fullscreen=\yes\ type=\application/pdf\);
}
else{
  out.print(body leftMargin=\0\ topMargin=\0\
scroll=\no\);
  out.print(scriptdocument.location =
'PDFPreview.pdf?type=pdf';/script);
}
%

Of course I use the various fixes as well:

baos.setContentType(application/pdf);
response.setContentLength(baos.size());

Hope this helps anyone.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Bruno
Sent: Thursday, January 06, 2005 7:30 AM
To: David Ewing
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] iText dynamic pdf using http stream to
IE6


Quoting David Ewing [EMAIL PROTECTED]:

 I actually have an answer instead of a question.

Thanks for your very comprehensive answer.

The different problems you tackled keep turning up on the mailing-list on a
regular basis. In most cases people have to puzzle the answer together based
on
different replies (sometimes useful, sometimes not so useful). I know that
can
be a real pain. If it's OK for you, I'll add your answer to the FAQ so that
it
will be published with the next release.

br,
Bruno


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] why is PdfGraphics2D using cb.showText(s) instead of cb.showTextKerned(s) ?

2005-01-06 Thread Bill Ensley
Is there any way to make the AWT and PDF Spacing match closer?

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paulo
Soares
Sent: Thursday, December 30, 2004 6:52 AM
To: bodo teichmann; itext-questions@lists.sourceforge.net
Subject: RE: [iText-questions] why is PdfGraphics2D using cb.showText(s)
instead of cb.showTextKerned(s) ?


It's a design option. The pdf and the awt spacing will not match in any
case. 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of bodo teichmann
 Sent: Thursday, December 30, 2004 1:23 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] why is PdfGraphics2D using 
 cb.showText(s) instead of cb.showTextKerned(s) ?
 
 just wondering ,why PdfGraphics2D seems to ignore the  font's 
 kerning ?
 and why does it use
 FontMetrics fm = getFontMetrics();
   double width = fm.stringWidth(s);
 instead of this:
double mywidth =  baseFont.getWidthPointKerned(s,fontSize);
 or
double mywidth =  baseFont.getWidthPoint(s,fontSize);
 
 bodo
 
 
 
 ---
 The SF.Net email is sponsored by: Beat the post-holiday blues
 Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
 It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Re: why is PdfGraphics2D using cb.showText(s) instead of cb.showTextKerned(s) ?

2005-01-07 Thread Bill Ensley
I may be mistaken, but iText uses Fractional Metrics on fonts by default?

Of course this is good, but AWT and Swing fart on Fractional Metrics.

I have successfully overridden methods in View that measure the text
and now have a Fractional Metrics JTextPane that outputs to iText
almost exactly as seen on the screen.

There is quite a bit of code to modify, so I won't post it all here, 
but if anyone is interested I will be glad to forward along
what I have learned.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of bodo
teichmann
Sent: Friday, January 07, 2005 3:51 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Re: why is PdfGraphics2D using cb.showText(s)
instead of cb.showTextKerned(s) ?


BTW: javas Graphics2D.drawString() unfortunantely ignores kerning().
but for kerning,  you can correct the the glyph position by hand:
first call Font.createGlyphVector()
then use kering table from the font and correct the glyph positions with 
the value from the kering table, then call Graphics2D.drawGlyphVector().
Bodo




Paulo Soares schrieb:
 Perhaps next week. I have a couple of ideas.
 
 
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On 
Behalf Of Bill Ensley
Sent: Thursday, January 06, 2005 8:40 PM
To: iText Mail Group
Subject: RE: [iText-questions] why is PdfGraphics2D using 
cb.showText(s) instead of cb.showTextKerned(s) ?

Is there any way to make the AWT and PDF Spacing match closer?

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paulo
Soares
Sent: Thursday, December 30, 2004 6:52 AM
To: bodo teichmann; itext-questions@lists.sourceforge.net
Subject: RE: [iText-questions] why is PdfGraphics2D using 
cb.showText(s)
instead of cb.showTextKerned(s) ?


It's a design option. The pdf and the awt spacing will not 
match in any
case. 


-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On 
Behalf Of bodo teichmann
Sent: Thursday, December 30, 2004 1:23 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] why is PdfGraphics2D using 
cb.showText(s) instead of cb.showTextKerned(s) ?

just wondering ,why PdfGraphics2D seems to ignore the  font's 
kerning ?
and why does it use
FontMetrics fm = getFontMetrics();
  double width = fm.stringWidth(s);
instead of this:
   double mywidth =  baseFont.getWidthPointKerned(s,fontSize);
or
   double mywidth =  baseFont.getWidthPoint(s,fontSize);

bodo



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, 

almosthttp://www.thinkgeek.com/sfshirt

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



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

 
 
 
 ---
 The SF.Net email is sponsored by: Beat the post-holiday blues
 Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
 It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Re: why is PdfGraphics2D using cb.showText(s) instead of cb.showTextKerned(s) ?

2005-01-07 Thread Bill Ensley
Thank you for your efforts, I tried it and it looks good for the PDF, 
but my problem is in AWT and SWING itself and how they measure text.
iText has much more control. :(

Bill Ensley
Bear Printing



-Original Message-
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Friday, January 07, 2005 10:04 AM
To: Bill Ensley
Subject: RE: [iText-questions] Re: why is PdfGraphics2D using
cb.showText(s) instead of cb.showTextKerned(s) ?


I posted a solution but the mailing list is really slow. Try this. 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bill Ensley
 Sent: Friday, January 07, 2005 4:44 PM
 To: iText Mail Group
 Subject: RE: [iText-questions] Re: why is PdfGraphics2D using 
 cb.showText(s) instead of cb.showTextKerned(s) ?
 
 I may be mistaken, but iText uses Fractional Metrics on fonts 
 by default?
 
 Of course this is good, but AWT and Swing fart on Fractional Metrics.
 
 I have successfully overridden methods in View that measure the text
 and now have a Fractional Metrics JTextPane that outputs to iText
 almost exactly as seen on the screen.
 
 There is quite a bit of code to modify, so I won't post it all here, 
 but if anyone is interested I will be glad to forward along
 what I have learned.
 
 Bill Ensley
 Bear Printing
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of bodo
 teichmann
 Sent: Friday, January 07, 2005 3:51 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Re: why is PdfGraphics2D using 
 cb.showText(s)
 instead of cb.showTextKerned(s) ?
 
 
 BTW: javas Graphics2D.drawString() unfortunantely ignores kerning().
 but for kerning,  you can correct the the glyph position by hand:
 first call Font.createGlyphVector()
 then use kering table from the font and correct the glyph 
 positions with 
 the value from the kering table, then call 
 Graphics2D.drawGlyphVector().
 Bodo
 
 
 
 
 Paulo Soares schrieb:
  Perhaps next week. I have a couple of ideas.
  
  
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bill Ensley
 Sent: Thursday, January 06, 2005 8:40 PM
 To: iText Mail Group
 Subject: RE: [iText-questions] why is PdfGraphics2D using 
 cb.showText(s) instead of cb.showTextKerned(s) ?
 
 Is there any way to make the AWT and PDF Spacing match closer?
 
 Bill Ensley
 Bear Printing
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Behalf Of Paulo
 Soares
 Sent: Thursday, December 30, 2004 6:52 AM
 To: bodo teichmann; itext-questions@lists.sourceforge.net
 Subject: RE: [iText-questions] why is PdfGraphics2D using 
 cb.showText(s)
 instead of cb.showTextKerned(s) ?
 
 
 It's a design option. The pdf and the awt spacing will not 
 match in any
 case. 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of bodo teichmann
 Sent: Thursday, December 30, 2004 1:23 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] why is PdfGraphics2D using 
 cb.showText(s) instead of cb.showTextKerned(s) ?
 
 just wondering ,why PdfGraphics2D seems to ignore the  font's 
 kerning ?
 and why does it use
 FontMetrics fm = getFontMetrics();
   double width = fm.stringWidth(s);
 instead of this:
double mywidth =  baseFont.getWidthPointKerned(s,fontSize);
 or
double mywidth =  baseFont.getWidthPoint(s,fontSize);
 
 bodo
 
 
 
 ---
 The SF.Net email is sponsored by: Beat the post-holiday blues
 Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
 It's fun and FREE -- well, 
 
 almosthttp://www.thinkgeek.com/sfshirt
 
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 
 
 ---
 The SF.Net email is sponsored by: Beat the post-holiday blues
 Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
 It's fun and FREE -- well, 
 almosthttp://www.thinkgeek.com/sfshirt
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 
 ---
 The SF.Net email is sponsored by: Beat the post-holiday blues
 Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
 It's fun and FREE -- well, 
 almosthttp://www.thinkgeek.com/sfshirt
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
  
  
  
  ---
  The SF.Net email is sponsored by: Beat the post-holiday blues
  Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek

RE: [iText-questions] itext -- help needed

2005-01-21 Thread Bill Ensley
NEED MORE INPUT!!!

What is it that your program does.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Najaf
Shah
Sent: Friday, January 21, 2005 9:54 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] itext -- help needed


Hi,
   I've written a program that makes use of the itext
librarythe problem is that even on a dual xeon
with loads of ram and scsi drives, it's pretty slow. 

I'd welcome any ideas that you might have to speed the
program up..has anyone tried to use gcj to
accomplish this...if yes, can you tell me how to go
about doing this?

Thank you!



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] PdfGraphics2D convertImagesToJPEG

2005-01-21 Thread Bill Ensley



HelloPaulo, 

I just 
upgraded my internal version of iText to your newest 
version.

Thank you 
for adding my convertImagesToJPEG option to PdfGraphicsPrinter.

One other 
note on this subject, would it be advisable to add the same
funtionality 
to the private setPaint() method when Texture paint is used 
or
the Paint 
type cannot be identified? I see that you are using a 
BufferedImage
and dumping 
that into the PDF, JPEG conversion would be of help here 
too.

I have added 
this to my own version and it works great.

Thanks for 
all of your hard work

Bill 
Ensley
Bear 
Printing



RE: [iText-questions] Print half-size Ms-Word booklet ATTENTION: NEW PROGRAM AVAILABLE

2005-03-23 Thread Bill Ensley
Hello all,

I have an internal program that I wrote for imposing PDF's and I have
been planning for some time to package it up and give it back to the
project.

This post motivated me to give you at least something.

The source is still too messy to give back, but I have included 
a link to an executable JAR file that will work for now.

http://www.bearprinting.com/Smash.zip

You can add and edit N-UP layouts and scale imposed size.

It also supports imposing images through embedded JIMI.

For Lynn Allan, the layout you need to add is:

2 up statement portrait (8.5 x 11)
left:0
top:0
rows:1
cols:2
cols gutter:0
rows gutter:0
width:8.5
height:11

Measurements are in inches.

I am releasing this program for all iText users, I hope that 
it is as valuable to you as it is to me.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lynn
Allan
Sent: Tuesday, March 22, 2005 11:00 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Print half-size Ms-Word booklet on 8.5x11
paper


Summary of a long email:
I'm trying to get a Ms-Word 2003 half-size booklet to print out such
that it uses a full-page sheet of letter paper. I haven't been able to
get Ms-Word to do this. As described in the following, can this be
done with your utility using n-up imposition such that the top
half and bottom half on a 8.5 x 11 sheet are identical on both
sides?

More info
... sorry for the length and TIA for looking it over.
... also, thanks for making your software available

Here is a link to a Word example that illustrates the problem:
http://inverse.sf.net/Misc/EightPageDocBooklet_4.25w_5.5h.doc
http://inverse.sf.net/Misc/EightPageDocBooklet_4.25w_5.5h.pdf

I have been attempting an approach using a pdf print driver. So far,
I've tried dozens of combinations/permutations of  settings for the
trial version of Adobe Acrobat 7.0 and the free version of pdf995, but
they don't quite do what I need. Close, but frustratingly not quite.
The commercial CutePdf works, but I don't have any budget for this
project. Perhaps I don't know what I'm doing, haven't been getting
enough sleep, or need to find some smart pills. g

The commercial CutePdf works, but I don't have any budget for this
project. Here's what it looks like, which also givesan illustration of
what I want to do.
http://inverse.sf.net/Misc/CutePdfResult_OK.pdf

Prior to spending the time and effort to explore other available
software with n-up imposition capabilities, I wanted to check if
your software utility can do what my requirements involve, as further
described below. My impression is that you might have a simple answer
that will save me a lot of time. That could be either, no, it
doesn't, or yes, it does and here is how.

To be useful, the n-up printing has to have the top half and
bottom half be the same for both sides of a half size (4.25 x 5.5)
duplexed booklet page. Otherwise, there will be manual collation after
printing which defeats the purpose. For example, with a twenty page
booklet, pages 5, 6, 15, and 16 have to be on the same half page in a
specific relationship to each other, or you've got a mess. The bottom
half has to have exactly the same correct layout as the top half.

Typical n up software that I've looked at so far would take an eight
page booklet, and put all eight pages on the front and back of one
single letter sized sheet of paper (8.5 x 11) That isn't what I'm
looking for.

It doesn't work to use custom size paper, because the low-end
duplexing HP 1320 printer I'm using for content development only
supports automatic duplexing with standard paper sizes (letter, legal,
A4). Otherwise, it reverts to manual feed, with all the associated
paper handling problems. The HP 1320 duplexing seems to work quite
well with standard paper sizes. Its rollers keep holding on to the
paper throughout the printing, and this gives the paper much less of a
chance to misfeed.

I'm trying to prepare content that other people/organizations can
freely download from the internet and print perhaps 50 copies by
themselves for classroom usage. This has the potential to greatly
reduce the hassle and expense of making these publications available
at no charge.

Thanks again, especially for providing this software,
Lynn Allan




---
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.net email is sponsored by Microsoft Mobile  Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn

[iText-questions] PdfGraphics2D Layer Problem

2005-04-07 Thread Bill Ensley



HelloAll!

Interesting bug? here, I am using a JTextPane for 
styled text and am calling
it's 
paint() method and passing a Graphics object to it to paint itself 
onto.

This 
works well with other Graphics objects, ie Screen, BufferedImage, Print, 
etc.

But when 
I pass it a PdfGraphics2D object it always wants to be painted on the 
top.

ie:

JTextPane 
t = new JTextPane();t.setText("helloworld - hello world 
");t.setSize(300,300);t.setLocation(75,75);
t.setVisible(true);t.setOpaque(false);t.paint(g2);

g2.setColor(Color.GREEN);g2.fillRect(50,0,25,25);

This code 
will paint the JTextPane on top of the rectangle.

If 
anybody has any bright ideas, I would be greatful.

Bill 
Ensley
Bear 
Printing




RE: [iText-questions] PdfGraphics2D Layer Problem

2005-04-07 Thread Bill Ensley



I believe I may have solved this 
one:

It looks like the JTextPane assumes text 
should be on top of everything else and makes a copy of the graphics 
object
and paints it last.

I dug into the code and found where it 
passes that new graphics object to the StyledDocument to paint itself to 
and
started there instead:

Rectangle alloc = 
getVisibleEditorRect();t.getUI().getRootView(ta).paint(g2, 
alloc);

This bypasses the Swing RepaintManager and 
passes the graphics directly to the StyledDocument to paint.

If anyone sees something else that perhaps 
would work better, please let me know.

Bill Ensley
Bear Printing


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Bill 
  EnsleySent: Thursday, April 07, 2005 11:36 AMTo: iText 
  Mail GroupSubject: [iText-questions] PdfGraphics2D Layer 
  Problem
  HelloAll!
  
  Interesting bug? here, I am using a JTextPane for 
  styled text and am calling
  it's 
  paint() method and passing a Graphics object to it to paint itself 
  onto.
  
  This 
  works well with other Graphics objects, ie Screen, BufferedImage, Print, 
  etc.
  
  But 
  when I pass it a PdfGraphics2D object it always wants to be painted on the 
  top.
  
  ie:
  
  JTextPane t = new 
  JTextPane();t.setText("helloworld - hello world 
  ");t.setSize(300,300);t.setLocation(75,75);
  t.setVisible(true);t.setOpaque(false);t.paint(g2);
  
  g2.setColor(Color.GREEN);g2.fillRect(50,0,25,25);
  
  This 
  code will paint the JTextPane on top of the rectangle.
  
  If 
  anybody has any bright ideas, I would be greatful.
  
  Bill 
  Ensley
  Bear 
  Printing
  
  


[iText-questions] CMYK Image

2005-04-18 Thread Bill Ensley



I realize this isn't the proper mail group for this 
question, 
but does anyone out there have a good way of getting 
a
CMYK image, either tif or jpg, into 
Java?

I heavily use PdfGraphics2D and would like to be able 
to pass
a CMYK image in some cases.

Bill Ensley
Bear Printing


RE: [iText-questions] FW: Request for U.S. Export Information -Lowagie Classes- iText.0 .92.jar

2005-04-19 Thread Bill Ensley
I needed a good laugh.

thanks
bill ensley
bear printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matt
Benson
Sent: Tuesday, April 19, 2005 9:34 AM
To: TRANS GET Software License Manager, (GE Trans);
'itext-questions@lists.sourceforge.net'
Cc: Powell, Michael A (GE Trans); Garls, Sharon (GE Trans)
Subject: Re: [iText-questions] FW: Request for U.S. Export Information
-Lowagie Classes- iText.0 .92.jar


Doesn't this presume (mostly incorrectly) that iText
is developed in the US?

-Matt

--- TRANS GET Software License Manager, (GE Trans)
[EMAIL PROTECTED] wrote:

  GE Transportation is in the process of reviewing
 your software product
  Lowagie Classes-iText.0.92.jar.
  In order to determine whether the software is
 subject to Federal Export
  Administration Regulations (EAR), we are
 requesting that you provide the
  Export Control Classification Number (ECCN)  that
 classifies this software
  according to the Commerce Control List.  This
 number is used to determine
  if an export license is required by the U.S.
 Department of Commerce in
  order for our company to export the software to
 our affiliates abroad
  and/or to provide access to our non-US citizen
 employees.
 
  We appreciate your cooperation in this matter.  If
 you do not have access
  to this information, please forward this request
 to the appropriate
  personnel in your company.  Please copy our email
 address on the request
  ([EMAIL PROTECTED]) so that we may
 follow up.  Typically this
  information is maintained in the legal department
 and/or organization
  responsible for regulatory procedures.
 
  For additional information regarding US Export, or
 for assistance in
  obtaining the ECCN for your product, you can
 contact the Bureau of
  Industry and Security (BIS) Office of Exporter
 Services at 202-482-4811 or
  their Western regional office at 949-660-0144 for
 assistance.  Additional
  information is also available on the Department of
 Commerce's website at
 
 http://www.bxa.doc.gov/licensing/exportingbasics.htm
 
 
  GE Transportation Software License Manager
  F  513-786-4461
  E  [EMAIL PROTECTED]
 
  Sharon Garls
  Michael Powell



---
 This SF.Net email is sponsored by: New Crystal
 Reports XI.
 Version 11 adds new functionality designed to reduce
 time involved in
 creating, integrating, and deploying reporting
 solutions. Free runtime info,
 new features, or free trial, at:
 http://www.businessobjects.com/devxi/728
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/itext-questions




__
Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] CMYK Image

2005-04-19 Thread Bill Ensley
I thought so, I had been using it for a while and thought it was
working properly, but when I went back to update some code I
did some testing and found that many different types of CMYK images
were throwing invalid colorspace errors and failing to load.

Unfortunately, I don't have the image knowledge i'd like to have.

I have attached a guilty image to this post, if anyone is feeling
adventuresome,
let me know what you find.

Thanks all,

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paulo
Soares
Sent: Tuesday, April 19, 2005 1:59 AM
To: Bill Ensley; iText Mail Group
Subject: RE: [iText-questions] CMYK Image


Won't JAI work?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Bill Ensley
 Sent: Monday, April 18, 2005 11:56 PM
 To: iText Mail Group
 Subject: [iText-questions] CMYK Image

 I realize this isn't the proper mail group for this question,
 but does anyone out there have a good way of getting a
 CMYK image, either tif or jpg, into Java?

 I heavily use PdfGraphics2D and would like to be able to pass
 a CMYK image in some cases.

 Bill Ensley
 Bear Printing



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] CMYK Image

2005-04-20 Thread Bill Ensley
Thank you for the code, but with the test images I have, I cannot even
get past the fileload operation.

It returns an empty PlanerImage

Bill Ensley
Bear Printing

-Original Message-
From: Thomas Kübler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 11:57 PM
To: Bill Ensley
Subject: Re: [iText-questions] CMYK Image


hallo,

we use jai for converting th einput images in the output colorspace.
we have no trouble with the jai-conversion only if we have a lot of
images to convert we get sometimes, depends on the memory you have in the
machine, an memory error.

we put the code below.

with regards

thomas kübler



   public static void startImageConvert( String inputImageFileNameString,
String outputImageFileNameString,
boolean invert) throws Exception {

 boolean tiffile = false;
 //
 RenderedOp inputImage =
JAI.create(fileload,inputImageFileNameString);
 //
 if ( inputImageFileNameString.endsWith(.tif) ||
inputImageFileNameString.endsWith(.tiff) )
   tiffile = true;
 //
 ColorModel inputColorModel = inputImage.getColorModel();
 //
 if (cat.isDebugEnabled())
   cat.debug(input image... Components [ 
+ inputColorModel.getNumComponents() +  ]);
   cat.debug(input image... ColorSpace [ 
+ getColorSpaceTyp(inputColorModel.getColorSpace(). 
getType()) +  ]);
 //

 JAI.create(filestore, colorConvert( inputImage,
  invert,
  outputColorSpaceTypInt,
  inputColorModel.getNumComponents(),
  tiffile), outputImageFileNameString , 
TIFF );

 if (cat.isDebugEnabled())
   cat.debug(ready...);
   cat.debug(file save... [  + outputImageFileNameString +  ]);
   }


   public static BufferedImage colorConvert(  RenderedOp src, boolean
invert,
int outcolorspaceInt,int components, boolean filetype) {

 int inputImageColorSpace = ColorSpace.TYPE_RGB;
 ICC_ColorSpace inputICCColorSpace = null;
 //
 if ( src.getColorModel().getNumComponents() == 1 ) {
   inputImageColorSpace = ColorSpace.TYPE_GRAY;
   inputICCColorSpace = defaultGrayColorSpace;
   //
 } else if ( src.getColorModel().getNumComponents() == 3 ) {
   inputImageColorSpace = ColorSpace.TYPE_RGB;
   inputICCColorSpace = defaultRGBColorSpace;
   //
 } else if ( src.getColorModel().getNumComponents() == 4 ) {
   inputImageColorSpace = ColorSpace.TYPE_CMYK;
   inputICCColorSpace = defaultCMYKColorSpace;
   //
 } else {
   // kein unterstützter Farbraum gefunden
   inputImageColorSpace = ColorSpace.TYPE_RGB;
   inputICCColorSpace = defaultRGBColorSpace;
 }

 ICC_ColorSpace outputICCColorSpace = iccOutputColorSpace;

 if ( iccOutputColorSpace.getProfile().getColorSpaceType() ==
outcolorspaceInt ) {
   outputICCColorSpace = iccOutputColorSpace;
   cat.debug(iccOutputColorSpace...);
 } else if ( outcolorspaceInt == ColorSpace.TYPE_RGB ) {
   outputICCColorSpace = defaultRGBColorSpace;
   // outputColorSpaceTypInt = ColorSpace.TYPE_RGB;
   cat.debug(defaultRGBProfile...);
 } else if ( outcolorspaceInt == ColorSpace.TYPE_GRAY ) {
   outputICCColorSpace = defaultGrayColorSpace;
   // outputColorSpaceTypInt = ColorSpace.TYPE_GRAY;
   cat.debug(defaultGrayProfile...);
 } else {
   outputICCColorSpace = iccOutputColorSpace;
   cat.debug(iccOutputColorSpace default...);
 }
 boolean inverttif = false;
 //
 if ( filetype  components == 4 ) {
   src = convertCMYKtoRGB(src);
 }

 // ParamterBlock für das Ausgangs-Color-Format aufbauen
 ParameterBlockJAI pbjai = new ParameterBlockJAI(colorconvert);
 // ausgangsfarbraum ColorSpace aufbauen
 ColorModel inputColorModel = getOutPutColorModel(
 inputICCColorSpace,inputICCColorSpace.getProfile().getColorSpaceTyp
e());
 ColorModel cm =
getOutPutColorModel(outputICCColorSpace,outcolorspaceInt);
 // image zuweisen
 pbjai.addSource(src);
 // colormodel zuweisen
 pbjai.setParameter(colormodel,cm);
 // Image Layout aufbauen
 ImageLayout imagelayout = new ImageLayout();

 imagelayout.setSampleModel(cm.createCompatibleSampleModel(src.getWidth(
),
src.getHeight()));
 // Rendering Hints
 cat.debug(RenderingHints...);
 RenderingHints hints = new RenderingHints(JAI.KEY_IMAGE_LAYOUT,
imagelayout);
 // ausführen der transformation
 cat.debug(RenderedOp...);
 RenderedOp output = JAI.create(colorconvert, pbjai, hints);
 // Raster aufbauen
 WritableRaster newImageRaster =
output.getAsBufferedImage(null,null).getRaster();
 //
 // neues image zurück
 //
 if ( inverttif ) {
   cat.debug(Invertieren...);
   byte swap[] = new byte

RE: [iText-questions] control image embedding

2005-05-06 Thread Bill Ensley
I am using iText to generate PDF. I want the size of the output PDF file
can be as small as possible. I
want to know if iText would allow user to select the resolution and
compression options of images to be
embedded into the document. If it is to be printed, users would select 300
DPI, if it is for web use, they might select 72 DPI.

Sure, why not.  Just put a selection box in your page that posts to
create the PDF, then, get the selection and resize the image accordingly.

We do this everyday.

-Bill Ensley
Bear Printing

---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Problems generating PDF file from a Servlet

2005-05-11 Thread Bill Ensley
I also use a web framework (though not struts)
and I also had a problem trying to send back
a PDF through it, it's best to set up a 
seperate direct servlet for this.

-Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of George
 Maggessy
 Sent: Wednesday, May 11, 2005 11:43 AM
 To: [EMAIL PROTECTED]
 Cc: itext-questions@lists.sourceforge.net
 Subject: RE: [iText-questions] Problems generating PDF file from a
 Servlet
 
 
 Hi Paulo,
 
 It doesn't work either.
 
 Maybe my problem is in the fact that I do a forward from a
 Struts Action (Print.do) to my servlet PrintServlet that in
 fact generates the pdf file. When the MSIE opens the
 SAVE/OPEN file window it shows the file name as if it were
 Print.do?dummy=report.pdf. The dummy parameter that
 finishes with .pdf was a suggestion found on internet.
 
 Best Regards,
 George Maggessy
 
 --- Paulo Soares [EMAIL PROTECTED] wrote:
  This works for me:
  
  response.setContentType(application/pdf);
  response.setContentLength(baos.size());
  response.setHeader(Content-disposition,  inline;
  filename=report.pdf);
  ServletOutputStream sos = response.getOutputStream();
  baos.writeTo(sos);
  sos.flush();
  
  
   -Original Message-
   From: [EMAIL PROTECTED] 
   [mailto:[EMAIL PROTECTED] On
  
   Behalf Of George Maggessy
   Sent: Wednesday, May 11, 2005 5:41 PM
   To: itext-questions@lists.sourceforge.net
   Subject: [iText-questions] Problems generating PDF file
  from a Servlet
   
   Hi Gurus,
   
   I have a Servlet that opens a pdf file generate
  directly
   from iText, I mean, I do not generate a pdf file
  before. I
   can open this pdf in MSIE or Mozilla when I run it on a
  web
   server on my machine (Windows 2000), but it doesn't
  work
   when I deploy this application on an unix environment
  and
   try to run this servlet on MSIE. In this case, the
  browser
   asks me to open or save the pdf file. I fails even if I
  try
   to save or open this file. 
   
   Here goes a piece of code:
   
   OutputStream os = (ByteArrayOutputStream)
  mgr.getPDF(lst);
   
   response.setHeader(Expires, 0);
   response.setHeader(Cache-Control,
   must-revalidate, post-check=0,
   pre-check=0);
   response.setHeader(Pragma, public);
   response.setContentType(application/pdf);
   response.setContentLength(os.size());
   
   out = response.getOutputStream();
   os.writeTo(out);
   
   out.flush();
   
   
   Best regards,
   George
   
   
 
   __ 
   Do you Yahoo!? 
   Yahoo! Mail - Find what you need with new enhanced
  search. 
   http://info.mail.yahoo.com/mail_250
   
   
   ---
   This SF.Net email is sponsored by Oracle Space
  Sweepstakes
   Want to be the first software developer in space?
   Enter now for the Oracle Space Sweepstakes!
   http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
   ___
   iText-questions mailing list
   iText-questions@lists.sourceforge.net
  
 
 https://lists.sourceforge.net/lists/listinfo/itext-questions
   
  
  
 
 
   
 Yahoo! Mail
 Stay connected, organized, and protected. Take the tour:
 http://tour.mail.yahoo.com/mailtour.html
 
 
 
 ---
 This SF.Net email is sponsored by Oracle Space Sweepstakes
 Want to be the first software developer in space?
 Enter now for the Oracle Space Sweepstakes!
 http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] potential market for iText book

2005-05-31 Thread Bill Ensley
Bruno,

I'd buy the book whether I'd read it or not just to say thanks.

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bruno
 Lowagie
 Sent: Friday, May 27, 2005 3:22 AM
 To: 'itext-questions@lists.sourceforge.net'
 Subject: [iText-questions] potential market for iText book


 Hello all,

 I have a request for information to all iText users.

 Suppose a book on iText were to be written, what would be the potential
 market? If a publisher asked me to make a list of people that are aware
 of the market, who could I suggest
 as contact person?

 On my tempory list, I have:
 - Leonard Rosenthol (PDF Sages)
 - Horst Reiterer (myJavaServer)
 - Matthew Schmidt (javalobby)
 - Sean Sullivan (Portland Java User Group)
 - Steve Mallett (osdir.com)
 But I am sure there must be more people that know more about the JAVA /
 iText / PDF market
 than Paulo and I.

 br,
 Bruno


 ---
 This SF.Net email is sponsored by Yahoo.
 Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
 Search APIs Find out how you can build Yahoo! directly into your own
 Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Pdf Resolution

2005-05-31 Thread Bill Ensley
I see from this thread that perhaps you aren't understanding
that it doesn't matter whether you have images or not,
Leonard is right, forget USER UNITS, it has already confused you.

and 8.5 x 11 page, (Letter in America) is 612 x 792 points (8.5*72 x 11*72)

This is NOT RESOLUTION!!!.

it is only a measurement of xy units.

The only thing you need to worry about for resolution is for your images.

you never need to worry about page size and resolution, the are not
dependent.

If you want an image to be 72dpi at 3 inches by 3 inches, then suppy an
image
216 x 216 pixels.  (3*72).

If you want an image to be 300dpi at 3 inches by 3 inches, then suppy an
image
900 x 900 pixels.  (3*300).

Does that make sense?

It's really simple once you get past the fact that USER UNITS and DPI are
two seperate things only partially related.

I hope this helps you

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Franck
 JACOB
 Sent: Tuesday, May 31, 2005 4:37 AM
 To: Leonard Rosenthol; itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Pdf Resolution


 thank you, if I understood what you said, if I don't have images in my
 document, that's not a problem. If my document has images, I have
 to adapt my
 document size to the  image with highest resolution in my
 document. so I have
 to adapt the font size of my text to the resolution, otherwise
 the font size
 would too small. is it correct?



 thank you
 franck




 Le Mardi 31 Mai 2005 12:26, Leonard Rosenthol a écrit :
  At 03:58 AM 5/31/2005, Franck JACOB wrote:
  I don't have any image in my document.
 
   Then I don't understand your original question, since text 
  vector data in a PDF is resolution INDEPENDANT!
 
  In the library user guide, it is said that to obtain the
 document size in
  points, you have to calculate the dimension in cm /2.54 *72, so  my
  resolution is 72 dpi.
 
   No, it's not.  That's misleading...
 
   It's 72 USER UNITS per inch.   A User Unit, in PDF-speak, is
  simply a way to handle that resolution independent functionality into a
  graphics model that is easily understandable.
 
   If you simply THINK that everything is 72dpi when laying out
  elements on the page, then Acrobat will do the right thing to
 render the
  data at whatever the output resolution is.
 
 
  Leonard
 
 
 --
 -
  Leonard Rosenthol
 mailto:[EMAIL PROTECTED]
  Chief Technical Officer  http://www.pdfsages.com
  PDF Sages, Inc.  215-938-7080 (voice)
215-938-0880 (fax)

 --
 Franck JACOB
 Développeur Projet OpenSI
 -
 Société SpeedInfo
 12, rue de la Tuilerie
 38170 Seyssinet-Pariset
 Tel: 04 76 21 15 85
 -
 http://www.speedinfo.fr
 http://www.opensi.org







 ---
 This SF.Net email is sponsored by Yahoo.
 Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
 Search APIs Find out how you can build Yahoo! directly into your own
 Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Mailing labels

2005-06-28 Thread Bill Ensley
Avery themselves have the measurements available, but
the best thing to do ( I think anyway, we use it everyday ) is
to use PdfGraphics2D and loop through the rows and cols
and translate the graphics object therefore not requiring
the knowledge of each x,y coordinate:

int top = labelSheet.top;
int left = labelSheet.left;
for(int r=0;rrows;r++){
  for(int c=0;ccols;c++){
g.translate(left, top);
doPaint(g);
top += label.height + label.gap;
  }
  left += label.width + label.gap
}

This is very simple to implement if you know your label measurements.

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bruno
 Lowagie
 Sent: Tuesday, June 28, 2005 8:29 AM
 To: Jay Parashar
 Cc: 'itext-questions@lists.sourceforge.net'
 Subject: Re: [iText-questions] Mailing labels
 
 
 Jay Parashar wrote:
 
 I wanted some helping in generating mailing labels (Avery 5260). 
 Any idea,
 code examples, how to achieve that?
 
 Where can one find the specs of Avery Labels?
 I found sites selling the labels, describing the size of a label,
 but I didn't find the margins needed, etc...
 br,
 Bruno
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Mailing labels

2005-06-28 Thread Bill Ensley
Sorry, my math was backwards (from memory), this is the real code we use:

  int left = labelSheet.left;
int top = labelSheet.top;

for(int c=0;ccols;c++){
  for(int r=0;rrows;r++){
g2.translate(left, top);
paint(g2);
g2.translate(-left, -top);
top += (label.height + label.gutterY);
  }
  top = label.top;
  left += (label.width + label.gutterX);
}

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bill
 Ensley
 Sent: Tuesday, June 28, 2005 8:47 AM
 To: iText Mail Group
 Subject: RE: [iText-questions] Mailing labels
 
 
 Avery themselves have the measurements available, but
 the best thing to do ( I think anyway, we use it everyday ) is
 to use PdfGraphics2D and loop through the rows and cols
 and translate the graphics object therefore not requiring
 the knowledge of each x,y coordinate:
 
 int top = labelSheet.top;
 int left = labelSheet.left;
 for(int r=0;rrows;r++){
   for(int c=0;ccols;c++){
   g.translate(left, top);
   doPaint(g);
   top += label.height + label.gap;
   }
   left += label.width + label.gap
 }
 
 This is very simple to implement if you know your label measurements.
 
 Bill Ensley
 Bear Printing
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Bruno
  Lowagie
  Sent: Tuesday, June 28, 2005 8:29 AM
  To: Jay Parashar
  Cc: 'itext-questions@lists.sourceforge.net'
  Subject: Re: [iText-questions] Mailing labels
  
  
  Jay Parashar wrote:
  
  I wanted some helping in generating mailing labels (Avery 5260). 
  Any idea,
  code examples, how to achieve that?
  
  Where can one find the specs of Avery Labels?
  I found sites selling the labels, describing the size of a label,
  but I didn't find the margins needed, etc...
  br,
  Bruno
  
  
  ---
  SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
  from IBM. Find simple to follow Roadmaps, straightforward articles,
  informative Webcasts and more! Get everything you need to get up to
  speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] webdav urls in Image.getInstance(URL url)

2005-07-19 Thread Bill Ensley
Can you access the webdav using java alone?
if you can, get the image as a byte[] and then pass it to iText

-Bill

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Cédric
 REYMANN
 Sent: Tuesday, July 19, 2005 7:59 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] webdav urls in Image.getInstance(URL url)


 Hello,

 In order to generate my pdf, I need to instanciate an Image from a webdav
 directory with an URL of the form https://mywebserver.com/webdav/;

 It seems that the webdav is accessed as the guest user. Of coures, it's
 absolutely logical but the problem is that I need authentication so that
 we can access user-restricted files.

 To be short : does iText support webdav authentication and how do
 I use it ?

 Regards,

 Cédric



 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] SWT or Graphics/Graphics2D to PDF

2005-07-22 Thread Bill Ensley
 JPanel panel = new JPanel();

 com.lowagie.text.Document document = new com.lowagie.text.Document();
 PdfWriter writer = PdfWriter.getInstance(document, new
 FileOutputStream(ASEDG2D.pdf));

 document.open();

 PdfContentByte cb = writer.getDirectContent();
 Graphics2D g2d = cb.createGraphics(PageSize.A4.width(),
 PageSize.A4.height());

 // The following line I wan't to replace by filling the g2d with
 // the Graphic of my existing JPanel: (Graphics2D) JPanel.getGraphics()
 // How can I do this?
 panel.paint(g2d);

 g2d.dispose();

 yes, it's that easy.

 Bill Ensley
 Bear Printing


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bianca
 Sent: Friday, July 22, 2005 2:07 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] SWT or Graphics/Graphics2D to PDF


 I just want to put my GUI (SWT) into a PDF, but I can't make it.Also can't
 find a hint in this mailinglist or on any other website... So somebody can
 help me?!

 I've got a JPanel, can get a Graphics or Graphics2D from it.
 I also know how to create a PdfContentByte and get a Graphics2d from it to
 draw in.
 But how can I get the Graphics2D of my JPanel to the PDFContentByte?

 JPanel panel = new JPanel();

 com.lowagie.text.Document document = new com.lowagie.text.Document();
 PdfWriter writer = PdfWriter.getInstance(document, new
 FileOutputStream(ASEDG2D.pdf));

 document.open();

 PdfContentByte cb = writer.getDirectContent();
 Graphics2D g2d = cb.createGraphics(PageSize.A4.width(),
 PageSize.A4.height());

 // The following line I wan't to replace by filling the g2d with
 // the Graphic of my existing JPanel: (Graphics2D) JPanel.getGraphics()
 // How can I do this?
 g2d.drawString(text, 100, 100);

 g2d.dispose();

 document.close();


 Thanks!
 Bianca

 --
 GMX DSL = Maximale Leistung zum minimalen Preis!
 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
 http://www.gmx.net/de/go/dsl


 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Help with outputting bytestream to PDF

2005-08-01 Thread Bill Ensley
Where exactly are you sending the baosPDF to the response.getOutputStream()?

There is a large section on servlet output streams on the iText website.

It may help you

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Kyle
 Sent: Friday, July 29, 2005 9:59 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Help with outputting bytestream to PDF
 
 
 Hi,
 
 I have a page that calls a servlet, that calls another
 class that gets a resultset.  I want that class to
 take the resultset, iterate through it, and call
 another class's method to display the output stream in
 a new pdf in IE (without creating a pdf file).  The
 problem is that it loads through the files, but it
 only displays a blank white screen...obviously I'm
 missing something with the outputstream part.  I've
 included some snippets of the code below, so only the
 itext related parts will be shown.  Any help will be
 GREATLY APPRECIATED!! :)
 
 Here is the servlet being called, all it does is call
 the next class:
 
 ---
 package com.scires.ntiraweb.beans;
 
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;
 import
 com.scires.ntiraweb.beans.ExportInstallPlanData_PDFShapes;
 import com.lowagie.text.pdf.PdfContentByte;
 
 public class PDFServletReport1 extends HttpServlet {
 
 protected void doGet(HttpServletRequest request,
 HttpServletResponse response)
   throws ServletException, IOException {
 private static final Logger log =
 Logger.getLogger(SchedulerServlet.class);
 try
 {
 ExportInstallPlanData_PDFShapes pdf = new 
 ExportInstallPlanData_PDFShapes();
 pdf.getPDFResult(request, response);
 }
 catch (Exception se) {
   log.info(se);
 }
 
 }
 
 protected void doPost(HttpServletRequest request,
 HttpServletResponse response)
   throws ServletException, IOException {
   doGet(request,response);
   }
 
 }
 --
 //And this is a snippet of the file that I want to
 call the class for the  
 // output stream
 -
 package com.scires.ntiraweb.beans;
 
 import com.lowagie.text.pdf.PdfContentByte;
 import com.scires.ntira.common.db.RSBean;
 import
 com.scires.ntira.common.constants.DatabaseConstants;
 import com.scires.ntiraweb.reports.itext.PDFShapes;
 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.ByteArrayOutputStream;
 import java.io.PrintWriter;
 import com.lowagie.text.*;
 import com.lowagie.text.pdf.*;
 
 public class ExportInstallPlanData_PDFShapes extends
 RSBean {
 
 public void getPDFResult(HttpServletRequest request,
 HttpServletResponse response)
 throws javax.servlet.ServletException,
 java.io.IOException {
   Document doc = new
 Document(PageSize.A4.rotate(),10,10,10,10);
   ByteArrayOutputStream baosPDF = new
 ByteArrayOutputStream();
 
   PdfWriter docWriter = null;
 try {
   PDFShapes pdfShape = new PDFShapes();
   docWriter = PdfWriter.getInstance(doc, baosPDF);
   doc.setPageSize(PageSize.A1);
   doc.open();
   PdfContentByte cb = docWriter.getDirectContent();
 
 // pdfShape.rectangle calls a method in the next class
 that will output  
 // the result 
 pdfShape.rectangle(5,6,10,8,cb);
 }
 
 ---
 And this is the method in PDFShapes that
 pdfShape.rectangle calls
 --
 public class PDFShapes {
 
 public void rectangle(int xCoord, int yCoord, int
 rectWidth, int rectHeight, PdfContentByte cbr ) { //
 x, y, width, height
 
   cbr.setLineWidth(10f);
   // draw a rectangle
   cbr.rectangle(xCoord, yCoord, rectWidth,
 rectHeight);
   cbr.stroke();
 
   // Model Rectangle (Adjust for scaling)
/*   cb.setLineWidth(10f);
   // draw a rectangle
   cb.rectangle(100, 700, 10, 10);
   cb.stroke(); */
 
 }
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions


---
SF.Net email is sponsored by: Discover Easy Linux

[iText-questions] (no subject)

2005-08-01 Thread Bill Ensley



Bravo Bruno, Bravo
As your mailing list, do we get to edit you? ;-)
Bill Ensley
Bear Printing
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of 
David
 Thielen
 Sent: Friday, July 29, 2005 2:25 PM
 To: itext-questions@lists.sourceforge.net
 Subject: RE: [iText-questions] release 1.3.2
 
 
 And we can all say we knew Bruno before he became a rich  famous 
author.
 
 - dave
 
 
 David Thielen
 303-499-2544
 www.windwardreports.com
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
Bruno
 Lowagie
 Sent: Friday, July 29, 2005 7:35 AM
 To: 'itext-questions@lists.sourceforge.net'
 Subject: [iText-questions] release 1.3.2
 
 I have just released iText1.3.2.
 I'm not very active on the mailing list lately, because I'm writing a 
book
 for Manning Publications: 'iText in Action'.
 ...
 
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration 
Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. 
http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Imagesize and DPI

2005-08-02 Thread Bill Ensley
you need to use image.scaleAbsolute(desiredWidth, desiredHeight);

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Malte
 Gräbe
 Sent: Tuesday, August 02, 2005 6:01 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Imagesize and DPI


 Hi,

 I have a major problem with adding images to an existing PDF File using
 PDfContentByte and PDFStamper.
 Adding the images works fine, but the images in the PDF document are lot
 of bigger than the source images. I already read the explanation posted in

 http://sourceforge.net/mailarchive/message.php?msg_id=255034

 but my problem is, that my source image is 72 dpi and its scaled bigger
 than the orgininal when its finally added to the document.
 In the iText documentation is 72dpi explained as the standard dpi for
 images in the PDF document, so i dont know what to do with this thing.

 imageToAdd = Image.getInstance(Images\\project-logo.jpg);

 // adds a page to the document ending
 lastPage = reader.getNumberOfPages();
 stamper.insertPage(lastPage+1, PageSize.A4);

 // adds image to added page
 imageToAdd.setAbsolutePosition((float) imagePositionX,
 (float)imagePositionY );

 // imagePage is a PDFContentByte and lastPage the int value of the last
 PDF Page
 imagePage = stamper.getOverContent(lastPage);

 imageToAdd.setAbsolutePosition((float) 100, (float)100 );
 imagePage.addImage(imageToAdd);


 I already tried imageToAdd.setDpi(72,72);


 Any ideas?

 Thanks.


 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Why out of memory

2005-08-10 Thread Bill Ensley
that's not enough memory.

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of yuanjk
 Sent: Wednesday, August 10, 2005 6:32 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Why out of memory


 I had wrote a servlet with PdfContentByte to create a 1000 page pdf
 dynamiclly . but out of memory , Then I wrote two test programe with
 1 circle ,
 the same resutl, out of memory.Can anybody help me,

 Thanks.

 PS; java -Xms64m -Xmx64m

 test 1 
 /*
  * $Id: Text.java,v 1.4 2005/05/09 11:52:50 blowagie Exp $
  * $Name:  $
  *
  * This code is part of the 'iText Tutorial'.
  * You can find the complete tutorial at the following address:
  * http://itextdocs.lowagie.com/tutorial/
  *
  * This code is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  *
  * itext-questions@lists.sourceforge.net
  */
 package itexttest;

 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.util.Iterator;

 import com.lowagie.text.Document;
 import com.lowagie.text.DocumentException;
 import com.lowagie.text.pdf.BaseFont;
 import com.lowagie.text.pdf.PdfContentByte;
 import com.lowagie.text.pdf.PdfWriter;
 import com.lowagie.text.FontFactory;
 /**
  * Adding text at an absolute position.
  */
 public class TestMemo {
 /**
  * Adding text at absolute positions.
  * @param args no arguments needed
  */
 public static void main(String[] args) {

 System.out.println(Text at absolute positions);

 // step 1: creation of a document-object
 Document document = new Document();

 try {

 // step 2: creation of the writer
 PdfWriter writer = PdfWriter.getInstance(document,
 new FileOutputStream(G:/JBuilder Project/iTextTest/outputPdf/text.pdf));

 // step 3: we open the document
 document.open();

 // step 4: we grab the ContentByte and do some stuff with it
 PdfContentByte cb = writer.getDirectContent();

 // first we draw some lines to be able to visualize
 the text alignment functions
 cb.setLineWidth(0f);
 cb.moveTo(250, 500);
 cb.lineTo(250, 800);
 cb.moveTo(50, 700);
 cb.lineTo(400, 700);
 cb.moveTo(50, 650);
 cb.lineTo(400, 650);
 cb.moveTo(50, 600);
 cb.lineTo(400, 600);
 cb.stroke();

 // we tell the ContentByte we're ready to draw text
 cb.beginText();

 BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,
 BaseFont.CP1252, BaseFont.NOT_EMBEDDED);

 for(int page=1;page=10;page++){
   cb.setFontAndSize(bf, 12);
   String text = Sample text for alignment;
   // we show some text starting on some absolute
 position with a given alignment
   cb.showTextAligned(PdfContentByte.ALIGN_CENTER,
 text +  Center, 250, 700, 0);
   cb.showTextAligned(PdfContentByte.ALIGN_RIGHT, text
 +  Right, 250, 650, 0);
   cb.showTextAligned(PdfContentByte.ALIGN_LEFT, text
 +  Left, 250, 600, 0);

   // we draw some text on a certain position
   cb.setTextMatrix(100, 400);
   cb.showText(Text at position 100,400.);

   // we draw some rotated text on a certain position
   cb.setTextMatrix(0, 1, -1, 0, 100, 300);
   cb.showText(Text at position 100,300, rotated 90
 degrees.);

   // we draw some mirrored, rotated text on a certain position
   cb.setTextMatrix(0, 1, 1, 0, 200, 200);
   cb.showText(Text at position 200,200, mirrored and
 rotated 90 degrees.);

   // we tell the contentByte, we've finished drawing text
   cb.endText();
 }
 }
 catch(DocumentException de) {
 System.err.println(de.getMessage());
 }
 catch(IOException ioe) {
 System.err.println(ioe.getMessage());
 }

 // step 5: we close the document
 document.close();
 }
 }



 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is Sponsored by the Better Software Conference  EXPO

RE: [iText-questions] RGBColors

2005-08-21 Thread Bill Ensley
I'm jumping into this thread half-blind, 
is the end goal passing in a color name to get a color?
if so, the W3C has an RGB color spec used in SVG
that is supposed to be a standard.

If that's not what this thread is about, ignore me.

Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Bruno
 Lowagie
 Sent: Sunday, August 21, 2005 8:28 AM
 To: Peter B. West
 Cc: [EMAIL PROTECTED]
 Subject: Re: [iText-questions] RGBColors
 
 
 Peter B. West wrote:
 
  Bruno,
 
  I just noticed RGBColors.java. 
  
 http://cvs.sourceforge.net/viewcvs.py/defoe/Folio/src/java/au/id/p
bw/folio/datatypes/ColorType.java?view=markup 

 has the X11 set, as in 
 http://peterbwest.bulldoghome.com/pages/peterbwest_bulldoghome_com/rgb.html 


 Different format, but nothing regular expressions can't handle. 

I needed conversion from colorname to Color real fast.
So I consulted Wikipedia and parsed the page containing RGB color values
into a Java class file as that was the quickest way to get what I needed.
The class isn't even released yet.
The class you are referring to looks interesting.
Maybe I should replace the RGBColors class by a similar one.
br,
Bruno


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] RGBColors

2005-08-22 Thread Bill Ensley
This book is sounding better and better,
it's so much easier to read if you're entertained as
well.

There's nothing like working when it's actually fun!

That's a great idea by the way about the 'Optional Content'.
Many developers are going to say Aha! I need that!.

On another note, I like that you are introducing how
easy it is to combine iText with everything else out there.

That's what truly makes it powerful is it's ability to
Play Nice with other API's.

-Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of bruno
 Sent: Sunday, August 21, 2005 11:30 PM
 To: iText Mail Group
 Subject: Re: [iText-questions] RGBColors


 Bill Ensley wrote:

 I'm jumping into this thread half-blind,
 is the end goal passing in a color name to get a color?
 if so, the W3C has an RGB color spec used in SVG
 that is supposed to be a standard.
 
 
 I know, I just needed a quick solution.
 I shouldn't have uploaded the class to CVS rightaway ;-)

 There is a fictional story-line in my book.
 The protagonist has a map of his (fictional) city in SVG.
 First he tries to write his own SVG SAX handler in order
 to visualize the map in PDF with iText (using nothing more
 than crimson, or Xerces,...).

 This way I, as writer, can explain some of the graphical
 features of iText.

 Then the main character realizes he is reinventing the wheel.
 There already exists a good SVG parser in Java: Batik.
 So he throws away his own SAX handler and he uses
 Batik to draw the map to a PdfGraphics2D object.

 This allows me to introduce another part of iText's functionality.
 I'll also need examples with JFreeChart and JasperReports for
 this chapter.

 Finally, the developer in the book will use Batik to draw
 different layers of 'Optional Content', so that the map has
 street names in different languages (radio buttons) and shows
 the location of restaurants, (movie) theatres, etc...

 I never knew writing would be that fun ;-)
 br,
 Bruno


 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Storing directly to the database

2005-08-22 Thread Bill Ensley



Absolutely, iText can output to any OutputStream.

For 
MySQL for example, I can get a BinaryStream and pass iText's OutputStream to 
it.

-Bill 
Ensley
Bear 
Printing

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Chuck 
  BoddySent: Monday, August 22, 2005 10:20 AMTo: 
  itext-questions@lists.sourceforge.netSubject: [iText-questions] 
  Storing directly to the database
  
  Hi,
  Instead of directly creating the 
  PDF on the file server..i would like to write it directly to the 
  database…..so
  That the PDF is never stored 
  anywhere other than the database…is this 
  possible??
  
  Thanks,
  Chuck
  
  
  
  Confidentiality Notice: This e-mail message, 
  including any attachments, is for the sole use of the intended recipient(s) 
  and may contain information that is confidential privileged and/or exempt from 
  disclosure under applicable law. Any unauthorized review, use, 
  disclosure or distribution is prohibited. If you are not the intended 
  recipient, please contact the sender by reply e-mail and destroy all copies of 
  the original 
message.


RE: [iText-questions] Can iText used in word processor application? Pls help me!!

2005-08-22 Thread Bill Ensley
If you just want to simply dump the data currently in the JTextPane:

Create a Document normally, 
create a ContentByte, 
create a Graphics2D from the ContentByte
use JTextPane.paint(Graphics2D).

There is a Graphics2D example in the Tutorial.

FOR BRUNO OR PAULO:
This Question has come up several times lately, I 
use this feature often and I would be happy to
create a small example to add to the tutorial.

Let Me know, 

-Bill Ensley
Bear Printing

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of BALA
 SINGAM
 Sent: Monday, August 22, 2005 10:39 AM
 To: Mark Hall
 Cc: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Can iText used in word processor
 application? Pls help me!!
 
 
 HI ,
  I reallt don't get what u mean. I'm new to java, can u guide me please.
 I have include partial of my source code here...pls let me know how to
 integrate the iText with my word processor.
 ---
 public class imageTest extends JFrame implements Printable
 {
 
  ComponentOrientation BidiConvert;
  
 
  protected JTextPane m_monitor;
  protected StyleContext m_context;
  protected DefaultStyledDocument m_doc;
  protected RTFEditorKit m_kit;
  protected JFileChooser m_chooser;
  protected SimpleFilter m_rtfFilter;
  protected JToolBar m_toolBar;
 
 public imageTest() {
super(Testing Image insertation);
setSize(600, 400);
 
m_monitor = new JTextPane();

m_kit = new RTFEditorKit();
m_monitor.setEditorKit(m_kit);
m_context = new StyleContext();
m_doc = new DefaultStyledDocument(m_context);
m_monitor.setDocument(m_doc);
//testDialog=new TestDialog(this);
JScrollPane ps = new JScrollPane(m_monitor);
getContentPane().add(ps, BorderLayout.CENTER);
 
 
 
 
 
  BALA SINGAM
 www.singam.net
 


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Font width differences between PdfGraphics2D and awt

2005-08-24 Thread Bill Ensley
I believe that fractional metrics are ON in the PDFGraphics2D
try setting fraction metrics to ON in your dummy AWT BufferedImage.

-Bill Ensley
Bear PRinting

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of oscar
 12321
 Sent: Wednesday, August 24, 2005 3:20 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Font width differences between PdfGraphics2D
 and awt


 Hello.

 I have written a class to write a PDF using PdfGraphics2D from
 DirectContent.

 I use the following code to get the String width:

   public float getStringWidth(Font font, String str)
   {
 g2.setFont(font);
 Rectangle2D textRect = g2.getFontMetrics().getStringBounds(str, g2);
 return ((Rectangle2D.Float)textRect).width;
   }

 With this and PdfGraphics2D all it's Ok.

 But now i am trying to use the same code to render the content in an
 standard AWT Graphics2D, and the results of this function for the
 same text
 and the same font are sigthly different. For example the with the string
 abcde 12345 ABCDE i get:

 101.0 in a dummy AWT BufferedImage like the one used in PdfGraphics2D
 95.06348  in PdfGraphics2D

 Is this normal?

 If it's normal it implies that i will never get the same results
 painting on
 an AWT Grpahics2D (for printing or previewing) as painting on
 PdfGraphics2D
 to get a PDF file.

 Is that correct?

 Any idea to solve the problem?

 Thanks in advance.

 Oscar.

 _
 Móviles, DVD, cámaras digitales, coleccionismo... Con unas
 ofertas que ni te
 imaginas. http://www.msn.es/Subastas/



 ---
 SF.Net email is Sponsored by the Better Software Conference  EXPO
 September 19-22, 2005 * San Francisco, CA * Development Lifecycle
 Practices
 Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
 Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions




---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Printer's Spread with iText

2005-09-22 Thread Bill Ensley
Here is a Executable Jar that does just that.

http://www.bearprinting.com/ReadersSpread.jar

It's uploading now, so wait a few minutes.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bruno
Sent: Thursday, September 22, 2005 12:18 AM
To: Larry Schmidlin
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Printer's Spread with iText

Larry Schmidlin wrote:

 Is there an easy way to create a pdf in the Printer's Spread format 
 using iText? i.e., I'm making a 20 page book and the pages are 2 
 sided, but half the size of a regular letter size. Thus, 4 pages are 
 put on a piece of paper, 2 pages on each side of the piece of paper.
 The paper is then cut or folded to create the book. (A very common 
 book size in bookstores).
 One printer says he'd prefer to see the pages like
 20/1  2/19,
 18/3  4/17,
 16/5  6/15,
 14/7  8/13,
 12/9  10/11
 Another printer says to create
 1/4  2/3,
 5/8  6/7,
 9/12  10/11,
 13/16  14/15,
 17/20  18/19.

 I see how I could play some tricks doing something similar to the 
 TwoOnOne example by creating some temporary pdfs, then combining them, 
 but thought I'd check if someone has solved it already.

For the Manning Book I have made the following example.
It puts a 4 page document on 1 page so that it can be folded.
You'll have to adapt the code, but especially the lines with addTemplate
should be interesting for you.

Document document = new Document(PageSize.A4);
try {
// we create a PdfReader object
PdfReader reader = new PdfReader(HelloUniverse.pdf);
// step 2
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(HelloWorldFolded.pdf));
// step 3
document.open();
// step 4
PdfContentByte cb = writer.getDirectContent();
PdfImportedPage page;
page = writer.getImportedPage(reader, 1);
cb.addTemplate(page, -0.5f, 0f, 0f, -0.5f,
PageSize.A4.width() / 2, PageSize.A4.height());
page = writer.getImportedPage(reader, 2);
cb.addTemplate(page, 0.5f, 0f, 0f, 0.5f, 0f, 0f);
page = writer.getImportedPage(reader, 3);
cb.addTemplate(page, 0.5f, 0f, 0f, 0.5f, PageSize.A4.width() /
2f, 0f);
page = writer.getImportedPage(reader, 4);
cb.addTemplate(page, -0.5f, 0f, 0f, -0.5f, PageSize.A4.width(),
PageSize.A4.height());
cb.setLineDash(20, 10, 10);
cb.moveTo(0, PageSize.A4.height() / 2f);
cb.lineTo(PageSize.A4.width(), PageSize.A4.height() / 2f);
cb.stroke();
cb.moveTo(PageSize.A4.width() / 2f, 0);
cb.lineTo(PageSize.A4.width() / 2f, PageSize.A4.height());
cb.stroke();
} catch (IOException e) {
e.printStackTrace();
} catch (DocumentException e) {
e.printStackTrace();
}
// step 5
document.close();

br,
Bruno


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] adding image in PDF

2005-09-26 Thread Bill Ensley
Sure, get the host and port from the servlet containter.

Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meghana
Dalvi
Sent: Monday, September 26, 2005 8:58 AM
To: Bruno Lowagie
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] adding image in PDF

File System..  hmm... 
Are you saying using path like like
C:/myProject/web/images/logo.gif
For local project: yes
I can access the image that way
but for actual implementation : might not be possible.
as implementation of project on server is done by other team.

I was wondering if there is any way to access the image with relative URL
the way we do in HTML pages?

At present I have hardcoded the image URL to
http://host:port#/images/logo.gif;

Thanks in advance
M.D.
--- Bruno Lowagie [EMAIL PROTECTED] wrote:

 Meghana Dalvi wrote:
 
 I have J2EE web application which has a link to
 print
 PDF document.When user clicks on this link , I
 create
 a PDF file dynamically. 
 
 Currently I am using URL to put the image in PDF.
 String url= http://host:port#/images/logo.gif;;
 Image logo = Image.getInstance(url);
 
 The problem is URL might change sometimes from http://host:8080 to
 https://host:8443
 So I would not want to rely on URL here.
 
 How do I place the image in the PDF without using
 URL
 path in web application
 
 Is the image reachable through the file system?
 br,
 Bruno
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] PDF file format specification

2005-09-26 Thread Bill Ensley
www.adobe.com

-bill 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Sent: Monday, September 26, 2005 2:02 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF file format specification

since it appears that iText does not support PDF file reading/parsing, I was
wondering if this group has access to the PDF file format specification.  I
would like to write a library that would read and parse PDF files.

Please let me know if the specification is known, or maybe even available
somewhere online.

Thank you.


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42 plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


FW: [iText-questions] Newbie: Please Help

2005-09-27 Thread Bill Ensley
Accessible to be viewed on the server, or have the pdf self-destruct.

These are 2 different things.

If on the server side, just check the date and if it's past the deadline,
don't return it to the client.

Bill Ensley
Bear Printing 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno
Lowagie
Sent: Tuesday, September 27, 2005 8:43 AM
To: Murtaza Lokhandwala
Cc: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Newbie: Please Help

Murtaza Lokhandwala wrote:

a particular file should
only be accessible for 1 week after creation. That is after a certain 
time / date pdf should not be accessible.
  

This is not possible with iText.
Only very expensive products can solve this problem.
br,
Bruno


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Question:

2005-10-18 Thread Bill Ensley



Have a look at JFreeChart.

It outputs to a Graphics2D object, just pass one from 
iText and you're done.

Bill Ensley
Bear Printing


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Krishna 
ChaitanyaSent: Tuesday, October 18, 2005 2:07 PMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] 
Question:

Hi All,
 I am creating pdf 
report and the report also nees to contain pie charts. Can someone please let me 
know if they have implemented this and would be interested in mailing me the 
sample code to do this.

Thanks
Krishna Beri.
__Do You Yahoo!?Tired 
of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: [iText-questions] Question:

2005-10-18 Thread Bill Ensley



Code for what? 

JFreeChart? seeit's tutorial
iText Graphics2D? see it's tutorial

I have no code to offer you, I just know that these 
questions have been seen often on this list.

If you do a search of the archives, the answer is 
likely there.

Bill Ensley
Bear Printing

Of course, I've never asked a question before looking 
in the archives. ; )


From: Krishna Chaitanya 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, October 18, 2005 4:18 
PMTo: Bill EnsleySubject: RE: [iText-questions] 
Question:

Can you pass on some sample code for that.I am really stuck with that 
now and not able to proceed..

Thanx in advance..

Regards,
Krishna.Bill Ensley [EMAIL PROTECTED] 
wrote:

  
  Have a look at JFreeChart.
  
  It outputs to a Graphics2D object, just pass one from 
  iText and you're done.
  
  Bill Ensley
  Bear Printing
  
  
  From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Krishna ChaitanyaSent: Tuesday, October 18, 2005 2:07 
  PMTo: itext-questions@lists.sourceforge.netSubject: 
  [iText-questions] Question:
  
  Hi All,
   I am creating pdf 
  report and the report also nees to contain pie charts. Can someone please let 
  me know if they have implemented this and would be interested in mailing me 
  the sample code to do this.
  
  Thanks
  Krishna Beri.
  __Do You 
  Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around 
  http://mail.yahoo.com 












Regards,
Krishna Chaitanya Beri,
Software Engineer,
DCXMTCC,ANAD,
DaimlerChrysler, Auburn Hills, 
MI,
Direct # 248-512-8851
Home # 248-853-7053

"True happiness is wanting what you have, not having what you 
want."


__Do You Yahoo!?Tired 
of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: [iText-questions] Help ---- java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment

2005-10-18 Thread Bill Ensley



You are trying to runJFreeChart in a headless 
environment.

While this can be done with iText, I believe that 
JFreeChart requires a head for most functions.

Bill Ensley
Bear Printing


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Krishna 
ChaitanyaSent: Tuesday, October 18, 2005 4:21 PMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] Help 
 java.lang.NoClassDefFoundError: 
sun/awt/X11GraphicsEnvironment

Hi All..

I am trying to produce an image of a pie chart using JFreeChart and then 
embed that into the PDF document. The following is the error I am getting while 
I am trying to create the image.

 ExtendedMessage: [Servlet Error]-[sun/awt/X11GraphicsEnvironment]: 
java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironmentat 
java.lang.Class.forName1(Native Method)at 
java.lang.Class.forName(Class.java(Compiled Code))at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:72)at 
java.awt.Font.initializeFont(Font.java:285)at 
java.awt.Font.init(Font.java:319)at 
org.jfree.chart.plot.PiePlot.clinit(PiePlot.java:186)at 
org.jfree.chart.ChartFactory.createPieChart3D(ChartFactory.java:416)at 
ebompdo.aarDispositionCountReport.createChart(aarDispositionCountReport.java:1067)at 
ebompdo.aarDispositionCountReport.doPost(aarDispositionCountReport.java:945)at 
ebompdo.aarDispositionCountReport.doGet(aarDispositionCountReport.java:77)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)at 
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)at 
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)at 
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)at 
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:292)at 
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)at 
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:47)at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:877)at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:502)at 
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:178)at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)at 
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)at 
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)at 
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:267)at 
com.ibm.ws390.wc.httpcatcher.WS390Router$WS390RouterDispatcher.dispatch(WS390Router.java:405)at 
com.ibm.ws390.wc.httpcatcher.WS390Router$WS390RouterDispatcher.dispatchByURI(WS390Router.java:364)at 
com.ibm.ws390.wc.httpcatcher.WS390Router$WS390RouterDispatcher.service(WS390Router.java:318)at 
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:68)at 
com.ibm.ws390.wc.http.HttpConnection.readAndHandleRequest(HttpConnection.java:518)at 
com.ibm.ws390.wc.http.HttpConnection.handle390Request(HttpConnection.java:437)at 
com.ibm.ws390.wc.httpcatcher.WS390HttpTransport.handleRequest(WS390HttpTransport.java:94)at 
com.ibm.ws390.wc.httpcatcher.WS390HttpTransportWrapper.httprequest(WS390HttpTransportWrapper.java:55)at 
com.ibm.ws390.orb.ServerRegionBridge.invoke(ServerRegionBridge.java:386)at 
com.ibm.ws390.orb.ORBEJSBridge.invoke(ORBEJSBridge.java:174)
Please help me out in this regards. 
Thanx in advance.

Regards,
Krishna.












Regards,
Krishna Chaitanya Beri,
Software Engineer,
DCXMTCC,ANAD,
DaimlerChrysler, Auburn Hills, 
MI,
Direct # 248-512-8851
Home # 248-853-7053

"True happiness is wanting what you have, not having what you 
want."




Yahoo! 
Music Unlimited - Access over 1 million songs. Try it free.


RE: [iText-questions] java code for wmf to png/jpg

2005-10-24 Thread Bill Ensley
You could reverse engineer the iText WMF parser and output a png or a jpeg
using any of java's imaging libraries.

I did this and it works great.

I would pass it over to you, however, it doesn't go directly to an image, it
is parsed into my custom DOM and would 
Be of no use to you.

Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Monday, October 24, 2005 4:44 PM
To: itext
Subject: [iText-questions] java code for wmf to png/jpg

Hi;

 

I'm hoping someone can help on this. Does anyone know of a java library that
will convert a Windows wmf file to png or jpg?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 

 




---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course Free
Certification Exam for All Training Attendees Through End of 2005 Visit
http://www.jboss.com/services/certification for more information
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] Image Type Detection

2005-10-25 Thread Bill Ensley



Just check the extension.

.txt
.doc
.pdf
.jpg

etc

Bill Ensley
Bear Printing


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Dan 
McKeonSent: Tuesday, October 25, 2005 12:32 PMTo: Bruno 
LowagieCc: itext-questions@lists.sourceforge.netSubject: 
Re: [iText-questions] Image Type Detection
I just wasn't sure if iText could 
tell me if my input file is ASCII or PCL. I figured out how to detect PDF. 
I invoke PdfReader and if it throws an exception, I know it's not PDF. 
Is there anything like that for ASCII or PCL? 

  
  
Bruno Lowagie 
  [EMAIL PROTECTED] 
  10/25/2005 01:26 PM 

  


  
To
  Dan McKeon 
[EMAIL PROTECTED] 

  
cc
  itext-questions@lists.sourceforge.net 

  
Subject
  Re: [iText-questions] Image Type 
Detection
  


  
  Dan McKeon wrote: I am a programmer on an Image 
Team. The documents in our system are  TIFF, JPEG, ASCII, PCL, 
PDF. I wanted to code a web service that  could detect what was 
being input and just always output a PDF. That I can understand. You 
want to write some software that can detect the format of a file.What I 
didn't understand is why you would want to stuff that in the Image 
class.I'm still not sure if your mail contains a question or an 
intention.br,Bruno

  
  
Thismessagemaycontainconfidentialinformationintendedonlyfortheuseoftheaddressee(s)namedaboveandmaycontaininformationthatislegallyprivileged.Ifyouarenottheaddressee,orthepersonresponsiblefordeliveringittotheaddressee,youareherebynotifiedthatreading,disseminating,distributingorcopyingthismessageisstrictlyprohibited.Ifyouhavereceivedthismessagebymistake,pleaseimmediatelynotifyusbyreplyingtothemessageanddeletetheoriginalmessageimmediatelythereafter.Thankyou.


RE: [iText-questions] Re: creating Press optimized Pdf From your API

2005-10-28 Thread Bill Ensley
In Java you will need to use an API that supports CMYK images such as JAI.

You can open a PNG with JAI and then convert it to CMYK and then insert it
Into iText as a Java Image.

As for text, if you have text already in a PNG, it is no longer text, just
A bitmap rendering of the text, so it will not change when you place it
Into a PDF.

-Bill Ensley
Bear Printing

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bruno
Lowagie
Sent: Friday, October 28, 2005 1:02 AM
To: john berry; 'itext-questions@lists.sourceforge.net'
Subject: [iText-questions] Re: creating Press optimized Pdf From your API

I'm not a specialist as far as images are concerned, I forward this to the
mailing list.

john berry wrote:

Hi Bruno,

   I have to convert a png image which is a business card may contain 
some text in a specified font and an image(logo)into CMYK pdf image.
Now, I needs a suggession from your side that which option should i 
follow to do this...

1. Convert PNG image directly to pdf. I have a confusion in it that 
will fonts or text be affected or not?
  

iText will not alter your PNG.
The only thing that may change is the resolution of the image (depending on
how you add it).
You can tune the resolution yourself by scaling the image.

2. Create an image in CMYK using pdfWriter

I don't understand this.

 and copy my
image pixel by pixel to it by converting each pixel to CMYK .

I think this is overkill.
But it's better to hear what the other mailing list subscribers think about
this.
As I already told you: I am not an image specialist.
br,
Bruno


---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


RE: [iText-questions] parse error

2005-11-10 Thread Bill Ensley
Use / instead of \ or use \\ instead of \

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dawn
Sent: Thursday, November 10, 2005 11:31 AM
To: Bruno Lowagie
Cc: itext-questions@lists.sourceforge.net
Subject: [iText-questions] parse error

Hi,

I am having a difficult time to parse the xml file.
if the xml file in the local folder, it will be ok, like:
parser.parse(test.xml, getXmlHandler(document));

But if the xml file in other folder, I am not able to parse:
for example:
parser.parse(\C:\iText\test.xml, getXmlHandler(document));

Actually my xml file is in this path:
 \\efs10\HOME2\DATA\avt\VAL\B011\B011J195L.XML;
But when I wrote the code:
parser.parse(\\efs10\HOME2\DATA\avt\VAL\B011\B011J195L.XML,
getXmlHandler(document));
I got an error: 
invalid escape sequence(valid ones are \b \t\ n \f \r \ \' \\)


Please help, thanks!

Dawn










__
Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


FW: [iText-questions] XML Image Base64

2005-11-29 Thread Bill Ensley






From: Bill Ensley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 10:17 AMTo: 'Landon B. 
Chelf'Subject: RE: [iText-questions] XML Image 
Base64

You'll need to create your own parser that can convert the 
BASE64 back into java bytes or jpeg, or whatever format it is 
in.

I do this now and it works well.

I would forward on code, but I use hexedecimal instead of 
BASE64. If you decide to make the switch, let me know and I 

will post code.

-Bill Ensley
Bear Printing


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Landon 
B. ChelfSent: Tuesday, November 29, 2005 9:18 AMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] XML 
Image Base64


Hello,

Im working with iTextdotNet and can 
understand the java versions of code so any examples I can probably get working 
in csharp just fine. Now on to the problem. I need to figure out how 
to use the image/ tag in an xml file to store and properly insert a 
base64 encoded image so that I can store the image data in the xml 
template. For example I have the following xml 
file:

itext
 
paragraphMy Example/paragraph
 
imageBASE64 DATA HERE/image
/itext

I want to be able to use the 
PDFWriter to go straight from XML to PDF. I can do all the normal 
functions but this has me stumped since have to include the image in the XML for 
this project.

Thanks in advance for any 
help.

Landon


RE: [iText-questions] XML Image Base64

2005-12-01 Thread Bill Ensley



Question then, Are you subclassing the iText parser with 
your own Handler?

If not, then you will need to to handle the special tags 
needed for an embedded image.

I will follow this up with some code.

-bill


From: Landon B. Chelf 
[mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 
2005 5:55 AMTo: Bill EnsleySubject: RE: [iText-questions] 
XML Image Base64


Bill,

Well I think we will 
try Hexadecimal for now so I would greatly appreciate your code that already 
handles that.

Sincerely,
Landon 
Chelf
IT 
Supervisor
Star Robbins  
Company





From: Bill 
Ensley [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 1:17 
PMTo: Landon B. 
ChelfSubject: RE: 
[iText-questions] XML Image Base64

You'll need to create 
your own parser that can convert the BASE64 back into java bytes or jpeg, or 
whatever format it is in.

I do this now and it 
works well.

I would forward on 
code, but I use hexedecimal instead of BASE64. If you decide to make the 
switch, let me know and I 
will post 
code.

-Bill 
Ensley
Bear 
Printing




From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Landon B. ChelfSent: Tuesday, November 29, 2005 9:18 
AMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] XML Image 
Base64
Hello,

Im working with iTextdotNet and can 
understand the java versions of code so any examples I can probably get working 
in csharp just fine. Now on to the problem. I need to figure out how 
to use the image/ tag in an xml file to store and properly insert a 
base64 encoded image so that I can store the image data in the xml 
template. For example I have the following xml 
file:

itext
 
paragraphMy Example/paragraph
 
imageBASE64 DATA HERE/image
/itext

I want to be able to use the 
PDFWriter to go straight from XML to PDF. I can do all the normal 
functions but this has me stumped since have to include the image in the XML for 
this project.

Thanks in advance for any 
help.

Landon


RE: [iText-questions] text editor and itext

2005-12-09 Thread Bill Ensley



I use one, you simply pass a PdfGraphics2D object to the 
JTextArea's paint method.

it's that simple. you don't need anything 
special.


Any other questions, I'm happy to answer 
them.

Paulo, Bruno et al:

Would you like an example of this for the tutorial or 
book?

-Bill Ensley
Bear Printing


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Dominic 
MaricicSent: Friday, December 09, 2005 9:15 PMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] text 
editor and itext


Are there any examples of an editor 
like JTextArea that has color, and the usual bold 
underline,  italics and then they data is transferred into itext? Id like to have such an editor and would rather not 
have to reinvent the wheel. If not, any tips and direction would be greatly 
appreciated.

Dominic


FW: [iText-questions] text editor and itext

2005-12-10 Thread Bill Ensley



What do you mean by parser?

Are you trying to get the StyledDocument and parse that 
into iText?

Give me some context for your project what is the end 
goal?

I will be happy to put together an example, just get me 
started.

-Bill Ensley
Bear Printing


From: Dominic Maricic 
[mailto:[EMAIL PROTECTED] Sent: Saturday, December 10, 2005 
3:48 PMTo: Bill Ensley; 'Dominic Maricic'; iText Mail 
GroupSubject: RE: [iText-questions] text editor and 
itext
I would definately like to see 
an example! Could you please post one here or email me? I've been struggling 
with this problem for a long time. I tried writing my own but could never write 
a decent parser. Thanks!Dominic--- "Bill Ensley" 
[EMAIL PROTECTED] wrote:From: "Bill Ensley" 
[EMAIL PROTECTED]Date: Fri, 9 Dec 2005 21:40:39 
-0800To: "'Dominic Maricic'" [EMAIL PROTECTED], "iText 
Mail Group" itext-questions@lists.sourceforge.netSubject: RE: 
[iText-questions] text editor and itext
I use one, you simply pass a PdfGraphics2D object to the 
JTextArea's paint method.

it's that simple. you don't need anything 
special.


Any other questions, I'm happy to answer 
them.

Paulo, Bruno et al:

Would you like an example of this for the tutorial or 
book?

-Bill Ensley
Bear Printing


From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Dominic 
MaricicSent: Friday, December 09, 2005 9:15 PMTo: 
itext-questions@lists.sourceforge.netSubject: [iText-questions] text 
editor and itext


Are there any examples of an editor 
like JTextArea that has color, and the usual bold 
underline,  italics and then they data is transferred into itext? Id like to have such an editor and would rather not 
have to reinvent the wheel. If not, any tips and direction would be greatly 
appreciated.

Dominic


  1   2   3   >