Re: [iText-questions] My plan to shut down the mailing-list

2012-10-09 Thread Bill Ensley
I think this is exactly what is needed.

We all see these questions that frustrate you.

I don't think anyone would take issue with the canned
answer scenario.

I would truly miss the list, I listen everyday and answer when
there is a question that fits my expertise (which is rare, true,
but does happen).

Just my $0.02

-Bill Ensley
www.bearprinting.com


On 10/8/2012 11:43 PM, Bruno Lowagie wrote:
 Maybe we should
 think of a pre-canned answer that isn't offensive. A
 one-answer-fits-many-questions solution for the questions that should be
 posted on another forum (such as stackoverflow)


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] My plan to shut down the mailing-list

2012-10-08 Thread Bill Ensley

+1

On 10/8/2012 8:02 AM, McGee, Edwin F. Sr. wrote:

I would agree with those wishing to keep the mailing list open and selectively 
responding/posting the questions which meet mailing list criteria.  As 
mentioned by another member of the mailing list, simply because I submit a 
question doesn't mean the question will be posted.  Furthermore, I understand 
that it may not even be answered.  When I did receive responses to my questions 
they were generally very helpful directing me toward a solution.  I have 
observed less than helpful responses to questions that should never have made 
it to the list.  I can also understand the frustration associated with members 
requesting immediate answers to their solutions with little or no effort on 
their part (e.g. reading the book(s) and/or searching the archives and 
examples).  Of all the lists I belong to, this is the one I read daily and 
contribute when I can.  I've been known to ask a few questions too and very 
much appreciate the assistance I have received.  I would be disappointed if 
this mailing list was no more.


--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Strange image colors - Problem with iText or System.Drawing?

2012-06-06 Thread Bill Ensley

How were these JPEGs created?

Is it the same PDF reader/Computer for local as well as web?

-Bill Ensley
www.bearpinting.com

On 6/6/2012 2:21 AM, Christoph Schramm wrote:

Hi,

I have a problem inserting an image in PDF.
Local everything works fine, the image looks pretty good. Online - 
same version of iText and System.Drawing - images sometimes have 
partially strange colors (see attachments).
Anybody seen this problem ever before? I have no idea where to look - 
is it a problem of System.Drawing or iText?


Help is really appreciated!

Thanks,
Chris


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] text color changes when adding PNG image

2012-05-25 Thread Bill Ensley

Hi Newbie2iText,

It is not uncommon for a PNG to cause issues in a PDF.

Likely your color model is changing under the hood based
on something in the PNG.

To test this, convert the PNG into a JPEG and see if it still
happens.

Perhaps you can change the color model of the PNG to match
what you are trying to achieve elsewhere in your PDF.

-Bill Ensley
www.bearprinting.com

On 5/25/2012 12:31 AM, Alexis Pigeon wrote:

Hi newbie2itext,

On 25 May 2012 00:48, newbie2itext newbie2c...@hotmail.com 
mailto:newbie2c...@hotmail.com wrote:


Basically just a repost of this, but the codes in last post is not
working
for me...
And I search through the web, cannot find a solution either...
Is there are something missing in his codes? Should I place his
codes before
or after my codes?


http://itext-general.2136553.n4.nabble.com/Problem-with-transparent-images-td2157256.html

my codes:
--

PdfStamper ps = ...
String imagePath = ...
int page = ...

...set values to some text fields...

Image newImage = Image.GetInstance(imagePath);
ps.GetOverContent(page).AddImage(newImage);

...set values to some text fields...

ps.FormFlattening = true;

ps.Close();


What do you mean by it's not working?
Does it throw an Exception? If so, where?
Is the final result different from what you expected? If so, how?

Also, you should consider sending a small, self-contained, correct 
example ( http://sscce.org/ ) of what your issue is, so that people 
here can have a look at it.
And remember that you are referring to a post that is 4 years old, and 
the iText API has undergone heavy changes since then.


Cheers,
alexis


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] text color changes when adding PNG image

2012-05-25 Thread Bill Ensley
You have answered your own question, you need to get the
PNG fixed first.

-Bill Ensley
www.bearprinting.com

On 5/25/2012 12:53 PM, newbie2itext wrote:
 Thanks for the reply.

 So what I'm doing is
 1. use PdfStamper to read an existing pdf and add some formfields onto it
 2. use PdfStamper to fill out the formfields in BaseColor.Blue, add a PNG
 image on the first page and flatten the document.

 All went well except the text I filled in the page with PNG image will be
 darker than other pages due to the color space issue.(see attached sample)
 http://itext-general.2136553.n4.nabble.com/file/n4654689/example.pdf
 example.pdf

 I don't think it's an issue cause by iText because it happens too when I
 copy-paste an PNG image in Acrobat.

 I tried to manually change the color space right after I instanciate the
 PdfStamper but it's not working, the text is still darker:
 ---

  PdfReader r = null;
  PdfStamper ps = null;
  FileStream outstream = null;

  // read existing PDF document
  r = new PdfReader(
new RandomAccessFileOrArray(this.inputFileName), null);

  outstream = File.Create(this.outputFileName);
  ps = new PdfStamper(r, outstream);

  PdfDictionary pp = new PdfDictionary();
  pp.Put(PdfName.TYPE, PdfName.GROUP);
  pp.Put(PdfName.S, PdfName.TRANSPARENCY);
  pp.Put(PdfName.CS, PdfName.DEVICERGB);

  PdfContentByte cb = ps.GetOverContent(1);
  cb.PdfWriter.Group = pp;
  cb.SetDefaultColorspace(PdfName.CS, PdfName.DEVICERGB);

  //...create textfield
  //...fill out textfield
  //...add PNG image

  ps.FormFlattening = true;

  ps.Close();


 --
 View this message in context: 
 http://itext-general.2136553.n4.nabble.com/text-color-changes-when-adding-PNG-image-tp4653811p4654689.html
 Sent from the iText - General mailing list archive at Nabble.com.

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Scaling imported Swing Elements

2012-05-17 Thread Bill Ensley
Hi Banjos

For starters you are mixing pixels and points.

Your pdf document is in points.

Your panel is in pixels.

You need to:

a) find out what your pixel per inch value is, likely 96 but not guaranteed. 
Most
Modern apps define their own pixel value.

B) If you are 96 then points = (pixels * .75)
Otherwise, you will need yo figure out the value that gets you to 72. (Points 
per inch)

- Bill Ensley
www.bearprinting.com


- Original Message -
From: bor...@avienthas.com
To: itext-questions@lists.sourceforge.net
Sent: Thu, 17 May 2012 03:54:35 -0700 (PDT)
Subject: [iText-questions] Scaling imported Swing Elements

Hi, 

 

I use following code to export a jPanel to PDF:

 

Document document = new Document(PageSize.A4);

 try {

 PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(C:\temp\test.pdf));

 document.open();

 PdfContentByte contentByte = writer.getDirectContent();

 PdfTemplate template = contentByte.createTemplate(500, 500);

 Graphics2D g2 = template.createGraphics(500, 500);

 double w = document.getPageSize().getWidth(); 

 double scale= w / jPanel1.getWidth();

 g2.scale(scale, scale);

 jPanel1.print(g2);

 g2.dispose();

 contentByte.addTemplate(template, 30, 300);

 } catch (Exception e) {

 e.printStackTrace();

 } finally {

 if (document.isOpen()) {

 document.close();

 }

 

It works fine, except for the scaling. I need the Panel to fit A4, but the
resulting document is always much smaller than A4. 

Can you please point out my error, or provide me with some code that works
better ?

 

Thanks,

 

Jannis 

 



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Scaling imported Swing Elements

2012-05-17 Thread Bill Ensley
Im sorry, my text correct messed up your name.

- bill

- Original Message -
From: Bill Ensley b...@bearprinting.com
To: Post all your questions about iText here 
itext-questions@lists.sourceforge.net
Sent: Thu, 17 May 2012 08:41:25 -0700 (PDT)
Subject: Re: [iText-questions] Scaling imported Swing Elements

Hi Banjos

For starters you are mixing pixels and points.

Your pdf document is in points.

Your panel is in pixels.

You need to:

a) find out what your pixel per inch value is, likely 96 but not guaranteed. 
Most
Modern apps define their own pixel value.

B) If you are 96 then points = (pixels * .75)
Otherwise, you will need yo figure out the value that gets you to 72. (Points 
per inch)

- Bill Ensley
www.bearprinting.com


- Original Message -
From: bor...@avienthas.com
To: itext-questions@lists.sourceforge.net
Sent: Thu, 17 May 2012 03:54:35 -0700 (PDT)
Subject: [iText-questions] Scaling imported Swing Elements

Hi, 

 

I use following code to export a jPanel to PDF:

 

Document document = new Document(PageSize.A4);

 try {

 PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(C:temptest.pdf));

 document.open();

 PdfContentByte contentByte = writer.getDirectContent();

 PdfTemplate template = contentByte.createTemplate(500, 500);

 Graphics2D g2 = template.createGraphics(500, 500);

 double w = document.getPageSize().getWidth(); 

 double scale= w / jPanel1.getWidth();

 g2.scale(scale, scale);

 jPanel1.print(g2);

 g2.dispose();

 contentByte.addTemplate(template, 30, 300);

 } catch (Exception e) {

 e.printStackTrace();

 } finally {

 if (document.isOpen()) {

 document.close();

 }

 

It works fine, except for the scaling. I need the Panel to fit A4, but the
resulting document is always much smaller than A4. 

Can you please point out my error, or provide me with some code that works
better ?

 

Thanks,

 

Jannis 

 



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Track PDF views?

2012-05-14 Thread Bill Ensley
Not sure what the official iText answer will be but from a security 
standpoint
this is not a very good idea.

There likely is no way to do what you want and even if there were, you would
be smart to ask yourself if you should.

-Bill Ensley
www.bearprinting.com

On 5/14/2012 4:48 PM, Andrew Mickish wrote:
 I would like to know when anyone views my PDF.

 This includes when someone downloads the PDF, sends it as an attachment in
 an email, and a third person opens the PDF in Adobe Reader.

 Is there some way to connect back to a server and increment a counter?

 Recent versions of Adobe Reader disable JavaScript by default, so the
 solution cannot include JavaScript.

 Thanks for any suggestions.


 --
 View this message in context: 
 http://itext-general.2136553.n4.nabble.com/Track-PDF-views-tp4633465.html
 Sent from the iText - General mailing list archive at Nabble.com.

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] Using PdfGraphics2D for making CMYK-Pdf

2012-04-18 Thread Bill Ensley
Yes,

you need to actually specify the CMYKColor class, the default Color 
classes will all be RGB.

-Bill Ensley
www.bearprinting.com

On 4/18/2012 4:09 AM, Муму Герасим wrote:
 Hello,

 i have some java swing components, that can be drawn in Graphics2D and i want 
 to draw them in PDF. It works fine with PdfGraphics2D like:
 PdfContentByte canvas = writer.getDirectContent();
 Graphics2D g2 = canvas.createGraphics(w, h);
 new MySwingComponent().paint(g2);

 Unfortunately i want to paint them as CMYK. Is there any hook or callbak, 
 that i can use to draw in CMYK?

 --
 Better than sec? Nothing is better than sec when it comes to
 monitoring Big Data applications. Try Boundary one-second
 resolution app monitoring today. Free.
 http://p.sf.net/sfu/Boundary-dev2dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] SVG Support in itext 5.2.0

2012-03-28 Thread Bill Ensley
Easiest solution is to use Batik and its transcoder matrix to write
to a PDFGraphics2D object.

I could probably dig up some old code it you cannot find it on their site.

-Bill Ensley
www.bearprinting.com

On 3/28/2012 5:11 AM, iText Info wrote:
 Op 28/03/2012 13:22, Thomas Kübler schreef:
 any help are welcome.
 The SVG code is very experimental. It's an abandoned project we've
 inherited from a developer who doesn't have any time to finish the code.

 This example works:
 http://xmlworker.svn.sourceforge.net/viewvc/xmlworker/trunk/src/test/java/examples/SvgTest.java?revision=275view=markup
 with this SVG file:
 http://xmlworker.svn.sourceforge.net/viewvc/xmlworker/trunk/src/test/resources/examples/tiger.svg?view=log

 But we've tested it with many other files where the example didn't work.
 We don't see SVG2PDF as a product. We released it in the hope somebody
 else would pick up the thread and continue working on it.

 --
 This SF email is sponsosred by:
 Try Windows Azure free for 90 days Click Here
 http://p.sf.net/sfu/sfd2d-msazure
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


[iText-questions] Licensing Question (not sure if appropriate for sales or not)

2012-03-14 Thread Bill Ensley
Hello,

We have been serving PDFs over the web using iText since the very 
beginning, late 2000 or early 2001.

We currently use a very old version, 2.1.3 I believe.

I am reading over the new licensing page and am trying to understand why
a Commercial License would be required to serve PDFs using the newer 
versions of iText.

We have always provided links on our site to iText and to the best of my 
knowledge
followed the rules.

I am wondering what we would need to change if we were to upgrade our 
version of iText.

Thank you for a wonderful product,

-Bill Ensley
www.bearprinting.com

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] jpanel to itext pdf

2012-01-29 Thread Bill Ensley
There is a section of the iText in Action book that covers this question 
in detail.

There are also many examples in the iText archives related to this.

I tell you this to teach you to fish instead of providing your meal for you.

-Bill Ensley
www.bearprinting.com

On 1/29/2012 12:33 AM, bijalvadher wrote:
 I have a jpanel of size 2326*750 and need to put its contents into pdf where
 in page size is a4.The fields in jpanel are not added in sequence so fields
 from any position can come and i need to create its correponding part in pdf
 with proportionate size and position
 the look and feel shold be same
 only size should be reduced when placed in pdf


 --
 View this message in context: 
 http://itext-general.2136553.n4.nabble.com/jpanel-to-itext-pdf-tp4337819p4337819.html
 Sent from the iText - General mailing list archive at Nabble.com.

 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] jpanel to itext pdf

2012-01-29 Thread Bill Ensley

I'm not sure I understand your question, so I'll ask my own.

Do you want to draw the contents of a JPanel into a PDF?

If so, all you need is to pass a PDFGraphics2D object from the 
appropriate page into your JPanel

and then ask the JPanel to paint itself.

If you are asking if iText can reformat your JPanel content to fit a 
certain page, then the answer is no.


It will have to work the other way around, you will have to format your 
JPanel to fit the PDF page you

are painting into.

-Bill Ensley
www.bearprinting.com

On 1/29/2012 8:18 PM, bijal vadher wrote:
I know you are talking about the scaling and transformation 
matrixbut only that doesnt solve my problem .I also need some 
control which can make it possible to move from one page to other...i 
can specify the page number it has to go to that particular page and 
write there...is that possible through itext.pls reply asap.Its very 
imp for me to deal this asap.


On Mon, Jan 30, 2012 at 1:23 AM, Bill Ensley b...@bearprinting.com 
mailto:b...@bearprinting.com wrote:


There is a section of the iText in Action book that covers this
question
in detail.

There are also many examples in the iText archives related to this.

I tell you this to teach you to fish instead of providing your
meal for you.

-Bill Ensley
www.bearprinting.com http://www.bearprinting.com

On 1/29/2012 12:33 AM, bijalvadher wrote:
 I have a jpanel of size 2326*750 and need to put its contents
into pdf where
 in page size is a4.The fields in jpanel are not added in
sequence so fields
 from any position can come and i need to create its correponding
part in pdf
 with proportionate size and position
 the look and feel shold be same
 only size should be reduced when placed in pdf


 --
 View this message in context:

http://itext-general.2136553.n4.nabble.com/jpanel-to-itext-pdf-tp4337819p4337819.html
 Sent from the iText - General mailing list archive at Nabble.com.



--
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft
developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,
CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
mailto:iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered
with a reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft
developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
mailto:iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with
a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php




--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers

Re: [iText-questions] Washed out (transparent) image

2012-01-18 Thread Bill Ensley

Hi Craig,

I'm new to this thread, but have quite a bit of experience here.

The math is simple once you wrap your head around it.

Say you have a 3 x 3 box that you want an image in.

At iText measurements, that box will have a (3x72pt) x (3x72pt) or 
216pt x 216pt size


If you want a screen resolution image, you would need to place a 216 x 
216 pixel image into that box.
If you want a print resolution image, you would need a higher resolution 
image, say 648 x 648 pixels.


So, short answer, if you are looking for a high quality output, you need 
roughly 3 times your bounding box for you pixels.


Hope this helps,

-Bill Ensley
www.bearprinting.com

On 1/18/2012 5:59 AM, Leonard Rosenthol wrote:

Downsampling is the term for reducing the resolution of an image.

From: Craig Edwards craig_edwa...@amp.com.au 
mailto:craig_edwa...@amp.com.au
Reply-To: Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

Date: Tue, 17 Jan 2012 16:51:29 -0800
To: Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

Subject: Re: [iText-questions] Washed out (transparent) image

Umm... sorry for the dumbassery, but how do you mean downsampling?  
I am merely inserting the image with no scaling... I've tried calling 
various combinations of image.scalePercent() based on the DPI ratio 
(360 : 72) and image.scaleAbsolute() to set a specific page and it 
always appears in the way you suggest.


Thanks.

Craig

*From:*Leonard Rosenthol [mailto:lrose...@adobe.com]
*Sent:* Tuesday, 17 January 2012 3:15 PM
*To:* Post here
*Subject:* Re: [iText-questions] Washed out (transparent) image

The problem isn't color, it appears that you are downsampling the 
resolution and thus losing image data.


Leonard

*From: *Craig Edwards craig_edwa...@amp.com.au 
mailto:craig_edwa...@amp.com.au
*Reply-To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Date: *Mon, 16 Jan 2012 15:00:30 -0800
*To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Subject: *Re: [iText-questions] Washed out (transparent) image

Thanks for the reply.  I should have mentioned that I had previously 
tried that and it doesn't appear to make any difference.  For 
reference, I've attached what it looks like when calling with 
rgbTransparencyBlending=true.


Any other thoughts would be much appreciated.  Thanks a lot.

Craig

*From:*Paulo Soares [mailto:psoa...@glintt.com]
*Sent:* Monday, 16 January 2012 9:17 PM
*To:* Post all your questions about iText here
*Subject:* Re: [iText-questions] Washed out (transparent) image

Call:

PdfWriter.setRgbTransparencyBlending(true);

Paulo



*From:*Craig Edwards [mailto:craig_edwa...@amp.com.au]
*Sent:* Monday, January 16, 2012 3:46 AM
*To:* itext-questions@lists.sourceforge.net
mailto:itext-questions@lists.sourceforge.net
*Subject:* [iText-questions] Washed out (transparent) image

Hello fellow iTexters...

One the images that I am embedding in my PDF appears washed out in
the final output.  The simplest test case is as follows:

Document doc = new Document(PageSize.A4);

PdfWriter.getInstance(doc, new
FileOutputStream(new File(washout.pdf)));

doc.open();

doc.add(Image.getInstance(checkpoints.png));

doc.close();

The image appears in the PDF, but the colours are not the same as
if you just view the image directly.  Note that I normally scale
the image so that it fits on the page, but I wanted to make the
test case as simple as possible (you can see the problem both with
and without scaling).

I've attached the image and the resulting PDF, and they are also
downloadable from the following URLs in case they don't make it
through:

http://dl.dropbox.com/u/48589982/checkpoints.png

http://dl.dropbox.com/u/48589982/washout.pdf

My initial googling suggests that I may need to set the color
space, but I am not 100% sure if a) that is really the problem and
b) exactly what the sequence of iText APIs I need to call if it
is.  Any thoughts/advice would be most welcome.  Thanks a lot.

Craig



This email message and any accompanying attachments may contain 
information that is confidential and is subject to legal privilege. If 
you are not the intended recipient, do not read, use, disseminate, 
distribute or copy this message or attachments. If you have received 
this message in error, please notify the sender immediately and delete 
this message. Any views expressed in this message are those of the 
individual sender, except where the sender expressly, and with 
authority, states them to be the views of AMP. Before opening any 
attachments, please check them for viruses and defects.




This email

Re: [iText-questions] Washed out (transparent) image

2012-01-18 Thread Bill Ensley

Email me the PDF - bill@bearprinting dot com

-Bill

On 1/18/2012 3:55 PM, Craig Edwards wrote:


Thanks for the feedback.  There must be something I am missing 
though...  the raw image properties are 1891 x 1335 pixels.  
Ultimately, it should be drawn into a bounding box on my page which is 
378 x 267 points wide (which is a 5:1 pixel-to-point ratio).


I've tried three different approaches:

-Calling image.scaleAbsolute(378, 267)

-Calling image.scalePercent(20)

-Adding the image with no scaling (obviously this doesn't fit all on 
the page though)


All three approaches don't display the image as it looks when viewed 
using an image viewer.


Interestingly, I downloaded a PDF Explorer to see if I could see how 
iText was storing the image.  According to the PDF Explorer, it knows 
it is 1891 x 1335 pixels.  The PDF Explorer also provides an image 
viewer panel where you can look at the images individually... in 
there, it looks just like it should.  It just doesn't display as it 
should when drawn on the page.  I thought it might be my Acrobat 
Reader (v9) but it also looks washed out on my mac using Preview.


I'm stymied... any other thoughts?

Craig

*From:*Bill Ensley [mailto:b...@bearprinting.com]
*Sent:* Thursday, 19 January 2012 3:22 AM
*To:* Post all your questions about iText here
*Subject:* Re: [iText-questions] Washed out (transparent) image

Hi Craig,

I'm new to this thread, but have quite a bit of experience here.

The math is simple once you wrap your head around it.

Say you have a 3 x 3 box that you want an image in.

At iText measurements, that box will have a (3x72pt) x (3x72pt) or 
216pt x 216pt size


If you want a screen resolution image, you would need to place a 216 x 
216 pixel image into that box.
If you want a print resolution image, you would need a higher 
resolution image, say 648 x 648 pixels.


So, short answer, if you are looking for a high quality output, you 
need roughly 3 times your bounding box for you pixels.


Hope this helps,

-Bill Ensley
www.bearprinting.com http://www.bearprinting.com

On 1/18/2012 5:59 AM, Leonard Rosenthol wrote:

Downsampling is the term for reducing the resolution of an image.

*From: *Craig Edwards craig_edwa...@amp.com.au 
mailto:craig_edwa...@amp.com.au
*Reply-To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Date: *Tue, 17 Jan 2012 16:51:29 -0800
*To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Subject: *Re: [iText-questions] Washed out (transparent) image

Umm... sorry for the dumbassery, but how do you mean downsampling?  
I am merely inserting the image with no scaling... I've tried calling 
various combinations of image.scalePercent() based on the DPI ratio 
(360 : 72) and image.scaleAbsolute() to set a specific page and it 
always appears in the way you suggest.


Thanks.

Craig

*From:*Leonard Rosenthol [mailto:lrose...@adobe.com]
*Sent:* Tuesday, 17 January 2012 3:15 PM
*To:* Post here
*Subject:* Re: [iText-questions] Washed out (transparent) image

The problem isn't color, it appears that you are downsampling the 
resolution and thus losing image data.


Leonard

*From: *Craig Edwards craig_edwa...@amp.com.au 
mailto:craig_edwa...@amp.com.au
*Reply-To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Date: *Mon, 16 Jan 2012 15:00:30 -0800
*To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Subject: *Re: [iText-questions] Washed out (transparent) image

Thanks for the reply.  I should have mentioned that I had previously 
tried that and it doesn't appear to make any difference.  For 
reference, I've attached what it looks like when calling with 
rgbTransparencyBlending=true.


Any other thoughts would be much appreciated.  Thanks a lot.

Craig

*From:*Paulo Soares [mailto:psoa...@glintt.com]
*Sent:* Monday, 16 January 2012 9:17 PM
*To:* Post all your questions about iText here
*Subject:* Re: [iText-questions] Washed out (transparent) image

Call:

PdfWriter.setRgbTransparencyBlending(true);

Paulo



*From:*Craig Edwards [mailto:craig_edwa...@amp.com.au]
*Sent:* Monday, January 16, 2012 3:46 AM
*To:* itext-questions@lists.sourceforge.net
mailto:itext-questions@lists.sourceforge.net
*Subject:* [iText-questions] Washed out (transparent) image

Hello fellow iTexters...

One the images that I am embedding in my PDF appears washed out in
the final output.  The simplest test case is as follows:

Document doc = new Document(PageSize.A4);

PdfWriter.getInstance(doc, new
FileOutputStream(new File(washout.pdf)));

doc.open();

doc.add(Image.getInstance(checkpoints.png));

doc.close();

The image appears in the PDF

Re: [iText-questions] Washed out (transparent) image

2012-01-18 Thread Bill Ensley

For the List Archives.

Problem:  Washed Out PNG Image
This issue was either a flaw in iText PNG Rendering, or a flaw in the 
imported PNG.


Solution:
Converting the Image from PNG to JPEG solved the issue.
A look under the hood at the PNG Rendering of iText is probably
a good idea.

-Bill Ensley
www.bearprinting.com

On 1/18/2012 3:59 PM, Bill Ensley wrote:

Email me the PDF - bill@bearprinting dot com

-Bill

On 1/18/2012 3:55 PM, Craig Edwards wrote:


Thanks for the feedback.  There must be something I am missing 
though...  the raw image properties are 1891 x 1335 pixels.  
Ultimately, it should be drawn into a bounding box on my page which 
is 378 x 267 points wide (which is a 5:1 pixel-to-point ratio).


I've tried three different approaches:

-Calling image.scaleAbsolute(378, 267)

-Calling image.scalePercent(20)

-Adding the image with no scaling (obviously this doesn't fit all on 
the page though)


All three approaches don't display the image as it looks when viewed 
using an image viewer.


Interestingly, I downloaded a PDF Explorer to see if I could see how 
iText was storing the image.  According to the PDF Explorer, it knows 
it is 1891 x 1335 pixels.  The PDF Explorer also provides an image 
viewer panel where you can look at the images individually... in 
there, it looks just like it should.  It just doesn't display as it 
should when drawn on the page.  I thought it might be my Acrobat 
Reader (v9) but it also looks washed out on my mac using Preview.


I'm stymied... any other thoughts?

Craig

*From:*Bill Ensley [mailto:b...@bearprinting.com]
*Sent:* Thursday, 19 January 2012 3:22 AM
*To:* Post all your questions about iText here
*Subject:* Re: [iText-questions] Washed out (transparent) image

Hi Craig,

I'm new to this thread, but have quite a bit of experience here.

The math is simple once you wrap your head around it.

Say you have a 3 x 3 box that you want an image in.

At iText measurements, that box will have a (3x72pt) x (3x72pt) or 
216pt x 216pt size


If you want a screen resolution image, you would need to place a 216 
x 216 pixel image into that box.
If you want a print resolution image, you would need a higher 
resolution image, say 648 x 648 pixels.


So, short answer, if you are looking for a high quality output, you 
need roughly 3 times your bounding box for you pixels.


Hope this helps,

-Bill Ensley
www.bearprinting.com http://www.bearprinting.com

On 1/18/2012 5:59 AM, Leonard Rosenthol wrote:

Downsampling is the term for reducing the resolution of an image.

*From: *Craig Edwards craig_edwa...@amp.com.au 
mailto:craig_edwa...@amp.com.au
*Reply-To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Date: *Tue, 17 Jan 2012 16:51:29 -0800
*To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Subject: *Re: [iText-questions] Washed out (transparent) image

Umm... sorry for the dumbassery, but how do you mean downsampling?  
I am merely inserting the image with no scaling... I've tried calling 
various combinations of image.scalePercent() based on the DPI ratio 
(360 : 72) and image.scaleAbsolute() to set a specific page and it 
always appears in the way you suggest.


Thanks.

Craig

*From:*Leonard Rosenthol [mailto:lrose...@adobe.com]
*Sent:* Tuesday, 17 January 2012 3:15 PM
*To:* Post here
*Subject:* Re: [iText-questions] Washed out (transparent) image

The problem isn't color, it appears that you are downsampling the 
resolution and thus losing image data.


Leonard

*From: *Craig Edwards craig_edwa...@amp.com.au 
mailto:craig_edwa...@amp.com.au
*Reply-To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Date: *Mon, 16 Jan 2012 15:00:30 -0800
*To: *Post here itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net

*Subject: *Re: [iText-questions] Washed out (transparent) image

Thanks for the reply.  I should have mentioned that I had previously 
tried that and it doesn't appear to make any difference.  For 
reference, I've attached what it looks like when calling with 
rgbTransparencyBlending=true.


Any other thoughts would be much appreciated.  Thanks a lot.

Craig

*From:*Paulo Soares [mailto:psoa...@glintt.com]
*Sent:* Monday, 16 January 2012 9:17 PM
*To:* Post all your questions about iText here
*Subject:* Re: [iText-questions] Washed out (transparent) image

Call:

PdfWriter.setRgbTransparencyBlending(true);

Paulo



*From:*Craig Edwards [mailto:craig_edwa...@amp.com.au]
*Sent:* Monday, January 16, 2012 3:46 AM
*To:* itext-questions@lists.sourceforge.net
mailto:itext-questions@lists.sourceforge.net
*Subject:* [iText-questions] Washed out (transparent) image

Hello fellow iTexters...

One the images that I am embedding in my PDF appears washed out
in the final output.  The simplest

Re: [iText-questions] Seeing guidance on PDF images

2011-10-03 Thread Bill Ensley

You probably need to add the actual iText.jar to your classpath as well.

-Bill Ensley
www.bearprinting.com

On 10/3/2011 8:19 AM, New Developer wrote:

correct the exe won't run
I have tried  java  -jar  itext-rups-1.0.0.jar
Exception in thread AWT-EventQueue-0 java.lang.NoClassDefFoundError: 
com/itextpdf/text/DocumentException

at com.itextpdf.rups.Rups.startApplication(Rups.java:79)
at com.itextpdf.rups.Rups$1.run(Rups.java:55)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.lang.ClassNotFoundException: 
com.itextpdf.text.DocumentException

at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 16 more

And this is what I get

Thanks


On 10/03/2011 11:10 AM, 1T3XT BVBA wrote:

On 3/10/2011 17:07, New Developer wrote:

I have downloaded RUPS  but can't get it to run


The exe won't run on Ubuntu, obviously.
But surely you can compile an executable jar of RUPS.


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book:http://www.itextpdf.com/book/
Please check the keywords list before you ask for 
examples:http://itextpdf.com/themes/keywords.php




--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Fwd: FW: Retrieving settings from PDF files using iText

2011-08-09 Thread Bill Ensley

This subject is not my expertise, so I just now picked up on it.

This is something that you should understand William:

You are not just talking to Bruno, Leonard, and Paolo, you are talking 
to THOUSANDS of iText developers who listen in on this list.


We all view this free list as a give a penny, get a penny format.  We 
ask a question when we have one and give an answer when

we see a question that we have experience with.

Simple rules:

Be nice.
Respect others time.
Be specific
Understand that this is the FREE list.

iText is Bruno's baby and he will always try to go the extra mile for 
you, but the rest of us are just going to ignore you and you will

lose a HUGE body of expertise with iText to answer your questions.

Sincerely,

-Bill Ensley
www.bearprinting.com

Loyal iText developer since 2001.



On 8/9/2011 11:03 AM, John Renfrew wrote:

William

As a fellow Brit please stop acting like a dick

Yes, Bruno can appear irascible but if you spent a small amount of 
time watching the list first you would work out just how much really 
valuable learning and code interchange happens, there is a great 
example only today of someone extending the codebase.


If you want to ask in a forum atmosphere then go over to stack 
overflow, or look first at the responses to people that turn up here 
either with URGENT as the post title or with badly formed questions 
that frankly appear to be a thinly veiled request for someone to 
shortcut real learning of what,if you take the time to read the ISO 
standard, is a SERIOUSLY complex piece of software engineering.


Just because one set of rules you seem to like applies somewhere else 
is in NO way an indicator that they either apply, or even should apply 
here. There are many different kinds of free, and not all free things, 
in fact, are.


Having Bruno, Leonard, Paolo and others respond in a helpful way to 
precise questions has significantly helped my expertise in the last 12 
months and behaving like a petulant child makes me quite angry on 
their behalf.

Please calm down and watch for a while



Sent while on the move

Begin forwarded message:

*From:* William Bell wrb...@btinternet.com 
mailto:wrb...@btinternet.com

*Date:* 9 August 2011 16:01:41 GMT+01:00
*To:* i...@1t3xt.info mailto:i...@1t3xt.info
*Cc:* itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net
*Subject:* *[iText-questions] FW: Retrieving settings from PDF files 
using iText*
*Reply-To:* Post all your questions about iText here 
itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net


And yes - that is my telephone you just called - but just remember I 
now have yours!


Kind regards

*William *

*William Bell *

*T*: +44 7795 463646

*E*: wrb...@btinternet.com mailto:wrb...@btinternet.com

*From:*William Bell [mailto:wrb...@btinternet.com]
*Sent:* 09 August 2011 15:57
*To:* 'i...@1t3xt.info mailto:i...@1t3xt.info'
*Cc:* 'itext-questions@lists.sourceforge.net 
mailto:itext-questions@lists.sourceforge.net'

*Subject:* RE: Retrieving settings from PDF files using iText

No we don't have a licence and frankly I now have now no intentions 
of buying one!


In over 15 years in the IT industry I have never come across someone 
who is so unhelpful and so dam right rude - you don't deserve 
people's support for your work.


If you would care to read the email you will see that 80%+ is just 
code - surely someone of your magnificence is not fazed by a little 
snippet of code?  It would take you all of about 1 minute to read it 
- surely you're not that desperate for money?


We've supported you by buying the book.  We've listened to you and 
gone away and learnt. And yet you still receive our request for help 
with utter arrogance.


A lady today enquired on how friendly this list was and your reply 
was as sweet as roses - but don't worry, I've made sure she sees the 
'real' you.


I'm a great believer in what goes around comes around - and for sure, 
you'll fall short one day and I just hope the person who you turn to 
for help is rude and as unhelpful as you.


*From:*1T3XT BVBA [mailto:i...@1t3xt.info] 
mailto:[mailto:i...@1t3xt.info]

*Sent:* 09 August 2011 15:37
*To:* William Bell
*Subject:* Re: Retrieving settings from PDF files using iText

On 9/08/2011 16:23, William Bell wrote:

Perhaps you could explain what is going on here and what the code 
should look like?


I'm sorry, but your mail is too long for me to spend time on, unless 
you give me your corporate address so that I can send you an invoice 
for my time.
Also you write that this project is part of a larger work, do you 
have a license for your use of iText?


--
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing 
Subversion and
the tools developers use with it. Learn more about uberSVN and get a 
free

download at: http

Re: [iText-questions] Graphics2D and ContentByte.addTemplate together

2011-08-05 Thread Bill Ensley
Hi Bruno,

Thanks for the suggestion, but that is how I'm doing it now.

Getting the content from the g2d and then adding the PdfImportedPage to it.

-Bill Ensley
www.bearprinting.com

On 8/4/2011 11:35 PM, 1T3XT BVBA wrote:
 On 1/08/2011 2:54, Bill Ensley wrote:
 Is there any way to force cb.addTemplate() to write on the same timeline
 as the Graphics2D content?
 A quick and untested answer: I wouldn't add the PdfTemplate to your cb
 object.
 I would add it to g2d.getContent() (assuming that your Graphics2D object
 is named g2d).

 I'm curious to know if this works ;-)

 --
 BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
 The must-attend event for mobile developers. Connect with experts.
 Get tools for creating Super Apps. See the latest technologies.
 Sessions, hands-on labs, demos  much more. Register early  save!
 http://p.sf.net/sfu/rim-blackberry-1
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] image vs background: color difference in CMYK

2011-08-05 Thread Bill Ensley

What output device are you printed to?

Many upper end output RIPs have color channels that process color in 
different ways.


For example, solid colors are rendered through a different channel than 
Images.


It may be that your channels are setup to render what is essentially the 
same color in different ways.


Most of these RIPs have options to turn off this color channel 
rendering, I would look for settings like that.


-Bill Ensley
www.bearprinting.com

On 8/5/2011 3:14 AM, Wim Lambrechts wrote:

Hello,

 I create a PDF page with background CMYK = 0,0,0,255 (full black). 
Next I create a CMYK image (same CMYK values) and put it onto the page.
When I open the PDF on screen, this is OK, but when printed, it seems 
the image is deeper black than the background.


PS: this issue is related to my previous one.

Creating the background:
 PdfContentByte  under = writer.DirectContentUnder;
 under.SaveState();
 under.SetCMYKColorFill(0,0,0,255);//CMYK value for black
 under.Rectangle(0, 0,PageSize.A4.Width,PageSize.A4.Height);
 under.Fill();
  
Creating the image:

 byte[] gradient =new  byte[255 * 4];
 for  (int  lcv = 0; lcv  256; lcv++)
 {
 gradient[lcv * 4 + 0] = 0;
 gradient[lcv * 4 + 1] = 0;
 gradient[lcv * 4 + 2] = 0;
 gradient[lcv * 4 + 3] = 255;// (byte)lcv;
 }
 Image  result =Image.GetInstance(256, 1, 4, 8, gradient);
 result.ScaleAbsolute(256, 50);
  
Thanks !



--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

[iText-questions] Graphics2D and ContentByte.addTemplate together

2011-08-04 Thread Bill Ensley
Hi Guys and Gals,

I hate to even ask this question as it is really out there.

I have an application where I created a Graphics2D object from a 
ContentByte.

While I have this Graphics2D object open, I also need to be able to call 
cb.addTemplate()
to add additional PDF content (from other files)

My problem is that sometimes the cb.addTemplate will end up on TOP of 
the Graphics2D content
even though it was written out first (on the layer below).

I suspect that cb.addTemplate() writes to the PDF on a different 
timeline than the Graphics2D content.

Is there any way to force cb.addTemplate() to write on the same timeline 
as the Graphics2D content?

Thanks,

-Bill Ensley
www.bearprinting.com


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] PDF - PNG

2011-06-07 Thread Bill Ensley

Not with iText.

There are quite a few libraries out there, some cost, some don't.

We use JPedal and are mostly pleased with it.

BFO renders better, but at a cost.

-Bill Ensley
www.bearprinting.com

On 6/7/2011 7:34 PM, David Thielen wrote:

Hi all;
Is there a way to generate a bitmap of each PDF page?
thanks - dave


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Design Advice

2011-05-10 Thread Bill Ensley

One good option would be to output your final JSP page as formatted XHTML.

That way you could just use the HTMLWorker or XMLWorker to parse that 
into a PDF on demand.


This would likely be your smallest learning curve.

-Bill Ensley
www.bearprinting.com

On 5/9/2011 11:08 PM, 1T3XT BVBA wrote:

Hello,

you have posted a mail to itext-questions@lists.sourceforge.net but 
you weren't subscribed. You are receiving this answer because I've 
added your mail address in Bcc: I will do this only once! Further 
answers will be sent to the mailing-list only. This means you won't 
receive them if you don't subscribe; you'll only see the answers in 
the archives, for instance here: 
http://thread.gmane.org/gmane.comp.java.lib.itext.general/57337


Note that your mail was malformed. You've put a large part of your 
question in the Subject line. Please avoid this. Rule #4 says you 
should Give a short description of your problem in the Subject line. 
See http://lowagie.com/rule1 for the rules.


Please understand that, as long as you don't subscribe, somebody has 
to MANUALLY approve your mail among a huge load of SPAM. See rule #3.


Darlene Schaeffer wrote:
 I am working on a Web application where we (the developers) want to 
convert the final JSP rendered currently into a PDF as an 
alternative.  The Web application has a series of forms where the 
user enters data and the final JSP is rendered so that the user can 
print a summary of the data entered in the application.


 I purchased the book iText in Action and started thinking about 
the design options.  I definitely want to generate the PDF in the 
Servlet and was able to follow the Hello World example to 
accomplish this task.  However, there are a few images and lots of 
static content in tables so I thought it would be more efficient to 
create a PDF via Acrobat Adobe with the static content and use iText 
to populate the dynamic content.  Is this the best design approach? 


It is very hard to advize on design without more information. Using 
iText demands a learning process. Maybe you should try out different 
strategies and decide which strategy is the best match for your 
specific application based on tests (CPU uses, memory use, time needed 
to create the PDF,...). All of these parameters largely depend on the 
nature of the PDF you're producing: how big is it? how many times does 
the content change? Etc.


If so, I was wondering if there is something special about creating 
the PDF file in Adobe Acrobat Pro 9 that I should know.  The reason I 
ask is because the PdfReader is failing with the following error message:
 IO Exception in createPDF method: Rebuild failed: trailer not 
found.; Original message: xref subsection not found at file pointer 
118.  Any help with be greatly appreciated as I am new to iText and 
PDFs.


Please post the PDF. See rule #2.


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] the position of the image in the graphics2D

2011-04-18 Thread Bill Ensley
OK, I had trouble even reading this email, but If I understand you 
correctly,
you have not asked and iText question.

All of this math is done in Java before it actually makes it to the PDF.

So, if your original width/height is 1/1 and you are going
to 780.05/760.59, then you divide 780.05 / 1 /  and 760.59 / 1 and
you get your scale.

Again, this is assuming I have ready this email correctly.

You have also asked how to find the position of the image in graphics2D 
in you subject,
but in your body, you state that you have the x and y position, but you 
need the scale.

Which is it that you need?

-Bill Ensley
www.bearprinting.com

On 4/18/2011 2:30 PM, curt wrote:
 I want to created a pdf that contain images from a flash application.
 the benchmark in the flash application is 1/1 pixel that is not the
 same in the pdf.
 I need to know the coordinates (x, y) of my image from the new benchmark.
 i must know the position of the image in this Graphics2D wich I apply a
 transformation.

   -0.5533490180969238/ a
   -0.4213285744190216/ b
 c  0.2621118724346161/ c
 d  -0.3442431092262268/ a
 tx  5055.05/ tx
 ty  5356.15/ ty
 / matrix
 width  780.05002/ width!-- 2D graphics, the box width -
 height  760.59995/ height!-- 2D graphics, the box height -

 i dont have the width  an height  of the image . i have the value of the box
 in the flash that contain the image (in java a graphics2D).
 with this formula I can find x 'and y ' but I lack the scale:

 x = x0 + (x 'cos (angle (xO'x')) - y 'sinangle (xO'x')) * scale
 y = y0 + (x 'sin (angle (xO'x')) + y 'cos (angle (xO'x'))) * scale

 i want to know how can i calculate the scale and is there a way to calculate
 the width  and the height  of the image.
 thanks

 --
 View this message in context: 
 http://itext-general.2136553.n4.nabble.com/the-position-of-the-image-in-the-graphics2D-tp3458782p3458782.html
 Sent from the iText - General mailing list archive at Nabble.com.

 --
 Benefiting from Server Virtualization: Beyond Initial Workload
 Consolidation -- Increasing the use of server virtualization is a top
 priority.Virtualization can reduce costs, simplify management, and improve
 application availability and disaster protection. Learn more about boosting
 the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions

 iText(R) is a registered trademark of 1T3XT BVBA.
 Many questions posted to this list can (and will) be answered with a 
 reference to the iText book: http://www.itextpdf.com/book/
 Please check the keywords list before you ask for examples: 
 http://itextpdf.com/themes/keywords.php

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


Re: [iText-questions] JFreeChart and IText integration problem

2011-04-12 Thread Bill Ensley

Must the Chart stay Vector in the finished PDF?

If not, you can get the BufferedImage from JFreeChart using:

BufferedImage image = chart.createBufferedImage(width, height);

and add that to the PDF instead.

-Bill Ensley
www.bearprinting.com

On 4/12/2011 11:36 AM, Mark Storer wrote:
I'm going to guess that this chart is rendered as a number of vertical 
lines rather than as a bitmap in its own right.  So my best guess:

Rounding Errors.
Do the lines appear in the same places at different zoom settings, or 
do they move around (or even vanish) depending on the current zoom?

--Mark Storer
  Senior Software Engineer
  Cardiff.com
import legalese.Disclaimer;
DisclaimerCardiff DisCard = null;


*From:* Raunak Kathuria [mailto:raunak.kathu...@aonhewitt.com]
*Sent:* Sunday, April 10, 2011 10:00 PM
*To:* itext-questions@lists.sourceforge.net
*Subject:* [iText-questions] JFreeChart and IText integration problem


Hi

I have a stacked multiple area chart that I am generating through
JFreeChart as attached below



but when i print it to pdf using itext then it render as image
attached below:




The code that I have used is



// creating chart object
JFreeChart chart =
ChartGeneratorService.generateChart(chartConfig);
   
if(ReportsConstants.CHART_TYPE_STACKED_AREA !=

chartConfig.getChartType()){
addEmptyLine(document, 3);
}

// get the direct pdf content
PdfContentByte dc =
writer.getDirectContent();
int width =
ReportsConstants.CHART_DEFAULT_WIDTH;
int height =
ReportsConstants.CHART_DEFAULT_HEIGHT;

// get a pdf template from the direct content
PdfTemplate tp = dc.createTemplate(width,
height);

// create an AWT renderer from the pdf
template
Graphics2D g2 = tp.createGraphics(width,
height);
Rectangle2D r2D = new
Rectangle2D.Double(0,0, width,height);
chart.draw(g2,r2D);
g2.dispose();

Image image = Image.getInstance(tp);
image.setAlignment(Image.ALIGN_CENTER);
document.add(image);

/

Any idea why it is rendered as shown, any help would be appreciated.

Thanks  Regards
Raunak Kathuria
*Raunak Kathuria
Aon Hewitt*  |  India Technology Group
UniTech World  |  Gurgaon, Sector - 39
m  +91-9910874433_
__raunak.kathuria@hewitt.com_
mailto:raunak.kathu...@hewitt.com | aonhewitt.com
http://aonhewitt.com/


The information contained in this e-mail and any accompanying
documents may contain information that is confidential or
otherwise protected from disclosure. If you are not the intended
recipient of this message, or if this message has been addressed
to you in error, please immediately alert the sender by reply
e-mail and then delete this message, including any attachments.
Any dissemination, distribution or other use of the contents of
this message by anyone other than the intended recipient is
strictly prohibited. All messages sent to and from this e-mail
address may be monitored as permitted by applicable law and
regulations to ensure compliance with our internal policies and to
protect our business. E-mails are not secure and cannot be
guaranteed to be error free as they can be intercepted, amended,
lost or destroyed, or contain viruses. You are deemed to have
accepted these risks if you communicate with us by e-mail. 



--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check

Re: [iText-questions] RE?? RE??Re: Re??Re:_Re??Re:__save_all_objects_in_JTextpane_in_one_go

2011-04-05 Thread Bill Ensley

Sorry, Last to the game this morning.

Glad to see you figured it out.

Just for mailing list archives, if used directly inside iText code the 
following code would need to be changed


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

protected Rectangle getVisibleEditorRect(JTextPane ta) {
Rectangle alloc =ta.getBounds();
if ((alloc.width  0)  (alloc.height  0)) {
alloc.x = alloc.y = 0;
Insets insets = ta.getInsets();
alloc.x += insets.left;
alloc.y += insets.top;
alloc.width -= insets.left + insets.right;
alloc.height -= insets.top + insets.bottom;
return alloc;
}
return null;
}

to:

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

protected java.awt.Rectangle getVisibleEditorRect(JTextPane ta) {
java.awt.Rectangle alloc =ta.getBounds();
if ((alloc.width  0)  (alloc.height  0)) {
alloc.x = alloc.y = 0;
Insets insets = ta.getInsets();
alloc.x += insets.left;
alloc.y += insets.top;
alloc.width -= insets.left + insets.right;
alloc.height -= insets.top + insets.bottom;
return alloc;
}
return null;
}


-Bill Ensley
www.bearprinting.com

On 4/5/2011 7:18 AM, momom...@sina.com wrote:

Problem solved~~~

Dont bother with this problem any more~Thanks everyone for help~~~

-  -
momom...@sina.com
Post all your questions about 
iTexthereitext-questions@lists.sourceforge.net,
??[iText-questions] RE??Re: 
Re??Re:_Re??Re:__save_all_objects_in_JTextpane_in_one_go

??2011-4-5 21:56:57


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Question about PdfGraphics2D for saving pdf file

2011-04-03 Thread Bill Ensley

You missed 1T3XT BVBA's earlier post.

 Check out the paintToPdf method in this old example from the first book:
 
https://itext.svn.sourceforge.net/svnroot/itext/examples/src/in_action/chapter12/JTextPaneToPdf.java


 If ta is a JTextPane, g2 a PdfGraphics2D object and alloc a 
Rectangle, you can do:

 ta.getUI().getRootView(ta).paint(g2, alloc);

not

ta.paint(g2) or ta.print(g2)

Neither of those will work.

FYI, I am the author of that original example.

You can definitely to what you want to do here, you just have to follow 
the rules.


-Bill Ensley
www.bearprinting.com

On 4/3/2011 8:43 AM, momom...@sina.com wrote:


Hello,

Thank you for reminding me of using PdfGraphics2D to solve my save pdf 
file problme. Actually I am new to iText and I search some info of 
PdfGraphics2D. Here are my solutions:


public void setTexttoPdf(String filePath,JTextPane ta) throws 
IOException, DocumentException{

Document pdfDoc = new Document();
FileOutputStream pdfFile = new FileOutputStream(new File(filePath));

PdfWriter writer=PdfWriter.getInstance(pdfDoc, pdfFile);
writer.setStrictImageSequence(true);
pdfDoc.open();

PdfContentByte cb = writer.getDirectContent();
cb.saveState();
DefaultFontMapper mapper = new DefaultFontMapper();
PdfGraphics2D g2 = (PdfGraphics2D)cb.createGraphics(612, 792, mapper);

ta.paint(g2);
ta.print(g2);
cb.restoreState();
pdfDoc.close();
}


Then I insert a picture(jpg) in my Jtextpane and tried to save it as a 
pdf file, but what I got is an empty pdf file. What's wrong with my 
code???



Thanks a lot for your favor~!

Yours Chen


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf


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

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Imposing - is it possible?

2011-03-02 Thread Bill Ensley

Definitely.

This is covered in depth in the book iText in Action by Manning.

Chapter 6

A must have if you are going to be working with iText.

-Bill Ensley
www.bearprinting.com



On 3/1/2011 12:48 PM, Roman Sokolyuk wrote:

Hi,

I am trying iText out for the first time.

Can I do the following:

I need to take a bunch of already existing PDF files, and put them all 
in one PDF document - not as separate pages, but cram them all into 
one page, or at least as few pages as possible. Also, maybe rotate 
them before pasting into the new PDF?


Thanks.


--
Free Software Download: Index, Search  Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev


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

iText#174; is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
Free Software Download: Index, Search  Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev ___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText#174; is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] PNG transparency problem

2011-02-19 Thread Bill Ensley
Try viewing the finished PDF on a different system with a different 
version of Reader.


I found myself in an embarrassing situation where my Reader was not 
properly updated and

transparencies were not rendering correctly.

-Bill Ensley
www.bearprinting.com

On 2/19/2011 1:28 AM, Paulo Soares wrote:

(It's not nice to have an empty subject)
Transparency works for us. Please post your PNG and a small standalone 
example so that the problem can be reproduced.

Paulo

- Original Message -
*From:* Gerry Harris mailto:gsaint...@shawbiz.ca
*To:* itext-questions@lists.sourceforge.net
mailto:itext-questions@lists.sourceforge.net
*Sent:* Saturday, February 19, 2011 12:51 AM
*Subject:* [iText-questions] (no subject)

Greetings to the list,

I'm a new user to iText and I'm trying to place a PNG picture on my
document.  I can get the image to show up where I want, but the
transparency
of the image turns grey, so instead of being an image of a yield
sign on a
white (or sometimes light blue) background, it's now an image of a
yield
sign on a grey background on a white (or sometimes light blue)
background.

I'm using VB.Net 2010 and if someone could point me to some examples
of how to properly get a transparency to show up (or not show up
as it were)
I would be extremely grateful.

I've been using iText for a couple days now and I have everything
figured out, except for how to get the transparency to work.

Thanks in advance!



Gerry Harris
gsaint...@shawbiz.ca mailto:gsaint...@shawbiz.ca



--
The ultimate all-in-one performance toolkit: Intel(R) Parallel
Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
mailto:iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with
a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


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

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php
--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] Error in N-Up Example

2011-02-16 Thread Bill Ensley
I have been out of the PDF dev world for a while now, my project using 
iText has been ticking along quite nicely.


We have used iText since the very first year it was open and have 
successfully generated tens of thousand of PDFs since.


I am now getting back into it for some new projects and have been 
updating myself on the projects current status,

mailing list responders etc.

I came across this post and read all of the responses and I want to give 
this list back some HUGE kudos.


All of you responded with patience and class to a question that
other lists would have answered in harassment.

It pleases me greatly to see such class not only still here, but growing.

Thank you,

-Bill Ensley
www.bearprinting.com

On 2/14/2011 7:47 AM, Joe Danziger wrote:


There appears to be an error in the example found on Page 171 of the 
2E book.  This is also found online at 
http://itextpdf.com/examples/iia.php?id=115.


The issue is at the end of the lines where offsetX and offsetY get 
set.  The lines both get divided by 2f, but there is no reference to 
any f variable any other place in the function.  And clarification 
that could be provided would be appreciated, as this appears to be an 
error in the code.


Thanks very much,

-Joe Danziger

**

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Re: [iText-questions] iText programmer wanted - Good pay - Simple straighforward project

2009-02-02 Thread Bill Ensley
This is great to see!

-Bill Ensley
www.bearprinting.com

 -Original Message-
 From: kpenner [mailto:jaype...@yahoo.com]
 Sent: Sunday, February 01, 2009 7:48 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] iText programmer wanted - Good pay - Simple
 straighforward project
 
 
 Use iText to extract the XFA data from a Livecycle Dynamic PDF, insert
 text
 data into some text fields, and then write the changed version back.
 iText
 to be used to read  write in the XFA.  You will also need to use the XML
 libraries native to Java to do the specific changes.
 
 This application will be run on a shared server Linux to server a web
 page.
 
 The data can be passed to your application by your choice of web service,
 XML data string or whatever you need.
 
 The money is decent and payment is immediate via Paypal.
 
 Need to be professionally coded and documented.
 
 It would be nice to find an existing project that is already completed and
 just customize it.
 
 Thanks.
 --
 View this message in context: http://www.nabble.com/iText-programmer-
 wanted---Good-pay---Simple-straighforward-project-tp21783606p21783606.html
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Buy the iText book: http://www.1t3xt.com/docs/book.php



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Using PdfGraphics2D and compressing non-JPEG images

2008-12-21 Thread Bill Ensley
 Steven Case wrote:
  I am hoping you will consider making this behavior a permanent change to
  the PdfGraphics2D class.  If so, I have attached a copy of my version of
  the PdfGraphics2D.java file to this e-mail for your review.  Of course,
  if you have any suggestions for improving this approach then I am
  interested in your suggestions.
 
 Thank you very much for your code contribution!
 Either I or Paulo will have a look at it as soon as we have time.

[Bill Ensley] 
Is there someplace, either on 1T3XT.com or lowagie.com where a
wish list of features, bugs etc, that other developers can work 
on and present back to the project?

-Bill Ensley
www.bearprinting.com



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

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] SVG and iText

2008-12-16 Thread Bill Ensley
Please post a sample of the SVG and a snippet of testable code so that we
can recreate the issue.

 

-Bill Ensley

www.bearprinting.com

 

From: Laisne Stéphane [mailto:s.lai...@lectra.com] 
Sent: Tuesday, December 16, 2008 7:46 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] SVG and iText

 

Hi Bruno Lowagie,

 

I’m using JasperReports to build reports and iText to export PDF.

In order to display SVG file in PDF, I create a specific renderer, using
batik, and I’ve a big problem with the Itext PdfGraphics2D.

When I want to display a SVG with vector-based pattern, the PdfGraphics2D
can’t render it with good instruction and the process time is too long
(30min for a simple svg).

I’ve you seen previously this problem? 

This issue is very important.

 

Best regards

 

Stéphane LAISNE

FIP Tools 

Research and Development

Lectra / Cestas

Tel.: +33 (0)5 57 97 35 44

 

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Re: [iText-questions] Come On, Share Your iText Generated PDF Examples

2008-12-11 Thread Bill Ensley
If you are just looking for PDF Samples, see www.bearprinting.com and click 
demo

 

There are over 500 templates that you can preview as a PDF using the iText 
library.

 

-Bill Ensley

www.bearprinting.com

 

 

 


iText have so many nice features and yet most pdf I seen are still quite
simple and not really styled. I guess it is to make file size small but I
would think some companies out there are trying to impress their customers
with generated pdf that looks great.





--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

[iText-questions] PdfGraphics2D Patch

2008-08-20 Thread Bill Ensley
I just downloaded the latest version of iText and
a patch has been added to PdfGraphics2D since my last version.
 
It is in the drawString method, line 431 and attempts to simulate a bold
font.
 
This new patch does not check to see if the current color has transparency
and so renders in full color no matter what.
 
Below is another patch for the same section that fixes this:
 
if (strokeWidth != 1) {
if(realPaint instanceof Color){
 
cb.setTextRenderingMode(PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE);
cb.setLineWidth(strokeWidth); 
 
Color color = (Color)realPaint;
int alpha = color.getAlpha();
if (alpha != currentStrokeGState) {
currentStrokeGState = alpha;
PdfGState gs = strokeGState[alpha];
if (gs == null) {
gs = new PdfGState();
gs.setStrokeOpacity(alpha / 255f);
strokeGState[alpha] = gs;
}
cb.setGState(gs);
}
cb.setColorStroke(color);
restoreTextRenderingMode = true;
}
}
 
If there is a better / safer way to accomplish this, please let me know and
I will update
my branch.
 
-Bill Ensley
www.bearprinting.com

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Re: [iText-questions] Reduce PDF Trime Size

2008-08-14 Thread Bill Ensley

On Aug 14, 2008, at 5:01 AM, Byomokesh Sahoo wrote:
 I have received PDF file from our client. We need to reduce 
trime size 
 and page size without reflecting text, image, etc.. plz give some 
 example using jave through iText.

I believe what he is asking is how do you crop the page to a smaller size
without scaling.

-Bill Ensley
www.bearprinting.com



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php


Re: [iText-questions] Include SVN in PDF

2008-05-09 Thread Bill Ensley

In that case, native embedding of SVG in PDF has been removed 
from the PDF Reference in its conversion/transition to ISO 
32000 and thus will not be supported by future ISO 32000 
compliant versions of Adobe  
Acrobat/Reader.  

Any reason why?  Is Adobe considering SVG a failed format?

-Bill Ensley
www.bearprintnig.com



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] Include SVN in PDF

2008-05-09 Thread Bill Ensley

Now we (and everyone) needs to look at 
PDF in a wider context...

Makes sense to me.

So, vendors creating PDF's need to do the parsing and content transfer into
a PDF.

This is what is recommended for iText using Batik anyway.

-Bill Ensley
www.bearprinting.com



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] ITEXT

2008-05-03 Thread Bill Ensley

 ITEXT), generated PDF on the fly with ITEXT, HTML documents (using PD4ML
 to render to PDF),

 that can be fitted into the iText toolbox. Note that PD4ML isn't
 free (in some cases it is, but I don't think the PD4ML license
 is compatible with the MPL/LGPL), so the first thing we'd have
 to do before your tool can be distributed would be to remove PD4ML.

xhtmlrenderer is a compatible html to PDF renderer that already uses iText.
perhaps it can be used in replacement of pd4ml.

-Bill Ensley
www.bearprinting.com 



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] Portrait and Landscape pages inside one PDF Document

2008-04-25 Thread Bill Ensley

 I don't understand why there are still people posting this 
 question. The answer is very obvious:
 http://www.1t3xt.info/examples/browse/?page=exampleid=18

Are there any mail list conventions/instructions/suggestions
About making sure you have exhausted other possibilities, 
Archives, google, tutorial, book etc before posting a 
Question on the page where a newbie signs up for the list?

If there were, and I know asking the user to read is a lot, 
Perhaps these posts would slow.

-Bill Ensley
www.bearprinting.com 



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] SVG - EMF or PNG?

2008-04-19 Thread Bill Ensley
I believe that Batik can do it.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Saturday, April 19, 2008 8:24 AM
To: itext
Subject: [iText-questions] SVG - EMF or PNG?


Hi;
 
Is there a program out there that can convert SVG to EMF and/or PNG?
 
thanks - dave

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Re: [iText-questions] Registration Black

2008-04-18 Thread Bill Ensley
Registration Black is simply cmyk 100,100,100,100

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Neal Johnson
 Sent: Friday, April 18, 2008 4:23 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Registration Black
 
 I'm trying to add Registration color to a iText PDF, so I can 
 add crop marks and targets to a PDF. Is this possible with iText?
 
 --
 ---
 This SF.net email is sponsored by the 2008 JavaOne(SM) 
 Conference Don't miss this year's exciting event. There's 
 still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java
 .sun.com/javaone
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Do you like iText?
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 Or leave a tip: https://tipit.to/itexttipjar



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] Registration Black

2008-04-18 Thread Bill Ensley

 No, it isn't.CMYK [1 1 1 1] is a process color, while  
 Registration is a Spot color.
 
 Leonard


OK, you are right, that is the correct way.
I have used the CMYK version for simple 4 color seps requiring
Crops to show on all pages.

-Bill Ensley
www.bearprinting.com



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


Re: [iText-questions] Saving images at greater than 72dpi

2008-04-14 Thread Bill Ensley
I have responded time and time again to this issue.

I am posting this again so that it goes into the mailing list archives.

Images do not have a DPI.  Period.

Images are made of Pixels.

You make your DPI when you scale an image in a document.

A 300x300 pixel image is 300DPI when sized to 1 inch x 1 inch.

A 300x300 pixel image is 100DPI when sized to 3 inch x 3 inch.

A 3 inch x 3 inch placement will need to be a 900 x 900 pixel image 
To have 300DPI.

Pixels / inches = DPI.

It really is that simple.


-Bill Ensley
www.bearprinting.com


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of [EMAIL PROTECTED]
 Sent: Monday, April 14, 2008 12:59 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] Saving images at greater than 72dpi
 
 -- Original message --
 From: Dominic Maricic [EMAIL PROTECTED]
 
  It seems there is more to this. 
 
 There is, indeed! Keeping the discussion on iText, you can 
 find all you need to know in Chapter 5 of the book. Do you 
 have a copy? If not, please buy it.
 
  After using the code above to save the png, photoshop told me the 
  image was 72dpi. Using the libpng library I was able to see 
 that the 
  meta data for the resolution of the new image doesn't exist, but it 
  does for the original. So the problem seems to be that either 
  BufferedImage or ImageIO strips the image of any resolution 
  information. Of course this makes it more difficult to then 
 insert into iText and scale it properly.
 
 I'm somewhat mystified by your efforts to pre-process images 
 that are already in formats that can be handled entirely by 
 iText methods. iText has all the methods you need to 
 determine the dimensions of any image (that it is designed to 
 employ). You can then use those dimensions to determine the 
 scale factor needed to scale the images to the sizes you want.
 
 Please read Chapter 5 and adapt the examples you find there 
 to your own situation. You might also try reading the fine 
 documentation.
 
 Cheers,
 Bill Segraves
 
 --
 ---
 This SF.net email is sponsored by the 2008 JavaOne(SM) 
 Conference Don't miss this year's exciting event. There's 
 still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java
 .sun.com/javaone
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 
 Do you like iText?
 Buy the iText book: http://www.1t3xt.com/docs/book.php
 Or leave a tip: https://tipit.to/itexttipjar



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar


[iText-questions] testing

2008-04-06 Thread Bill Ensley
testing, please ignore
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

[iText-questions] Testing

2008-04-06 Thread Bill Ensley
testing, please ignore.
 
-Bill Ensley
www.bearprinting.com
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Re: [iText-questions] Fw: imposition inquisition

2008-03-25 Thread Bill Ensley
I have uploaded my ImpositionLayout code to:
 
http://www.bearprinting.com/code/ImpositionLayout.zip
 
I have included LGPL header information in the files.
 
2 main class are:
 
ImpositionLayout
Paper
 
I have included a test class called TestPDFImposition that takes an input
File and and output File and imposes it.
 
I have also included a simple PDF for testing.
 
I have been meaning to give this code back to the iText project for a very
long time.
 
With little modification if can be used to impose not only PDF's but most
image or document formats that Java uses.
 
Please feel free to use and improve this code and give it back again to the
community.
 
If anyone has any questions, please feel free to ask
 
-Bill Ensley
www.bearprinting.com
 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2008 9:25 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Fw: imposition inquisition


That would be very helpful if you could. Thanks!
 
JP
 


  
  
- Forwarded by Jason L Pelzel/US/DNY on 03/25/2008 11:22 AM - 

Bill Ensley [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 


03/24/2008 03:10 PM 


Please respond to
Post all your questions about iText here
itext-questions@lists.sourceforge.net



To
iText Mail Group itext-questions@lists.sourceforge.net 

cc

Subject
Re: [iText-questions] imposition inquisition






I have a whole chunk of code that I can share. I am currently in disneyland
and won't be able to send it until tonight. : )

-Original Message-
From: [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: 3/24/08 11:42 AM
Subject: [iText-questions] Imposition inquisition

Does anybody have any code based imposition
algorithms/methods/routines/logic/etc that they would care to share?

I am having a bit of a time making anything 'elegant' and easily reusable.

Thanks in advance.

JP


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
[EMAIL PROTECTED] .net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Imposition inquisition

2008-03-24 Thread Bill Ensley
I have a whole chunk of code that I can share. I am currently in disneyland and 
won't be able to send it until tonight. : )

-Original Message-
From: [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: 3/24/08 11:42 AM
Subject: [iText-questions] Imposition inquisition

Does anybody have any code based imposition 
algorithms/methods/routines/logic/etc that they would care to share?

I am having a bit of a time making anything 'elegant' and easily reusable.

Thanks in advance.

JP


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] imposition inquisition

2008-03-24 Thread Bill Ensley
I have a whole chunk of code that I can share. I am currently in disneyland and 
won't be able to send it until tonight. : )

-Original Message-
From: [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: 3/24/08 11:42 AM
Subject: [iText-questions] Imposition inquisition

Does anybody have any code based imposition 
algorithms/methods/routines/logic/etc that they would care to share?

I am having a bit of a time making anything 'elegant' and easily reusable.

Thanks in advance.

JP


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Question on Swing component to PDF using iText

2008-03-04 Thread Bill Ensley
What is the code you are using to paint the JTable to the PDF?
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kiran
Kodimela
Sent: Tuesday, March 04, 2008 1:16 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Question on Swing component to PDF using iText


Hi All,
 
I got a question:
 
I am using iText library for exporting Swing Component (JTable, in my case)
to PDF.
 
While doing so, i get the PDF generated with all the data elements. But i do
not see the
 
Column Headers. Please advise, if i need to do any changes in the code.
 
ex:
 
XYZ  |  12344
BHF | 334343
5HJJ | 453343
 
The above is my resultant table which i see in PDF. But the column headers
itself,   Prod, Amt are missing in the table. Can any body answer to
this question.
 
I appreciate your help.
 
Thanks,
Kiran 



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Question on Swing component to PDF using iText

2008-03-04 Thread Bill Ensley
2 suggestions:
 
1) try table.getUI().paint(g)
2) try table.paint(g) instead of table.print(g)
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kiran
Kodimela
Sent: Tuesday, March 04, 2008 2:41 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Question on Swing component to PDF using
iText


Hi Bill,
 
Thanks for the response.
 
It is the same code taken from example.
 
http://www.javaworld.com/javaworld/jw-12-2006/jw-1209-swing.html
 
 
 
 
In the createPDF(true, getMainTable()), i pass my JTable.
 
And here is my JTable code:
 
private

static JTable getMainTable(){ 

HashMap dataMap = 

new HashMap(); 





try{ 

dataMap = MBSLossesFRPrdReportService.generateReport();

populateMainTable(dataMap);

}

catch(Exception ex){ 



LOG.info(Inside JTable..Exception!! + ex.getMessage()); 

}



JTable mainTable = 

new JTable(tableModel); 



int vColIndex = 0; 



int width = 200; 

TableColumn col = mainTable.getColumnModel().getColumn(vColIndex);

col.setPreferredWidth(width);





mainTable.setDefaultRenderer(Double.

class,new AmountRenderer()); 

mainTable.setCellSelectionEnabled(

true); 

mainTable.setAutoResizeMode(JTable.

AUTO_RESIZE_OFF); 

mainTable.setBounds(

new Rectangle(200, 450, 250, 400)); 



return mainTable; 

}

 

populateMainTable() {

...

columnNamesVect  is loaded with  ProdName  , Amount

tableModel

.setDataVector(dataVector,columnNamesVect); 

}

populateMainTable loads my DefaultTableModel tableModel

Attached is the PDF file. with data but no column headings. ProdName,
Amount.
 
I display the same JTable in my JScrollPane, and i do see the column
headings. But when i call the createPDF method, with table.print(g2), this
does not display column names.
 
I hope you got all the information.
 
Thanks for the response.
 
Regards,
Kiran


 
On 3/4/08, Bill Ensley [EMAIL PROTECTED] wrote: 

What is the code you are using to paint the JTable to the PDF?
 
-Bill Ensley
www.bearprinting.com http://www.bearprinting.com/ 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kiran
Kodimela
Sent: Tuesday, March 04, 2008 1:16 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Question on Swing component to PDF using iText

 

Hi All,
 
I got a question:
 
I am using iText library for exporting Swing Component (JTable, in my case)
to PDF.
 
While doing so, i get the PDF generated with all the data elements. But i do
not see the
 
Column Headers. Please advise, if i need to do any changes in the code.
 
ex:
 
XYZ  |  12344
BHF | 334343
5HJJ | 453343
 
The above is my resultant table which i see in PDF. But the column headers
itself,   Prod, Amt are missing in the table. Can any body answer to
this question.
 
I appreciate your help.
 
Thanks,
Kiran 




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] [personal message] some bad news

2008-02-22 Thread Bill Ensley
Bruno, 

All our thoughts are with you.

My own 7 week old baby is in the ICU as we speak, so I feel greatly for you.

We will carry on here for you and all will be well when you return.

Go eat some chocolate ice cream.  It won't cure anything, but it makes you
feel better.

Good luck, 

Bill Ensley
www.bearprinting.com

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bruno Lowagie
 Sent: Friday, February 22, 2008 7:39 AM
 To: Post all your questions about iText here
 Subject: [iText-questions] [personal message] some bad news
 
 Dear subscribers of the mailing list,
 
 most of you know me because I've been answering many 
 questions on this list in the past. You probably also 
 recognize my family name from the com.lowagie packages.
 
 I'm posting this personal message to inform you that I won't 
 be able to answer many questions in the near future. I 
 recently received some very bad news: my oldest son (almost 
 12 years old) is seriously ill. Treatment will take at least 
 30 weeks (that's the best case scenario).
 
 I know I've been saying this many times before, but please 
 don't contact me personally with questions about iText. I 
 hope you all understand that when it comes to children, my 
 real child Inigo has priority over my brainchild iText.
 
 I'll do my best to continue working on iText, but I'd 
 appreciate it if I was granted the time to recover from the 
 blow the news about my son gave me.
 
 best regards,
 Bruno
 
 
 --
 ---
 This SF.net email is sponsored by: Microsoft Defy all 
 challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] [personal message] some bad news

2008-02-22 Thread Bill Ensley
Bruno, 

Are you financially stable for this treatment?

Is insurance covering everything?

I would be willing to give back some support to you for all of your

Help on iText, my company has benefited greatly from it.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bruno Lowagie
 Sent: Friday, February 22, 2008 7:39 AM
 To: Post all your questions about iText here
 Subject: [iText-questions] [personal message] some bad news
 
 Dear subscribers of the mailing list,
 
 most of you know me because I've been answering many 
 questions on this list in the past. You probably also 
 recognize my family name from the com.lowagie packages.
 
 I'm posting this personal message to inform you that I won't 
 be able to answer many questions in the near future. I 
 recently received some very bad news: my oldest son (almost 
 12 years old) is seriously ill. Treatment will take at least 
 30 weeks (that's the best case scenario).
 
 I know I've been saying this many times before, but please 
 don't contact me personally with questions about iText. I 
 hope you all understand that when it comes to children, my 
 real child Inigo has priority over my brainchild iText.
 
 I'll do my best to continue working on iText, but I'd 
 appreciate it if I was granted the time to recover from the 
 blow the news about my son gave me.
 
 best regards,
 Bruno
 
 
 --
 ---
 This SF.net email is sponsored by: Microsoft Defy all 
 challenges. Microsoft(R) Visual Studio 2008.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Color in PDF

2008-02-21 Thread Bill Ensley
I am afraid your question is a bit vague.
 
Any way you could elaborate?
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of murthy
gandikota
Sent: Thursday, February 21, 2008 11:08 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Color in PDF



Hi Does anyone know how to highlite the PDF with color? Is that possible?
 
Thanks
Murthy



  _  

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8
HDtDypao8Wcj9tAcJ it now.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] OFF_TOPIC - was iText web page

2008-02-01 Thread Bill Ensley
 IMO, everyone should be doing everything they can to eliminate printing,
wherever possible. I've  
 been on a 12-year crusade with various organization to which I belong to
eliminate paper copies 
  of forms, wherever possible. iText is a serious contribution to bringing
this ideal closer to reality. 
 
This reply is off-topic, but very relevant.
 
!-- START RANT --
 
The supposed move to a paperless, printless world,  is as narrow minded as
it is ignorant.
 
The printing industry is the largest single industry on the planet.
 
In America it employes more people than the automobile industry.
 
With $83+ billion in annual revenue employing nearly 1 million people.
 
If a 25% drop in new home sales in America can create a recession felt
around the world.  What do you think
would happen if 1 million people lost their jobs and 3% of the GDP
evaporated into the paperless world would do.
 
85% of American printers are small companies employing less than 20 people
with 46% employing
less than 5.
 
Who does you think they are attacking?  Small business people earning a hard
living on razor-thin
profit margins working hours that would make the rest of the world cringe.
 
Besides, people don't want to be paperless they want to use less paper.
 
When I turn printing off on my online pdf proofing system, I had a customer
outrage.
 
As long as humans have hands and eyes, there will never be a paperless
world.  We are rather
a touchy feely race.  We like to hold things in our hands and see them as
they really are, not only
represented in a virtual world.
 
Nowhere is the line between virtual and reality more blurred than in the
typographic world.
 
As developers we need to learn to bridge, not eliminate the differences
between the digital and the
virtual world in a way that allows our customers to enjoy the best of both
sides.
 
!-- END RANT --
 
-Bill Ensley
 
 
 
 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText web page

2008-02-01 Thread Bill Ensley

 If you really care about printing, I would suggest both 
 formats: html and pdf! Write pdf version of page and add a 
 link for it so that people can choose format for printing as 
 well as viewing.

HTML is not now, never has, and never will be a printing format.

It is designed for display on a screen, any screen, anywhere.

Printing is far more specialized and restricted.

-Bill Ensley
www.bearprinting.com



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText web page

2008-01-30 Thread Bill Ensley

 Als note that I signed a contract with the publisher of that 
 eBook saying the Author agrees not to, without the prior 
 consent of the Publisher, write for publication or post on 
 the Internet any other book-length work which covers the same 
 subject as the Work and which is directly competitive with the Work.
 
 I hope your question didn't imply that you want me to violate 
 that contract.
 br,
 Bruno


; )

-Bill Ensley
www.bearprinting.com 



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] QUESTION - Flash in PDF document

2007-11-01 Thread Bill Ensley
Yes, you place it as an annotation.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Andre-Pierre Fillion
Sent: Thursday, November 01, 2007 8:04 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] QUESTION - Flash in PDF document


Hi,
 
Fisrt congratulation for iText. I would like to know if it's possible with
iText to Put .swf in PDF using itext. I have a .swf who is build with xml
file. And it's a graph on my application. So some clients want to have graph
report in a pdf. So i would like to generate pdf and include my .swf graph
on it...Is it possible with your engine ?
 
Thanks
 


André Pierre Fillion
Java Developer

T. 1 418-524-5665 x. 1689
E.  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
www.taleo.com

Taleo 

Talent Drives Performance

 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] QUESTION - Flash in PDF document

2007-11-01 Thread Bill Ensley
PDFWriter _writer = getAWriterSomehow();

com.lowagie.text.Rectangle targetArea = new
com.lowagie.text.Rectangle(x,y,width,height);

PdfFileSpecification fs = PdfFileSpecification.fileExtern(_writer,
pathToSWF);

_writer.addAnnotation(PdfAnnotation.createScreen(_writer, targetArea,
pathToSWF,fs,application/x-shockwave-flash,true));

 

-Bill Ensley

www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Andre-Pierre Fillion
Sent: Thursday, November 01, 2007 8:04 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] QUESTION - Flash in PDF document


Hi,
 
Fisrt congratulation for iText. I would like to know if it's possible with
iText to Put .swf in PDF using itext. I have a .swf who is build with xml
file. And it's a graph on my application. So some clients want to have graph
report in a pdf. So i would like to generate pdf and include my .swf graph
on it...Is it possible with your engine ?
 
Thanks
 


André Pierre Fillion
Java Developer

T. 1 418-524-5665 x. 1689
E.  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
www.taleo.com

Taleo 

Talent Drives Performance

 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PDF to image

2007-10-18 Thread Bill Ensley
JPedal.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Euler
Melo Jr
Sent: Thursday, October 18, 2007 10:43 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF to image


Hi,
how to convert a pdf file (one page) to a image (png, jpg etc) ?

Thanks.
Euler Jr.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] problem in printing pdf file created with Itext

2007-09-26 Thread Bill Ensley
Does your printer understand PDF?
 
Not all printers support the same inputs, some are PCL, most are Postscript
and few new ones understand native PDF.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of love
dream
Sent: Wednesday, September 26, 2007 9:09 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] problem in printing pdf file created with Itext


Hello,
I've created a pdf file with Itext and I can open it and see it with
Acrobat.
But if I try to print it in my java application my printer doesn't print the
file but it prints this phrase: PDF Error 16: PostScript Error: SYNTAXERROR.
Below the piece of code in which I create the pdf file:
 
Document document = new Document();
String filePath = path + \\ + cal.getTimeInMillis() + .pdf;


PdfWriter.getInstance(document, new FileOutputStream(filePath));

document.open();

//I add some paragraph

Paragraph par = new Paragraph(Messages.getString(LABEL.PDF.PROT) +   +
protNumber.intValue());

par.setAlignment(Element.ALIGN_RIGHT);

document.add(par);

document.add(new Paragraph(\n));

document.add(new Paragraph(model.getNameFile() +  di  + nome));

document.add(new Paragraph(\n));

// I add an image

Image jpg = Image.getInstance(imagePath);

jpg.scalePercent(25.0f);

document.add(jpg);

// other paragraphs

document.add(new Paragraph(\n)); 

document.add(new Paragraph(Messages.getString(LABEL.PDF.CRE1) +   + date
+   + Messages.getString(LABEL.PDF.CRE2) +   + hour));

document.close();
 
Then I try to print it with this piece of code:
 


FileInputStream psStream = null;

try {

psStream = new FileInputStream(filePath);

} catch (FileNotFoundException ffne) {

throw ffne;

}

DocFlavor psInFormat = DocFlavor.INPUT_STREAM.AUTOSENSE;

Doc myDoc = new SimpleDoc(psStream, psInFormat, null); 

PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();

aset.add(new Copies(1));

aset.add(MediaSizeName.ISO_A4);

aset.add(Sides.DUPLEX);

PrintService pr = PrintServiceLookup.lookupDefaultPrintService();

DocPrintJob job = pr.createPrintJob();

try {

job.print(myDoc, aset);

} catch (PrintException pe) {

throw pe;

}

 
can you help me?
thanks in advance.
Antonella Molinaro
 
 
 


  _  

Con Windows Live Messenger chatti, parli, giochi, crei il tuo blog,
controlli la tua posta, scambi file, foto e molto altro con un solo
programma GRATUITO. Scarica Messenger 8.1 http://www.messenger.it  

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Is it possible to use iText for PDF to TIFFconversion

2007-09-25 Thread Bill Ensley
No, you want JPedal.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Val
Bumbu
Sent: Tuesday, September 25, 2007 2:39 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Is it possible to use iText for PDF to
TIFFconversion



Hi, 

 

Anybody knows a way to use iText to generate a TIFF output from PDF source?

 

Thank you.

 

Val Bumbu

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] adding hi-res images

2007-09-24 Thread Bill Ensley
There is not DPI setting in a PDF.

Every image can have a different DPI.

You MUST scale the image to the finished size you need it.

We're not talking JAVA scaling, we're talking iText scaling.

Create and iText image and scale it to the finished size you want.

-Bill 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Iyad Jabri
 Sent: Monday, September 24, 2007 10:58 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] adding hi-res images
 
 i'm dumping it as is. My impression is that iText would 
 adjust the size per the dpi. Also, if I scale it manually, 
 how is this going to affect the print quality?
 
 On 9/24/07, Bill Ensley [EMAIL PROTECTED] wrote:
  Are you placing the image at 7.5x1.04 ? Or just dumping 
 it in as is?
 
  -Bill Ensley
  www.bearprinting.com
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On 
 Behalf Of 
   Iyad Jabri
   Sent: Monday, September 24, 2007 9:58 AM
   To: itext-questions@lists.sourceforge.net
   Subject: [iText-questions] adding hi-res images
  
   I'm trying to add a 2250x311 JPG image with 300dpi 
 resolution to a 
   PDF document, expecting it to take up 7.5x1.04 of the page, 
   however, it's taking several inches of space high and 
 bleeding out 
   of the page width wise, as if it's the normal 72dpi. I 
 debugged my 
   application and inspected the dpi attributes (dpiX and 
 dpiY) of the 
   com.lowagie.text.Image, and it's correctly set to 300dpi.
  
   Anybody knows what's going on and how I can get the right 
 resolution 
   used.
  
   Thanks,
   Iyad
  
   --
   ---
   This SF.net email is sponsored by: Microsoft Defy all challenges. 
   Microsoft(R) Visual Studio 2005.
   http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
   ___
   iText-questions mailing list
   iText-questions@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/itext-questions
   Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 
 
  
 --
  --- This SF.net email is sponsored by: Microsoft Defy all 
 challenges. 
  Microsoft(R) Visual Studio 2005.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
  Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 
 --
 ---
 This SF.net email is sponsored by: Microsoft Defy all 
 challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PDF's are equal or not ?

2007-09-24 Thread Bill Ensley
Byte size, hex compare?

-Bill 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Mitch Freed
 Sent: Monday, September 24, 2007 3:02 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] PDF's are equal or not ?
 
 The way I did this was by rasterizing the pdf to an image and 
 comparing pixels in the images. I'd be interested to see what 
 others approaches have been.
 
 - Mitch
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of mfs
 Sent: Monday, September 24, 2007 2:56 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] PDF's are equal or not ?
 
 
 Guys, 
 
 Is there a way to compare the contents of the two pdf files, 
 just interested in knowing whether the files are equal or not..
 
 Thanks in advance
 
 Farhan.
 --
 View this message in context:
 http://www.nabble.com/PDF%27s-are-equal-or-not---tf4511742.htm
 l#a1286816
 6
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 --
 -
 This SF.net email is sponsored by: Microsoft Defy all 
 challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/
 
 --
 ---
 This SF.net email is sponsored by: Microsoft Defy all 
 challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] dpi and colorspace xtremely confused

2007-09-21 Thread Bill Ensley
OK, 
 
Here is your dominant problem:
 
PDF is a container. period.
 
You use it to essentially wrap up all of the elements of a document into a
portable format hence the name, Portable Document Format.
 
There are i believe 11 different colorspaces available in a SINGLE document.
 
There are no default dpi or colorspace settings, you do all of this
yourself.
 
If you want CMYK Rendering, you assign all your colors a CMYK, you convert
all your images to CMYK.
 
If you want a 180 dpi image, you place it into the PDF using settings that
will achieve that.
 
if you want an image to display at 20 x 20 cm (which is roughly 8 inches) @
180 dpi, then the image needs to be 1440 x 1440 pixels with your image size
set in the PDF being 20 x 20cm.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Idees
Absurdes
Sent: Friday, September 21, 2007 7:51 AM
To: iText-questions@lists.sourceforge.net
Subject: [iText-questions] dpi and colorspace xtremely confused


Hi all,

I've read more than 200 posts maybe about color and dpi but I can't find the
solution and it must exists.
First of all. I know I can set an image dpi but I can't do that with a
document. Ok. If I send my document to the printing works, they print my
1469 x 1469 pixels pdf in 50x50 cm
but I want it in 20x20 cm cause I don't want to work in 72dpi but in 180dpi.
How can I tag this information to my document? I'm sure it is defined to the
document but I don't know how to choose it. 
I have just a very similar problem with the colorspace. I add many RGB
images to the document, few CMYK images, texts and background colors. I
should choose an option somewhere to specify that all this content is going
to be printed in CMYK and I don't need to transform my images with JAI. (If
it's indispensable i'll do that. but... I suppose it's not necessary). 
I want to use itext cause It brings me thousands of options in writing data
and transforming this but I need to solve these dark spots.
So, how can I do these two things in itext?  If I can't, anybody knows
another way to reopen the documents, add this information and close it
again? 


Sorry for the length of the post _ 
and thanks in advance



Gerard Ralló


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Custom resolution

2007-09-18 Thread Bill Ensley
I chose 96 dpi, but it was several years ago, I think that
Adobe's choice of 110 may indeed be more future proof.

The reason I chose 96 is that at the time it was more or 
Less a default dpi for most monitors.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of mister bean
 Sent: Monday, September 17, 2007 6:10 PM
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Custom resolution
 
 
 What resolution do you use? TIA, ---mr. bean
 
 
 Bill Ensley wrote:
  
  In my own rendering app, I also use a fixed resolution.
  
  It does actually make sense.
  
  -Bill Ensley
  www.bearprinting.com
  
  
  It turns out that for Acrobat 8, for performance reasons, 
 we switched
  from use screen resolution to a fixed resolution.   The 
 reason for  
  110 is future proofing...
  
  Leonard
  
  
  
  
 --
  --- This SF.net email is sponsored by: Microsoft Defy all 
 challenges. 
  Microsoft(R) Visual Studio 2005.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
  ___
  iText-questions mailing list
  iText-questions@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/itext-questions
  Buy the iText book: http://itext.ugent.be/itext-in-action/
  
  
 
 --
 View this message in context: 
 http://www.nabble.com/Custom-resolution-tf4331269.html#a12748127
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 ---
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Custom resolution

2007-09-17 Thread Bill Ensley
So, Java gives you 96 and Acrobat gives you 110?

Very interesting indeed.

I think this is a question for Leonard ?

-Bill Ensley
www.bearprinting 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Olivier Lefevre
 Sent: Monday, September 17, 2007 10:58 AM
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Custom resolution
 
 Bill Ensley wrote:
  Java has a utility called:
  Toolkit.getDefaultToolkit().getScreenResolution();
 
 I know but that returns 96, not 110. In the meantime we 
 performed a random check on user desktops and in every single 
 instance we found that Acrobat Reader was set to 110 dpi and 
 these aren't users who'd think of messing with such 
 well-hidden settings. Thus, given that this is *not* the 
 screen resolution, you really wonder why it is used and where 
 Acrobat pulled it from...
 
 Regards,
 
 -- O.L.
 
 
 --
 ---
 This SF.net email is sponsored by: Microsoft Defy all 
 challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Custom resolution

2007-08-26 Thread Bill Ensley
Java as well as Acrobat (any flavor) pulls the native resultion.

iText uses 72 points per inch.

Java has a utility called:
Toolkit.getDefaultToolkit().getScreenResolution(); 

This will return the resulution that you need to convert from AWT pixels to
PDF points.

Most systems use 96dpi, but I have seen some that use 110dpi.

-Bill Ensley
www.bearprinting.com

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Olivier Lefevre
 Sent: Sunday, August 26, 2007 8:23 AM
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Custom resolution
 
 Leonard Rosenthol wrote:
  Acrobat/Reader default to using monitor resolution - so you 
 must have 
  set that at one point.
 
 That's unlikely because I removed Acrobat 7 and performed a 
 fresh installation of Acrobat 8 just last Wednesday and I am 
 pretty sure I did not go into the Preferences panel until today.
 
 Regards,
 
 -- O.L.
 
 
 --
 ---
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and 
 a browser.
 Download your FREE copy of Splunk now   
 http://get.splunk.com/ ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Colors in PdfGraphics2D

2007-08-25 Thread Bill Ensley
The color is actually the same, but the rendering is different.

new Color(0,0,255) is still the same color everywhere, it is not converted.

What does change is the color profile used in rendering the color to the
device, ie
Screen, Printer.

Acrobat often tries to simulate a CMYK printer in it's screen rendering.

You can turn this off in the preferences and see the exact same color on the
screen
As you see in Java.

When you print however, you will get a different color as RGB does not map
accurately
To CMYK.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Olivier Lefevre
 Sent: Saturday, August 25, 2007 3:16 PM
 To: itext-questions@lists.sourceforge.net
 Subject: Re: [iText-questions] Colors in PdfGraphics2D
 
 Paulo Soares wrote:
  This is all about colorspaces and color management. There 
 are ways to 
  do that in PDF but it's far from trivial and you'll have to 
 read the 
  PDF reference to know what to do. Just to have an idea the PDF 
  reference dedicates about 130 pages on the subject.
 
 OK but that does not answer my question: does the caller have 
 to perform the translation or does PdfGraphics2D take care of 
 it? What _is_ the cause of the different colors?
 
 Regards,
 
 -- O.L.
 
 
 --
 ---
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and 
 a browser.
 Download your FREE copy of Splunk now   
 http://get.splunk.com/ ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PdfGraphics2D.drawString() simulating bold, italic or bold-italic fonts.

2007-08-15 Thread Bill Ensley
A few months ago this message was posted to the list.

I have just got around to implementing it in my branch of iText.

The fix seems to work quite well, my question:

Is there a reason why this hasn't been integrated into the main
Trunk that I should be aware of when using it?

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of John Hellerud
 Sent: Monday, April 30, 2007 9:50 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] PdfGraphics2D.drawString() 
 simulating bold, italic or bold-italic fonts.
 
 All,
 
 The PdfGraphics2D.drawString() method wasn't simulating bold, 
 italic or bold-italic when a bold, italic or bold-italic 
 specific version of the font was not found. 
 
 The PdfGraphics2D.drawGlyphVector() method will produce the 
 proper output, but it consumes a lot of memory and produces 
 really large pdf files.
 
 The following PdfGraphics2D.drawString() method will simulate 
 bold, italic or bold-italic when needed, and it contains the 
 code I submitted earlier for horizontally scaled fonts.
 
 Note:
 On my machine the font.getFontName() and font.getName() 
 values would be different when the java virtual machine was 
 using a bold, italic or bold-italic version of a font, and 
 the values were the same when it was simulating bold, italic, 
 and bold-italic. 
 
 I would prefer if there was some way of determining if itext 
 doesn't have a bold, italic or bold-italic version of the 
 font, and use that information to trigger the code to 
 simulate a bold, italic, or bold-italic font. 
 
 /**
  * @see Graphics2D#drawString(String, float, float)  */ 
 public void drawString(String s, float x, float y) {
 if (s.length() == 0)
 return;
 setFillPaint();
 if (onlyShapes) {
 
 drawGlyphVector(this.font.layoutGlyphVector(getFontRenderContext(),
 s.toCharArray(), 0, s.length(),
 java.awt.Font.LAYOUT_LEFT_TO_RIGHT), x, y);
 //Use the following line to compile in JDK 1.3
 //
 drawGlyphVector(this.font.createGlyphVector(getFontRenderConte
 xt(), s), x, y);
 }
 else {
 boolean restoreTextRenderingMode = false;
 AffineTransform at = getTransform();
 AffineTransform at2 = getTransform();
 at2.translate(x, y);
 at2.concatenate(font.getTransform());
 setTransform(at2);
 AffineTransform inverse = this.normalizeMatrix();
 AffineTransform flipper = 
 AffineTransform.getScaleInstance(1,-1);
 inverse.concatenate(flipper);
 double[] mx = new double[6];
 inverse.getMatrix(mx);
 cb.beginText();
 cb.setFontAndSize(baseFont, fontSize);
 
 // Check if we need to simulate an italic font.
 // When there are different fonts for italic, bold, 
 italic bold
 // the font.getName() will be different from the 
 font.getFontName()
 // value. When they are the same value then we are 
 normally dealing
 // with a single font that has been made into an 
 italic or bold
 // font.
 if (font.isItalic()  
 font.getFontName().equals(font.getName())) {
 float angle = 
 baseFont.getFontDescriptor(baseFont.ITALICANGLE,
   1000);
 float angle2 = font.getItalicAngle();
 
 // We don't have an italic version of this font so we need
 // to set the font angle ourselves to produce an 
 italic font.
 if (angle2 == 0) {
 // The JavaVM didn't have an angle setting for making
 // the font an italic font so use a default of
 // italic angle of 15 degrees.
 angle2 = 15.0f;
 } else {
 // This sign of the angle for Java and PDF seams
 // seams to be reversed.
 angle2 = -angle2;
 }
 
 if (angle == 0) {
 mx[2] = angle2 / 100.0f;
 }
 }
 cb.setTextMatrix((float)mx[0], (float)mx[1], (float)mx[2],
 (float)mx[3], (float)mx[4], (float)mx[5]);
 
 
 // Set the horizontal scaling to match the Java font 
 if needed.
 Float hscale = (Float)
 font.getAttributes().get(TextAttribute.WIDTH);
 hscale = (hscale == null) ? 
 TextAttribute.WIDTH_REGULAR : hscale;
 cb.setHorizontalScaling(100.0f / hscale);
 
 // Get the weight of the font so we can detect fonts 
 with a weight
 // that makes them bold, but the Font.isBold() value is false.
 Float weight = (Float)
 font.getAttributes().get(TextAttribute.WEIGHT);
 if (weight == null) {
 weight = (font.isBold()) ? TextAttribute.WEIGHT_BOLD
  : TextAttribute.WEIGHT_REGULAR;
 }
 
 // Check if we need to simulate a bold font.
 if ((font.isBold() || weight

Re: [iText-questions] IText servlet printing garbage

2007-08-01 Thread Bill Ensley
We on this list are very able to help you if you would only describe your
problem more thouroughly.
 
Garbage is a relevant term.  Are you able to post a sample PDF that causes
a problem somewhere where we
 
can test it?
 
Does a particular document always behave in the same way?
 
If you are sometimes able to get a good print of a document, then the
problem is likely not iText.
 
Have you tried this on many different printers?
 
The question posed about the memory on your printers is very valid, I would
pursue this.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of harsha
ravindra
Sent: Wednesday, August 01, 2007 3:03 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] IText servlet printing garbage


thx for the support.. appreciated 


On 8/1/07, Bruno Lowagie (iText) [EMAIL PROTECTED] wrote: 

harsha ravindra wrote:
 I'm using itext API and servlets to create pdf documents...
 In the intranet the user selects only the document names and the
 relevant information of selected documents are picking up from database...

 and using itext API and servlet i'm creating a PDF document ...

The only new information we received in this 'extra'
explanation, is that you retrieve the documents from
the database. Maybe that's where it goes wrong. 
Maybe the data is corrupted by the way you retrieve
the BLOB from the database.

I think you're the one not getting the point here:
you're not giving us sufficient information to find
out what is going wrong in your specific application. 
If we were to write your application, it would work.

br,
Bruno

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop. 
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___ 
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
https://lists.sourceforge.net/lists/listinfo/itext-questions 
Buy the iText book: http://itext.ugent.be/itext-in-action/





-- 
Harsha 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] IText servlet printing garbage

2007-07-31 Thread Bill Ensley
I'm afraid I don't quite understand... is your printer actually spitting out
trash?
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of harsha
ravindra
Sent: Tuesday, July 31, 2007 10:00 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] IText servlet printing garbage


Hi All,

I'm using servlets to print automatically, and it prints garbage...
Why is that and anybody can help on this would be great...

thx

-- 
Harsha 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Itext font size vs Java swing font size

2007-07-16 Thread Bill Ensley
Java measures font in Pixels, iText measures them in Points

(pixel * .75) will give you the proper Point size. Ie:

34 * .75 = 25.5 points.

Conversely, Point / .75 will give you proper Pixel size.

These measurements are based on 96ppi which is not always the case, but it
is very common.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of david allen
 Sent: Sunday, July 15, 2007 8:07 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Itext font size vs Java swing font size
 
 
 Hi all,
 I have a java swing applet that allows the user to enter some 
 text into a JTextArea object. This text is eventually used to 
 create a pdf file.
 However, in the JTextArea I have set the font size to 
 something quite large like 34 otherwise it is too small to 
 see in the JTextArea. If I use the same value for the font 
 size in IText I get a very , very large font. 
 
 Does anyone know if the JTextArea uses a different system to 
 render the fonts to what Itext uses?
 
 Thank you
 David
 --
 View this message in context: 
 http://www.nabble.com/Itext-font-size-vs-Java-swing-font-size-
 tf4084297.html#a11608569
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PDF with 3D stream

2007-07-02 Thread Bill Ensley
I suspect that this user is doing 3D rendering to the screen in Java and
wants to
Output some finished product to PDF.

I recommend creating a BufferedImage to the paint method (if this applies to
Java3D) 
And then writing that image to PDF.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bruno Lowagie (iText)
 Sent: Monday, July 02, 2007 3:37 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] PDF with 3D stream
 
 Manish Deo wrote:
  hi there,
  
  Could you tell me how to call 3d pdf using java swing with 
 the help of 
  iText.
 
 You'll have to explain what this question means.
 Are you creating a PDF with a 3D stream using a Java Swing 
 app? Or do you expect the PDF with the 3D will be rendered. 
 If it's the latter you mean, you should know that you're on 
 the wrong mailing list.
 br,
 Bruno
 
 --
 ---
 This SF.net email is sponsored by DB2 Express Download DB2 
 Express C - the FREE version of DB2 express and take control 
 of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] iText domain name

2007-06-22 Thread Bill Ensley
Hello Sean 

I am writing because you are the administrative contact for the domain name
itext.com.
 
You may not know this but iText is a very popular open-source software
project for creating and editing
 
PDF's in Java.  Manning, a division of Pearson Education has published a
book called iText in Action about this project.
 
I wanted to ask if you would allow this project to use the iText.com domain
name.  It only makes sense
 
from a purely commercial standpoint, with more exposure, the project will be
used more and the book will sell better.
 
Also, Pearson does not seem to be using the domain at this time.

Sincerely, 

Bill Ensley
Phone: 503.244.4738
Fax: 503.244.5235

 http://www.bearprinting.com  
  _  

P.S. If you aren't able to open the photo proof, 
you may not have Adobe Acrobat
http://www.adobe.com/products/acrobat/readstep2.html Reader. You can
download it for free from: 
http://www.adobe.com/products/acrobat/readstep2.html 
newLogo.gif-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] JPEG Image Update for PdfGraphics2D

2007-06-19 Thread Bill Ensley
Hello All 

Recently a request was made to update PdfGraphics2D using Java's ImageIO
library instead of relying on com.sun classes.

I have made the updates and included them below.

My apologies for the format of this patch, I am unaccustomed to submitting
code.
 
Below are the relevent changes:

Line #180

super();

/*
*  Below can be safely removed
*/

  /*try {
Class.forName(com.sun.image.codec.jpeg.JPEGCodec);
  }
  catch (Throwable t) {
convertImagesToJPEG = false;
  }*/
 
Line # 1257
 
BufferedImage scaled = new BufferedImage(img.getWidth(null),
img.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g3 = scaled.createGraphics();
g3.setColor(Color.WHITE);
g3.fillRect(0,0,img.getWidth(null), img.getHeight(null));
g3.drawImage(img, 0, 0, img.getWidth(null), img.getHeight(null),
null);  
g3.dispose();   
img.flush();
img = null;

ByteArrayOutputStream baos = new ByteArrayOutputStream();


/*
*  Below comments can be safely removed
*/

/*com.sun.image.codec.jpeg.JPEGImageEncoder encoder =
com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(baos);
com.sun.image.codec.jpeg.JPEGEncodeParam param =
com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam(scaled);
param.setQuality(jpegQuality, true);
encoder.encode(scaled, param);*/

/*
*  End removal
*/

ImageWriteParam iwparam = new
JPEGImageWriteParam(Locale.getDefault());
iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
iwparam.setCompressionQuality(jpegQuality);//Set here your
compression rate
ImageWriter iw = ImageIO.getImageWritersByFormatName(jpg).next();
ImageOutputStream ios = ImageIO.createImageOutputStream(baos);
iw.setOutput(ios);
iw.write(null, new IIOImage(scaled, null, null), iwparam);
iw.dispose();
ios.close();

scaled.flush();
scaled = null;
image = com.lowagie.text.Image.getInstance(baos.toByteArray());
baos.flush();
baos.close();


Sincerely, 

Bill Ensley
Phone: 503.244.4738
Fax: 503.244.5235

 http://www.bearprinting.com 


P.S. If you aren't able to open the photo proof, 
you may not have Adobe Acrobat Reader
http://www.adobe.com/products/acrobat/readstep2.html . You can download it
for free from: 
http://www.adobe.com/products/acrobat/readstep2.html 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Not using com.sun.* classes

2007-05-30 Thread Bill Ensley

It's always been a bad idea to use com.sun.* classes due to them not being
present in JDKs/JREs 
other than Sun's. With that said seems the only class using any com.sun.*
stuff is 
PdfGraphics2D.java.

This was added by me some years ago.  I is simply a convienience constructor
and is ignored if
The required classes are not present.

Ideally there would be an implementation of the JPEG classes that does not
rely on _any_ JRE or version thereof.

It would not be hard to update this to use ImageIO, I will look into it and
post a fix.

-Bill Ensley
www.bearprinting.com


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Not using com.sun.* classes

2007-05-30 Thread Bill Ensley

Taking the bull by the horns I went ahead and modified that class to use
ImageIO which should be in 
all VMs =1.4, sun or not. I ran a few simple tests to make sure the code
works. I am pretty sure it 
does, but could use further testing and review. If it's borked, at least I
made an effort instead of 
just complaining :)


Sorry, I didn't read far enough into your post, I looked at your patch, and
it will work, but it doesn't make use of the jpegQuality parameter.

I will try to come up with a solution shortly.

-Bill Ensley
www.bearprinting.com


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] working example of a JTable2Pdf?

2007-05-22 Thread Bill Ensley
I'd like someone to write my program for me too.

-Bill Ensley
www.bearprinting.com 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
chandrajeet
Sent: Tuesday, May 22, 2007 12:57 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] working example of a JTable2Pdf?


Can someone give me a working example of a JTable2Pdf with the JTable having
1. at least 200 columns 2. A 1000 rows 3. Headers should appear in each page
4. With Color and components like( JCheckBox etc ) inside a cell 5. With
Margins 6. Page numbers, date(if possible) at the footer

Note: Unfortunately can't have a PdfPTable. The JTable has to be looped
through.

--
View this message in context:
http://www.nabble.com/working-example-of-a-JTable2Pdf--tf3800104.html#a10751
347
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] working example of a JTable2Pdf?

2007-05-22 Thread Bill Ensley
I am toiling on this since last few days especially on looping through.
Haven't yet settledown to find the exact width n heights with offsets to
clip n show in different
pages.
Thats why I wanted to look through any existing example who had a similar
need.


Yes, I see that, I've followed the thread.

People on this list are always at the ready to help, but they aren't going
To do the work for you.  They will lead and bait and jump-start, but it's 
All a bunch of quasi-volunteers who have day jobs of their own.

What you are trying to do is somewhat complex.  It will take a lot of trial
and
Error, but you will get it right eventually.

Converting Swing elements to PDF can be done and you are on the right track,
but
For multi-page layout, you will have to calculate the breaks yourself.  

This is one of the main reasons that PdfPTable exists.

Why can't you loop through your Jtable and populate a PdfPTable and them
place that?

-Bill Ensley
www.bearprinting.com 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText to PostScript?

2007-05-15 Thread Bill Ensley
Isn't that like converting your Lexus to use a carburator?

-bill ensley
www.bearprinting.com 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Landry
Sent: Tuesday, May 15, 2007 5:45 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] iText to PostScript?

Is there any way for iText to output to a postscript file instead of a PDF?
Or should I convert the resulting PDF to PS using Ghostscript?

Thank you.

Steve

-
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the
FREE version of DB2 express and take control of your XML. No limits. Just
data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] photometric 6 is not supported

2007-04-20 Thread Bill Ensley
Perhaps it can be opened by JAI and then passed to iText as a Java Image.

-Bill Ensley
www.bearprinting.com 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paulo
Soares
Sent: Friday, April 20, 2007 10:41 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] photometric 6 is not supported

Photometric 6 is YCbCr and that is not supported by iText. There's no
workaround.

Paulo

- Original Message -
From: Niyanta-A Arora [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Friday, April 20, 2007 6:24 PM
Subject: [iText-questions] photometric 6 is not supported


 Hi,
 I have been using the iText library and with certain images containing
 photographs having 100dpi 8-bit  color format. The error I get is:

 Photometric 6 is not supported when call the method getTiffImage()

 Could anyone help me with this?

 Regards.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Overlay a transparent gif on another image

2007-03-21 Thread Bill Ensley
Why not just put the images together into one using Java, and then place
that one dynamically?
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sverre
Moe
Sent: Wednesday, March 21, 2007 3:39 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Overlay a transparent gif on another image


I understand, but this gives me a new problem. My document is layed out like
this: Some Text - A Image - Some tables
If I positioned the image with this code:
image.scaleToFit(PageSize.A4.width(), PageSize.A4.height ());
image.setAlignment(Image.MIDDLE | Image.TEXTWRAP);
image.setAbsolutePosition(0, 350);
document.add(image);

With this code the image is aligned just below the upper text, but the
tables below are now inside the image. If I have to set them at absolute
position as well it seems like a lot of work. In order to find the absolute
position of the image I had a lot of trial and error to find the correct
position(0,350). I gues it will be harder to position all my tables below(4
tables). 


2007/3/20, Paulo Soares [EMAIL PROTECTED]: 

You must place the images at absolute positions otherwise how would you know
where to place the overlay?

Paulo

- Original Message -
From: Sverre Moe  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
To: Post all your questions about iText here
itext-questions@lists.sourceforge.net
Sent: Tuesday, March 20, 2007 2:09 PM 
Subject: Re: [iText-questions] Overlay a transparent gif on another image


I dont understand exactly. I am not drawing a image, it already exist and
is
 retrieved and displayed with the following code. 
 Image image = Image.getInstance(new URL(url));
 image.scaleToFit(PageSize.A4.width(), PageSize.A4.height());
 image.setAlignment(Image.MIDDLE | Image.TEXTWRAP);
 document.add(image);

 In addition to this image I have a transparent gif which I want to overlay
 on this. Or perhaps draw shapes directly onto it.

 2007/3/20, Paulo Soares [EMAIL PROTECTED]  mailto:[EMAIL PROTECTED]
:


 - Original Message -
 From: Sverre Moe [EMAIL PROTECTED]
 To:   mailto:itext-questions@lists.sourceforge.net
itext-questions@lists.sourceforge.net
 Sent: Tuesday, March 20, 2007 11:15 AM
 Subject: [iText-questions] Overlay a transparent gif on another image

  How can this be achieved with iText or if it is possible? Maybe I could

  just
  read the image in memory and paint on it using Graphics2D, but this
 seems
  like unnecessary extra work.

 Don't use Graphics2D. Draw the first image and then the GIF on top of it,

 the transparent parts will show, it's that simple.

 Paulo


 -
 Take Surveys. Earn Cash. Influence the Future of IT 
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash
 http://www.techsay.com/default.php?page=join.php
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
p=sourceforgeCID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/








 - 
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share
 your
 opinions on IT  business topics through brief surveys-and earn cash 
 http://www.techsay.com/default.php?page=join.php
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
p=sourceforgeCID=DEVDEV



 


 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/



- 
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
p=sourceforgeCID=DEVDEV
___ 
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
https://lists.sourceforge.net/lists/listinfo/itext-questions 
Buy the iText book: http://itext.ugent.be/itext-in-action/



-
Take Surveys. Earn Cash. Influence the Future

Re: [iText-questions] Color looks different after drawing particular image types

2007-03-17 Thread Bill Ensley
gif and png offer transparency, jpg and bmp do not, your color mode in 
Graphics2D is affected by whether or not
you have transparency.  This affects all elements, not just the 
transparent ones.


-Bill ensley
www.bearprinting.com

Peter van Raamsdonk wrote:

Hi,
 
I don't know if this is itext related or simple in the pdf.
 
I use the pdfgraphics2d and paint images loaded by ImageIO. If I fill 
a simple rectangle with an color the color 'visually' changes 
(darkens) in the pdf when I draw an image with a different colormodel 
like in gif or png. In fact all colors change but in images the change 
is harder to notice compared to a solid color. If I draw a jpg or bmp 
or don't draw an image, the colors stays correct (or the same compared 
to the color (RGB) in html).
 
If tried resetting the color, background and composite to the start 
values but still the same result. There are no layers painted over 
each other mixing the colors. No blending involved.
 
If I look at the color, the color stays exactly the same and the 
colormodel too, yet visually it is not the same. I use itext 1.3.0. It 
happens with both Acrobat reader 7 and 8.
 
I wonder if anybody noticed this too and where the problem may lie.
 
If I print the pdf the color is printed in the darkened form (this 
could be printer related). If I use the same color in html it is shown 
in a lightened form.
 
Basically nothing changes but is shown otherwise,
 
Color me crazy but it is true,
 
Peter



Live Search, for accurate results! Click here 
http://g.msn.com/8HMBENNL/2728??PS=47575



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
  


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] convert PDF to JPEG

2007-03-15 Thread Bill Ensley
Dig deeper into JPedal, Specifically PDFDecoder, I use it every day to
render PDF 's in any size I want.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Michell
Sent: Thursday, March 15, 2007 8:34 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] convert PDF to JPEG


PDFBox - utterly useless when it converts to an image I get smoething that
doesn't even look like my pdf.
JPedal - for some reason it insists on producing an image which is 1:1
ratio in pixels for each point, so I can't use it because the result is not
the same size as the pdf and is more like a thumbnail...
Multivalent has not been updated since Jan 2006...

Are there no decent libraries to do this? I must say I'm pretty dissapointed
at how hard it is to save a PDF as an image... :(

Roger Misteli wrote: 

Not with iText. You need a renderer for that.

JPedal can do this (www.jpedal.org), other renderer libraries probably as
well, but as far as I remember, there are only two that have an open source 

license: JPedal (GPL) and Mutivalent (http://multivalent.sourceforge.net), I
didn't have a look at Multivalent in the last 3 years now, so I don't 

know how well it would work with that).



Rog





Ian Michell wrote:

  

Hi,



I need to be able to convert PDF to JPEG (because our French division 

refuse to get proper printers that support PDF), is this possible? How 

would I go about it?



Ian







  


-- 
This message has been scanned for viruses and 
dangerous content by  http://www.mailscanner.info/ MailScanner, and is 
believed to be clean. 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PDF to TIFF

2007-03-04 Thread Bill Ensley
You will need a 3rd party product for that.
 
Try JPedal or PDFBox, they will create a very good image of the pdf, you
will then need
to use JAI to turn it into a Tiff.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rick
Roen
Sent: Sunday, March 04, 2007 9:29 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] PDF to TIFF



I want to make sure I have not missed something in iText before I continue
searching.

 

The short question is: Can iText take a pdf  it has created and convert it
to a TIFF group 3 file for faxing?

 

 

I am creating pdf documents using iText.Net. I have a routine in the VS.NET
program that will send the document to an SBS shared fax server.

 

For this I need a TIFF group 3 file from the pdf.  If I designate the pdf as
the file to the fax server, it will open Adobe Reader and automatically
convert the file to a TIFF. The problem is that this not only takes a long
time, but leaves AR open on the client computer.

 

I used Ghostscript via the command line to create the TIFF, but this will
not work from a server and I don't want the clients to have to install
Ghostscript on each desktop.  This does work very fast however.

 

I see on pg 145 of the book that iText can take a CCITT image and insert
into a pdf, but I don't see any reference to the reverse.

 

Is this possible from iText or can someone recommend a different avenue?
Perhaps some intermediary image format which can then be converted to a
TIFF?

 

Regards,

 

Rick

 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] XML to PDF

2007-03-03 Thread Bill Ensley
Have you mapped the lotus xml to itext xml or are you just expecting 
itext to know what kind of

XML you are sending it?

XML is not a language, it is a data storage and transfer mechanism. 


You probably need to create a custom SaxHandler to parse the lotus xml.

-Bill Ensley
www.bearprinting.com


I have read the tutorials and I have taken regular XML and converted 
it to PDF no problems.

I am trying to convert a Lotus Notes doc to XML then to PDF.

The problem that I am having is when I take the XML that I from the 
Lotus Notes doc and convert that XML to PDF

No matter what I do it creates a busted PDF doc.
I am not sure what I am doing wrong.


Michael D Marcavage


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] graphics2d/pdfmark...

2007-03-02 Thread Bill Ensley
If I understand you correctly, you want to have PdfGraphics2D honor
hyperlinks within the finished document.

While this is certainly possible to hack PdfGraphics2D to accomplish it, it
breaks the concept of the Graphics object as
You would need to explicitely be using a PdfGraphics2D object instead of a
generic Graphics object.

I think this would also be a good open discussion on the forum.

I would be willing to help out on this if there is agreement that it could
be useful to others.

-Bill Ensley
www.bearprinting.com

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Darrell Berry
 Sent: Friday, March 02, 2007 7:45 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] graphics2d/pdfmark...
 
 Hi
 
 Searched the archives, and couldn't find a similar question, so...
 
 I have a java app which currently exports graphics2d objects 
 rendered using the excellent JUNG visualisaiton library as 
 EPS files (amongst other formats), using a slightly-hacked 
 version of the FreeHEP vector graphics tools.
 
 For more flexibility, I intend add, using if possible iText, 
 the option to export PDF reports -- these will include the 
 graphics2d objects which I currently export as above, plus 
 some extra layout, text and tables.
 
 That should not be too difficult, as I understand it.
 
 BUT there's an extra requirement. The hacks I've made to 
 FreeHEP's EPS export add in pdfmark data, so that any string 
 in the graphics2d object, which appears to be a URL, is 
 pdfmarked with a link to open that address when clicked.
 
 i.e. if a string in the graphics2d contained http:// 
 www.bigshinything.com, then in the rendered EPS, it would 
 include a pdfmark wrapped around rendering of that string to 
 goto that address when clicked. This works really well -- 
 people can edit the EPS files in Illustrator, convert to PDF 
 etc, and the pdfmark links are preserved.
 
 What I need, when I add in the iText option, is to replicate 
 this behaviour. So I need to be able to assemble a PDF 
 document from an existing graphcis2d and other elements, but 
 on the way through, parse the graphics2d and (somehow) add in 
 pdfmarks for any URLs in strings in that object.
 
 I'm sure that's possible, but where and how -- callbacks? 
 overriding methods?!
 
 All help appreciated. I haven't written a line of 
 iText-related code yet, but the structure for the rest seems 
 easy -- this is the tricky bit...
 
 thanks
 
 d
 
 
 --
 Ku24 Limited: Technology for Creative Business
 
 e: [EMAIL PROTECTED]   |   m: 07947 817 564
 w: http://www.ku24.com|   t: 020 7193 0249
 
 
 
 
 
 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT Join 
 SourceForge.net's Techsay panel and you'll get the chance to 
 share your opinions on IT  business topics through brief 
 surveys-and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforge
CID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] XML to PDF

2007-03-02 Thread Bill Ensley

One word: Tutorial.

Xml to PDF is simple and well documented.

If you have specific questions once you get started, please ask again.

-Bill Ensley
www.bearprinting.com


I would be very interested if someone found a way to convert XML to 
PDF


Michael D Marcavage




Re
Date: Fri, 02 Mar 2007 19:11:15 +0100
From: Patrick Schweizer [EMAIL PROTECTED]
Subject: [iText-questions] xml to pdf acroforms SAXiTextHandler
question
To: itext-questions@lists.sourceforge.net
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=iso-8859-15

Hello,

I have a question concerning the xml to pdf transformation.
I need to generate a pdf out of an xml.
I searched to web to find a good solution for that and came across 
iText. This is what I found out so far:


- iText supports a xml to pdf transformation via the SAXiTextHandler
- SAXiTextHandler supports basic pdf Elements but no AcroForms
- As far as I found out in the posts there is no plan that iText will 
supprt that in the future


I am about to extend the iText Handler to be able to handle AcroForms.
But before I do that I have some questions:
- Is there a reason why the iText xml to pdf is not developed any longer?
 E.g. no resources, technical problems, there is another framework 
that covers that problem, ...
- Did anybody extend SAXiTextHandler already and wants to share his 
code and experience?
- Does anybody know another framework that is targeting the xml to pdf 
transformation that supports forms? (apache fop does not)


Thanks for your answers!

If I extend the SAXiTextHandler I can make the code available if 
someone is interessted in it.


Greeting Patrick




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV


___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
  


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Pdf File request

2007-02-26 Thread Bill Ensley
??
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tony
Chhun
Sent: Monday, February 26, 2007 11:01 AM
To: Post all your questions about iText here
Subject: [iText-questions] Pdf File request


Does anyone can send me a Pdf File with an audio annotation in it.
The audio annotation have to be a file specification embedded in the
document.

Thank you.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] [Fwd: Using iText-classes in a webapplication]

2007-02-15 Thread Bill Ensley
Is the iText jar in your classpath?

A missing jar can sometimes cause tomkat to just ignore code.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bruno Lowagie (iText)
 Sent: Thursday, February 15, 2007 12:25 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] [Fwd: Using iText-classes in a 
 webapplication]
 
 Anja wrote:
  If I try to run the webservice without the PDF creation it works 
  properly. But with the pdf creation an error occurs.
 
  The problem is, that neither PDF nor Exception is 
 printed. There's 
  no real error. It seems, that the program stops.
 
 Note the contradiction between
 - 'an error occurs' and
 - 'there's no real error'
 in the sentences above.
 
 I fear you'll have to debug this on your own.
 Just saying 'the program stops' makes it impossible for us to help.
 If that's the only information you're giving, the only thing 
 I can think of is that you pull the plug from the server just 
 before the try/catch is reached.
 
 br,
 Bruno
 
 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT Join 
 SourceForge.net's Techsay panel and you'll get the chance to 
 share your opinions on IT  business topics through brief 
 surveys-and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforge
CID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] PDF to BMP

2007-02-13 Thread Bill Ensley
Also, look at Jpedal, I am having great success with the latest version.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Stuart Jansen
 Sent: Tuesday, February 13, 2007 3:29 PM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] PDF to BMP
 
 On Tue, 2007-02-13 at 21:49 +0100, Philipp Schneider wrote:
  I have a question: Do you know a way, to convert a pdf file 
 to a bmp 
  or other image file. It was best, if Adobe Reader isn't 
 required to be 
  installed.
 
 iText can create PDFs, but it does not have the ability to render (or
 display) them.
 
 Check out GhostScript. There are both free and more 
 up-to-date commercial versions of it. To get you started, 
 here's a line from a shell script I use for converting a 
 single PDF to PNG.
 
 gs -q -dSAFER -dBATCH -dNOPAUSE -r600 -dFirstPage=$I \  
 -dLastPage=$I -sDEVICE=png16m -dGraphicsAlphaBits=4 \  
 -sOutputFile=$OUT $1 
 
 --
 Stuart Jansen [EMAIL PROTECTED]
 Guru Labs, L.C.
 


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Setting DPI

2007-02-06 Thread Bill Ensley
DPI and PageSize have nothing to do with eachother.
 
Bruno is right, i suspect that you are not properly setting your page size
to be the size that you want.
 
When you open your document in Acrobat, what are the dimesions of the
document?
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of magesh
rathnam
Sent: Tuesday, February 06, 2007 6:40 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Setting DPI


Hi,

  Is it possible to set the print DPI of the PDF via code? If yes, Can you
explain me how? I create a document of  4.82 * 6.94 in. But when I print it,
it comes out a lot smaller and I had to change the DPI so that it prints to
the correct size. So my question is how can I set this DPI inside the code,
so that people dont have to chnage the DPI to get it print to the same
dimension as the document. I'm using Java as my programming language.. Let
me know if you have any questions.

Thanks  Regards,
Magesh


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] loading images

2007-02-05 Thread Bill Ensley
Also don't forget Image.getInstance(fileObject.toURL());

If you have a file, just pass it as a URL.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Arif Abbasi
 Sent: Monday, February 05, 2007 1:58 PM
 To: 'Post all your questions about iText here'
 Subject: Re: [iText-questions] loading images
 
 Hi
 
 Thanks for replying back. Sorry if I am making it confusing, 
 I thought I was very explicit.
 
 We have all the images in our webapps (I was UI for this in 
 my last e-mails). The webapps are deployed as independent war 
 files. Our iText PDF report code(the middle tier) is in jar 
 files (deployed separately). The webapps (or UI code) calls 
 the middle tier iText code (in jar file) passing all 
 necessary information. As I stated before with previous 
 approach we have to load images in our Jar file and use 
 classloader to load them for iText code.
 
 The reason that solution is undesirable, because we have some 
 50 customers, and we don't want to package 50 images in 
 webapp and the same 50 images in jar file. We rather have 
 them reside in webapp (in war file), and have it load the 
 appropriate customer image, and pass that image to iText code 
 one customer at a time.
 
 That's why I asked the question that if there was a call like 
 Image.getInstance(File fileObject) that takes an image file 
 as parameter (that we pass from webapp to jared code), we can 
 achieve this  ..
 
 It looks like from Paul and Bruno e-mail that there isn't any 
 api. The alternatives are to load the image in webapp:
 
  as Java.awt.Image and pass this Image object to itext jarred 
 code as param.
 
 OR
 Load the image in a byte[] array and pass the byte array to 
 Image.getInstance(byte[]).
 
 After looking at JAVA API DOCS it does not look like that 
 pretty -- as Image is an abstract class - I was able to do 
 the following:
 
 public java.awt.Image loadImage(String fileName) 
   throws IOException {
   Toolkit toolkit = Toolkit.getDefaultToolkit();
   return toolkit.getImage(fileName);
   }
 
 And calling this as: 
 com.logie.text.Image myGif=
 Image.getInstance(loadImage(./webapp/finium/shared/images/vbl
 ogowhite.gif,
 null);
 document.add(myGif);
 
 
 Am I clear and if this is what you're suggesting?
 
 Thanks
 Arif
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Bruno Lowagie
 Sent: Saturday, February 03, 2007 4:58 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] loading images
 
 Arif Abbasi wrote:
  The problem with the above approach is that we have to 
 package those 
  images in our jar file, which is not desirable.
 
 OK, I thought this was your original requirement, the fact 
 that you are now saying this in not desirable confused me.
 
  We want to avoid this
  (exploded is not an option either).
 
 The word 'exploded' also confuses me. What does it mean?
 
  Since number and type of images can change depending upon 
 reports and 
  customers, we want to load images in UI
 
 In UI? Do you mean User Interface?
 How do I have to interpret this?
 Are you showing the images in an AWT or Swing object?
 
  and pass to iText code (in jar)
  file as a File object as a parameter - like a file object and then 
  create image out of it.
 
 The iText Image object can deal with images in all kinds of 
 forms, including java.awt.Image and byte[].
 
  This would have advantage of not jarring the images in the jar file 
  (they could reside in their place in webapps)
 
 In their place in webapps is very vague.
 I have no idea what you mean by this.
 Are we still talking about undesired jars?
 
  as well as allowing users
  to load different images for different stuff.
 
 How would they do that? With a FileSelector object?
 You are not being clear at all.
 
  I looked at iText api for
  images and there is no method like:
  Image.getInstance (File file).
 
 I don't think your understanding of class java.io.File is correct.
 
  A method like Image.getInstance (File fileObject) could prevent all 
  the above, since UI will load image as file and pass to 
 back-end code 
  the
 file.
 
 I think you are basing your conclusion on wrong assumptions.
 
  The back-end iText code can either do
  
  Image img = Image.getInstance(File file) and do
  
  Document.add(img)
  
  There is Image.getInstance(String filename) and 
 Image.getInstance(URL
  url) in API, but they would require class loader to load 
 the images as 
  well as packaging them in the jar file
  
  We want to load the images as file from UI and pass to back-end as 
  file object and then want to use something like
  
  Image.getInstance (File file) to create images.
  
  Kindly tell me if its possible and if there is a sample?
 
 I agree with Paulo. Your question isn't going anywhere.
 You have me all confused; probably because I fail to what

Re: [iText-questions] Convert BLOB to PDF

2007-02-03 Thread Bill Ensley
The same way I convert chicken to chocolate.

Bill Ensley
www.bearprinting.com 

P.S.  Really though, is the BLOB an image? Data?  We need more info.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Jeff
 Sent: Saturday, February 03, 2007 6:47 AM
 To: Post all your questions about iText here
 Subject: [iText-questions] Convert BLOB to PDF
 
 Hi,
 
 Newbie question: how do I convert a BLOB to a PDF?
 
 Thx!
 Jeff
 
 --
 ---
 Using Tomcat but need to do more? Need to support web 
 services, security?
 Get stuff done quickly with pre-integrated technology to make 
 your job easier.
 Download IBM WebSphere Application Server v.1.0.1 based on 
 Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057;
dat=121642
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Which unit values are returned fromDocument.getPageSize()

2007-01-24 Thread Bill Ensley
Units are 72 per inch.

Beware, computer units and printer units have nothing to do with eachother.

Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of gegemartinelli
 Sent: Wednesday, January 24, 2007 7:38 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Which unit values are returned 
 fromDocument.getPageSize()
 
 
 Hello,
 
 I'm a little confused with values returned  by the method 
 Document.getPageSize( ) 
 
 The Rectangle  values for A4 format are : width = 595, and height =842
 
 in which unit are these values ?   I guess it is not in pixel 
 because I
 would depend on the printer type. On my 300x300 printer it 
 would be arround 1280 pixels. 
 
 Aplology whether my question may look stupid, but let me 
 explain my problem
 :
 
 I have a printer HP P1000 . I want to start printing a table 
 with fixed positions for cells.  
 
 I have 8 rows  per page.   The cell height is fixed : 
 pagesize/8.The
 code below works  except that the rows are not positionned 
 exactly where I wanted.  The is a very small difference for 
 each row. Therefore they do not
 match my paper form.
 
 What I'm doing wrong ?
  
 --
 --
 --
 int curpos =0;
 String [][]  addr = new String[3][4];   // 3 
 columns per row
 and 4 lines per row
   Document document = new Document(PageSize.A4 , 
 0, 0,0, 0);

 writer = PdfWriter.getInstance(document, new 
 FileOutputStream(myfile));
   document.open();
   width = document.getPageSize().width();
   height = document.getPageSize().height();
 while ()
 {
   fill cell content
   addr = fillTableEtiquettes(addr, document);
  }
 document.close();
 --
 --
 
 private String[][] printRow(String[][] addr , Document document) {

   float[] colonneDefinitionSize = {33.33F,33.33F,33.33F};
   float[] position = new float[8]
   PdfPTable table = new PdfPTable(colonneDefinitionSize);
   table.getDefaultCell().setBorder(0);
   table.getDefaultCell().setPaddingLeft(20);
   table.setTotalWidth(width);
   table.setLockedWidth(true);
 
   int i  = 0, j=0;
   float ref= height/8  ;
   for (i=0; i8; i++) position[i] = (ref)*(8-i) ; 

   for (i=0; i4; i++)
   {
   for (j=0; j3 ; j++)
   {
   table.addCell(new 
 Phrase(addr[j][i],font_TimeRoman[12]));
   addr[j][i]=;
   }
   } 
   
   table.writeSelectedRows(0, -1, 10,  position[curpos] , 
 writer.getDirectContent()); 
   curpos++;
   try
   {
   if (curpos7) 
   {
   curpos=0;
   document.newPage();
   }
   }   
 catch(DocumentException de) {System.err.println(de.getMessage());}
   return addr;
  

  
 }
   
  
 --
 View this message in context: 
 http://www.nabble.com/Which-unit-values-are-returned-from-Docu
 ment.getPageSize%28%29-tf3081880.html#a8562745
 Sent from the iText - General mailing list archive at Nabble.com.
 
 
 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the 
 chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforge
 CID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Question

2007-01-22 Thread Bill Ensley
Can't do it with iText, Try:
Jpedal or Multivalent.

Bill Ensley
www.bearprinting.com
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Juan Carlos Araya Navarro
 Sent: Monday, January 22, 2007 9:20 AM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] Question
 
 Hello,
 
   We are trying to generate a PNG image from each page of 
 a given PDF File.
 
   In the examples I can see how the PDF file is open, and 
 also how each page can be converted to an independient PDF 
 file, but there is not information or examples related to PDF 
 to PNG transformation.
 
   This is the code I have been testing:
 
   PdfReader reader  = new 
 PdfReader(c:\\temp\\MyPDF.pdf);
   Document document = new 
 Document(reader.getPageSizeWithRotation(1));
   PdfCopy copy  = new PdfCopy(document, new 
 FileOutputStream(c:\\temp\\OutputPDF.pdf));
   document.open();
   PdfImportedPage page = copy.getImportedPage(reader, 1);
   copy.addPage(page);
   document.close();
 
   Here I would like to save each page as a PNG 
 image. Also I would like to transform the PdfImportedPage to 
 a BufferedImage or an Image object.
 
 
   I would appreciate any help that you could bring me,
 
 Thanks,
 
 
 Juan Carlos Araya Navarro
 
 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT Join 
 SourceForge.net's Techsay panel and you'll get the chance to 
 share your opinions on IT  business topics through brief 
 surveys - and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforge
CID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] document is not open error

2007-01-12 Thread Bill Ensley
Add:
 
document = new Document();

At the start of your doGet Method.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Bergueira
Sent: Friday, January 12, 2007 8:20 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] document is not open error



Hi all,
 
I am getting the following error: java.lang.RuntimeException: The document
is not open.
 
I am generating PDF on the fly, via servlet, and at the 1st generated pdf,
everything looks fine and pdf is ok!; second time or refreshing browser, get
the error above.
 
Any help?
Thanks
 
Here is my code:
 
/*  */
public class pdfInvoiceGeneratorPL extends HttpServlet {
protected Document document = new Document();
protected Paragraph paragraph = new Paragraph();
protected Chunk chunk = null;
protected PdfPCell cell = null; 

public pdfInvoiceGeneratorPL() {
super();
}

public void doGet(HttpServletRequest request, HttpServletResponse
response) throws javax.servlet.ServletException, java.io.IOException {
DocumentException ex = null;

ByteArrayOutputStream baos = null;

try {
baos = generatePDFDocumentBytes(request,
this.getServletContext());

StringBuffer sbFilename = new StringBuffer();
sbFilename.append(spectralBlue - Invoice: );
sbFilename.append(invoiceID);
sbFilename.append(.pdf); 

response.setHeader(Cache-Control, max-age=30);
response.setContentType(application/pdf);

StringBuffer sbContentDispValue = new StringBuffer(); 
sbContentDispValue.append(inline);
sbContentDispValue.append(; filename=XXX);
sbContentDispValue.append(sbFilename);

response.setHeader (Content-disposition, inline;
filename=XXX);

response.setContentLength(baos.size());

ServletOutputStream sos = response.getOutputStream ();
baos.writeTo(sos);
sos.flush();
} catch (DocumentException de) {
} finally {
if (baos != null) {
baos.reset();
}
}
}

protected ByteArrayOutputStream generatePDFDocumentBytes(
final HttpServletRequest req,
final ServletContext ctx)
throws DocumentException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfWriter documentWriter = null;

try {
utilitiesBL utilities = new utilitiesBL();

documentWriter = PdfWriter.getInstance(document, baos);

// Set document properties
document.addAuthor(pdfAuthor);
document.addCreationDate();
document.addProducer ();
document.addTitle(pdfTitle);
document.addSubject(pdfSubject);

document.setPageSize(PageSize.LETTER);

document.open();

// Adding elements to document

} catch (BadElementException ex) {
throw new RuntimeException();
} catch (MalformedURLException m) {
} catch (IOException ioe) { 
} catch (DocumentException de) {
baos.reset();
throw de;
} finally {
if (document != null) document.close();
if (documentWriter != null) documentWriter.close ();
}

if (baos.size()  1) {
throw new DocumentException(document has + baos.size()+ 
bytes);
}

return baos;
}
}
/*  */



Carlos

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Urgent:Fetching Image from URL Problem

2007-01-08 Thread Bill Ensley
www.products.com/image.jpg needs to exist for it to work.
 
-Bill Ensley
www.bearprinting.com


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Ramachandran
Sent: Monday, January 08, 2007 12:46 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Urgent:Fetching Image from URL Problem


Hi 
im using itext to generate PDF using web Appln...for that i need to fetch
image from an URL . 
while Running it showing error(not getting in to that siteif i used 
System.setProperty(http.proxyHost, x.x.x.x))its working correctlyi
dont want to use that 
set property instead i need to fetch directly from URL without using
property host settings.
 
 Image jpg2 = Image.getInstance(new URL(www.products.com/image.jpg));
 
I Tried for another site also...same Problem.
 
showing error as UnknownhostException : products.com
Thanks.



Thanks
Regards
Ramachandran K
09841917406

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] iText and coldfusion

2007-01-07 Thread Bill Ensley
iText is built into newer versions of ColdFusion.

He may not have the ability to choose his version.

-Bill Ensley
www.bearprinting.com 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Paul Hastings
 Sent: Sunday, January 07, 2007 9:20 AM
 To: Post all your questions about iText here
 Subject: Re: [iText-questions] iText and coldfusion
 
 NetDvlpr wrote:
  I am having the worst time finding help with itext. beginning to 
  wonder if anyone knows anything. I am using itext with 
 coldfusion. I 
  am new to java. I
 
 you have a funny way of asking for help. did you ask on 
 cf-talk? in the forums?
 
  I know setFontAndSize exist. What am I doing wrong? Thanks 
 in advance!!
 
 what version of itext are you using?
 
 --
 ---
 Take Surveys. Earn Cash. Influence the Future of IT Join 
 SourceForge.net's Techsay panel and you'll get the chance to 
 share your opinions on IT  business topics through brief 
 surveys - and earn cash 
 http://www.techsay.com/default.php?page=join.phpp=sourceforge
CID=DEVDEV
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
 Buy the iText book: http://itext.ugent.be/itext-in-action/


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


  1   2   3   >