Re: [iText-questions] help - PdfTable and PageEvents

2009-08-18 Thread Alexis Pigeon
Hi Victor,

2009/8/19 Victor Dbritto 

> Hi,
>
> I am generating pdf file with table going on multiple pages(Using
> FragmentTable.java).
> It is generating pdf correctly.
> but when I give events like onOpenDocument,onEndPage using following code,
> Here PdfFormatter is class extending PdfPageEventHelper.
>
> PdfWriter writer1 = PdfWriter.getInstance(document, os);
> PdfPageEvent pageEvent = new PdfFormatter();
> writer1.setPageEvent(pageEvent);
>
> its giving error like - Unbalanced save/restore state operators.
>
> Could you please let me know what is wrong with this.
> How to give onStartPage, endPage events to pdf file with table going on
> multiple pages.
>

There must be something wrong with your implementation of
PdfPageEventHelper.
Check the code for what the error says : unbalanced save/restore state
operators.
If after revision, you can't find your error, send the code of your
PdfFormatter to this list.

HTH,
alexis
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] help - PdfTable and PageEvents

2009-08-18 Thread Victor Dbritto
Hi,

I am generating pdf file with table going on multiple pages(Using
FragmentTable.java).
It is generating pdf correctly.
but when I give events like onOpenDocument,onEndPage using following code,
Here PdfFormatter is class extending PdfPageEventHelper.

PdfWriter writer1 = PdfWriter.getInstance(document, os);
PdfPageEvent pageEvent = new PdfFormatter();
writer1.setPageEvent(pageEvent);

its giving error like - Unbalanced save/restore state operators.

Could you please let me know what is wrong with this.
How to give onStartPage, endPage events to pdf file with table going on
multiple pages.


Thanks,
Victor
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] pdf print error

2009-08-18 Thread Leonard Rosenthol
What version of Adobe Reader are you using on what version of Windows?

Do you get this message on multiple computers or just a single one?

Leonard

From: Jason Berk [mailto:jb...@purdueefcu.com]
Sent: Tuesday, August 18, 2009 10:05 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] pdf print error


a number of the PDFs I create open in adobe reader just fine, but throw this 
error when you try to print them on any printer.

any clues on where to start looking.

Jason


-Original Message-
From: Michelle Gustin
Sent: Tue 8/18/2009 11:37 AM
To: Jason Berk
Subject:




The PEN is now mightier than the PIN. Simply use your PEN

instead of your PIN and sign for your PEFCU Visa Check Card

purchases. Earn bonus points redeemable for gift and travel

awards. Combine PEFCU Visa check card and credit card points

for even more rewards.





***This is a transmission from Purdue Employees Federal Credit

Union (PEFCU) and is intended solely for its authorized

recipient(s), and may contain information that is confidential

and or legally privileged.  If you are not an addressee, or the

employee or agent responsible for delivering it to an addressee,

you are hereby notified that any use, dissemination,

distribution, publication or copying of the information

contained

in this email is strictly prohibited. If you have received this

transmission in error, please notify us by telephoning (765)

497-3328 or returning the email. You are then instructed to

delete the information from your computer.  Thank you for your

cooperation.***


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] No pages when using PdfSmartCopy

2009-08-18 Thread Tobias Hasegawa




Hello,

I'm working on a small program that has to resize pages which I am
doing with PdfContentByte/Document.setPageSize.
This works fine if I'm doing it on a PdfWriter.
The problem is that I also have to keep additional information such as
named destinations. I am able to keep this information with an extended
PdfCopy (and using writer.addPage). But
when I add the pages with 
document.newPage();
contentByte.addTemplate(page, 0, 0); 
the pages are not (?) added. When I run the program I get an error:
"The document has no pages." (at
com.lowagie.text.pdf.PdfPages.writePageTree on document.close()).

Note to my program: It is basically a copy with some page resizing.

My questions:
Why does this kind of page-adding work on PdfWriter but not on PdfCopy?
Is there a solution for making it work on PdfCopy?

Thanks in advance.

Tobias



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] pdf print error

2009-08-18 Thread Jason Berk
a number of the PDFs I create open in adobe reader just fine, but throw this 
error when you try to print them on any printer.  

any clues on where to start looking.

Jason


-Original Message-
From: Michelle Gustin
Sent: Tue 8/18/2009 11:37 AM
To: Jason Berk
Subject: 
 




The PEN is now mightier than the PIN. Simply use your PEN 
instead of your PIN and sign for your PEFCU Visa Check Card 
purchases. Earn bonus points redeemable for gift and travel 
awards. Combine PEFCU Visa check card and credit card points 
for even more rewards.


***This is a transmission from Purdue Employees Federal Credit
Union (PEFCU) and is intended solely for its authorized
recipient(s), and may contain information that is confidential
and or legally privileged.  If you are not an addressee, or the
employee or agent responsible for delivering it to an addressee,
you are hereby notified that any use, dissemination,
distribution, publication or copying of the information 
contained
in this email is strictly prohibited. If you have received this
transmission in error, please notify us by telephoning (765)
497-3328 or returning the email. You are then instructed to
delete the information from your computer.  Thank you for your
cooperation.***

<>--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] PDF document is password secured

2009-08-18 Thread Ashok Sahu
Hi Martijn,

  It works after using Bouncycastle jar. Thanks for your help.

Ashok

Date: Mon, 17 Aug 2009 09:46:18 +0200
From: "martijn.list" 
Subject: Re: [iText-questions] PDF document is password secured
To: Post all your questions about iText here
   
Message-ID: <4a890aca.1020...@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

>If I am using the above code for normal PDF, then I am getting the
> boolean value as FALSE but for password secured PDF, I am getting the
> below exception:
>
>   Exception in thread "main" java.lang.NoClassDefFoundError:
> org/bouncycastle/asn1/ASN1OctetString

Did you install the Bouncycastle Jars?


See Technical Requirements:

http://www.lowagie.com/iText/


# The BouncyCastle: bcprov and bcmail (see installing iText)



Kind regards,

Martijn brinkers

On Mon, Aug 17, 2009 at 12:31 AM, Ashok Sahu  wrote:

> Hi,
>
> PdfReader pdfReader = new PdfReader("C:\\encrypted.pdf");
> boolean test = pdfReader.isEncrypted();
>
>If I am using the above code for normal PDF, then I am getting the
> boolean value as FALSE but for password secured PDF, I am getting the below
> exception:
>
>   Exception in thread "main" java.lang.NoClassDefFoundError:
> org/bouncycastle/asn1/ASN1OctetString
> at com.lowagie.text.pdf.PdfEncryption.(Unknown Source)
>  at com.lowagie.text.pdf.PdfReader.readDecryptedDocObj(Unknown Source)
> at com.lowagie.text.pdf.PdfReader.readDocObj(Unknown Source)
>  at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)
>
>   I want the boolean value as TRUE on this case. Plz help.
>
> Thanks,
> Ashok
>
> PdfReader pdfReader = new PdfReader("C:\\encrypted.pdf");boolean test =
> pdfReader.isEncrypted();
>
>
> On Sun, Aug 16, 2009 at 10:34 PM, Ashok Sahu  wrote:
>
>> Hi,
>>   I have a requirement to check whether a PDF document is password secured
>> or not using Java? Also I have to check if the document is Landscape or
>> portrait?
>>
>>  Please let me know how to achieve it?
>>
>> Thanks in advance,
>> AKS
>>
>
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Weekly calendar

2009-08-18 Thread Val Bumbu
The link to calendar.pdf from the "inspiration" site is broken.
http://itext.ugent.be/wiki/examples/results/filmfestival/calendar.pdf

-Original Message-
From: 1T3XT info [mailto:i...@1t3xt.info] 
Sent: Saturday, August 08, 2009 7:04 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Weekly calendar

Larry Ellis wrote:
> I want to create a weekly calendar view.

Use this for inspiration:
http://lowagie.com/itextwiki/doku.php/filmfestival:calendar
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Reading

2009-08-18 Thread Cameron Laird
You've already been referred to the FAQ.
It's almost certain that the manager who has assigned you this task actually
wants something different.  In any case,
iText does NOT take on the responsibility of extracting the human prose we
see in a PDF image, so your question might better be addressed in some
different forum.

Maybe http://phaseit.net/claird/comp.text.pdf/PDF_converters.html#pdf2txt > will
also interest you.

On Tue, Aug 18, 2009 at 2:03 PM, Chase Preuninger  wrote:

>  I just want to be able to read a PDF file.  This may sound like a simple
> task however there are no tutorials which show how to do this.
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>



-- 

Cameron Laird
+1 817 280 1145  Building 27, Q2/#35
+1 281 648 9889
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Re ading Tables

2009-08-18 Thread PortfolioMan

Sorry, I think what you are asking for may not really be possible in the
general case. You would need to approach the pdf file you wish to read data
from on a case basis by doing some parsing.
-- 
View this message in context: 
http://www.nabble.com/Reading-Tables-tp25032138p25033109.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Re ading Tables

2009-08-18 Thread Leonard Rosenthol
A PDF file does not contain a data structure called a table.  What may appear 
to you as a human being as a "table" is simply a series of lines, filled areas, 
text, etc.  You would need to perform semantic analysis on the objects in 
question to determine if they meet your definition of a "table".

(this assumes that PDF in question was not properly created using the "tagging" 
feature of PDF).

Leonard

-Original Message-
From: Chase Preuninger [mailto:chasepreunin...@gmail.com] 
Sent: Tuesday, August 18, 2009 3:42 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Re ading Tables


I am new to iText and no tutorials seem to be able to tell me how to do this. 
I need a way to read an existing PDF file and extract the tables contained
inside of it.
-- 
View this message in context: 
http://www.nabble.com/Reading-Tables-tp25032138p25032138.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Reading /humour

2009-08-18 Thread Mike Marchywka


>
>
>
> I just want to be able to read a PDF file. This may sound
> like a simple task however there are no tutorials which show how to do this.

First, go get about 100Gb of memory, and a 100Gb Ethernet link,
then, start the download and then go start a pot of coffee, perhaps
clean out your attic, LOL.
Sorry, couldn't resist- I'm always giving these guys a hard
time on the resource requirements for many PDF files and your
question was a bit open ended. 

I guess the question may be, what exactly do you want to do?
That is, you can type it out as an ASCII file and get some readable
output or open it in any reader. The spec document will tell you how
to "read" the contents.

>
>

_
Windows Live: Make it easier for your friends to see what you’re up to on 
Facebook.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_facebook:082009
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Reading

2009-08-18 Thread Alexis Pigeon
Hi Chase,

2009/8/18 Chase Preuninger 

>  I just want to be able to read a PDF file.  This may sound like a simple
> task however there are no tutorials which show how to do this.
>
There's no tutorial for the very simple reason that there is no answer to
the question "How deep is blue?"
Further explanation:
< http://1t3xt.info/tutorials/faq.php?branch=faq.abc&node=1st >

Cheers,
alexis
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] Re ading Tables

2009-08-18 Thread Chase Preuninger

I am new to iText and no tutorials seem to be able to tell me how to do this. 
I need a way to read an existing PDF file and extract the tables contained
inside of it.
-- 
View this message in context: 
http://www.nabble.com/Reading-Tables-tp25032138p25032138.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] Reading

2009-08-18 Thread Chase Preuninger
I just want to be able to read a PDF file.  This may sound like a simple
task however there are no tutorials which show how to do this.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] SpotColor and equals()

2009-08-18 Thread Paulo Soares
SpotColor is an extension to Color and includes everything needed to render 
the color: the spot color and the tint. PdfSpotColor is the primitive 
representation that includes the spot name and the alternate colorspace; it 
should not include the tint. Removing the tint from PdfSpotColor is the 
logic thing to do but I'll have to discuss this with Bruno, it will break at 
least one example in the book.

Paulo

- Original Message - 
From: "Ludger Buenger" 
To: 
Sent: Tuesday, August 18, 2009 5:28 PM
Subject: [iText-questions] SpotColor and equals()


I tried to build an object cache reducing the time to create equal colors 
multiple times and thus reduce memory consumption and garbage collection 
time of our application.

This does work well for java colors, CMYKColor and GrayColor.

However, the itext SpotColor class uses the following equals method:

public boolean equals(Object obj) {
return this == obj;
}


This of course makes the same spot colors unhashable.

I'd like to suggest use the following code to instead as a change:

public boolean equals(Object obj) {
if (!(obj instanceof SpotColor)) {
return false;
}
SpotColor c2 = (SpotColor)obj;
return (spot.equals(c2.spot) && tint == c2.tint);
}


This checks for equality by requiring the PdfSpotColor objects to be used to 
be equal and having the same tint but not requiring object identity of the 
SpotColor object itself.

This would be an improvement but still not correct since the PdfSpotColor 
does not implement an equals method itself.
However since the tint value is present in both classes providing a correct 
comparison is difficult.

Is there a specific reason why the tint value is duplicated (and possibly 
not in sync) between SpotColor and PdfSpotColor?



Best regards,

Ludger


-- 
Dipl.-Inf. Ludger Bünger

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus 
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/ 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] SpotColor and equals()

2009-08-18 Thread Ludger Buenger
I tried to build an object cache reducing the time to create equal colors 
multiple times and thus reduce memory consumption and garbage collection time 
of our application.

This does work well for java colors, CMYKColor and GrayColor.

However, the itext SpotColor class uses the following equals method:

public boolean equals(Object obj) {
return this == obj;
}


This of course makes the same spot colors unhashable.

I'd like to suggest use the following code to instead as a change:

public boolean equals(Object obj) {
if (!(obj instanceof SpotColor)) {
return false;
}
SpotColor c2 = (SpotColor)obj;
return (spot.equals(c2.spot) && tint == c2.tint);
}


This checks for equality by requiring the PdfSpotColor objects to be used to be 
equal and having the same tint but not requiring object identity of the 
SpotColor object itself.

This would be an improvement but still not correct since the PdfSpotColor does 
not implement an equals method itself.
However since the tint value is present in both classes providing a correct 
comparison is difficult.

Is there a specific reason why the tint value is duplicated (and possibly not 
in sync) between SpotColor and PdfSpotColor?



Best regards,

Ludger


-- 
Dipl.-Inf. Ludger Bünger

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


[iText-questions] Validate Signature

2009-08-18 Thread Sawan Jain
Hi,

I have a PDF Form, which is digitally signed.

Whenever I load the PDF in the browser, it shows message as Validity
unknown. How can I validate the signature??

Regards,
Sawan

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Validate Signature

2009-08-18 Thread Sawan Jain
I'm getting following errors when I click on signature.

Error during signature verification.  

Error encountered while verifying:  

Error encountered while generating digest:  

Internal cryptographic library error.
Error Code: 0x204

Regards,
Sawan

-Original Message-
From: Sawan Jain 
Sent: Tuesday, August 18, 2009 8:12 PM
To: itext-questions@lists.sourceforge.net
Subject: Validate Signature

Hi,

I have a PDF Form, which is digitally signed.

Whenever I load the PDF in the browser, it shows message as Validity
unknown. How can I validate the signature??

Regards,
Sawan

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Paulo Soares
See http://xmlgraphics.apache.org/fop/0.94/hyphenation.html for other 
patterns. iText uses the same xml patterns as FOP.

Paulo

- Original Message - 
From: "Mathias Nilsson" 
To: 
Sent: Tuesday, August 18, 2009 12:14 PM
Subject: [iText-questions] Hyphenation for iText



Hi,

I'm currently working on a project that uses Indesign Server and a
third-party software for communicating with the Indesign server. The problem
is that it has grown and I'm moving to iText because it is faster, simpler
and more maintainable.

My concern is now hyphenation. I have downloaded the itext-hyph.jar for
testing the hyphenation sample in the itext book( Charles Dickens ).
However, when looking in the jar it is missing some languages that I need to
support. Where do I go from here? Should I make my own hyphenation( Seems
like rocket sience ) or is there another way to go?

Thanks!

// Mathias


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Leonard Rosenthol
If you're already doing the layout - then you are right, IDServer is a waste.   
That would be the main reason for using it - is to let it deal with the 
complexities of content layout combined with the H&J engine. (and other misc. 
things like format import, etc.)

IIRC, the hyphenation stuff in iText is based on the Knuth/TeX hyphenator, so 
you may be able to leverage their stuff. However, be aware that some languages 
aren't strictly table based for hyphenation.

Leonard

-Original Message-
From: Mathias Nilsson [mailto:wicket.program...@gmail.com] 
Sent: Tuesday, August 18, 2009 9:33 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Hyphenation for iText


Well, to make a long answer short. I have developed an Applet for positioning
elements like block, images, tables and we have used indesign to create pdf
files and jpg. Now we don't want that anymore. 
-- 
View this message in context: 
http://www.nabble.com/Hyphenation-for-iText-tp25022751p25024960.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Mathias Nilsson

Well, to make a long answer short. I have developed an Applet for positioning
elements like block, images, tables and we have used indesign to create pdf
files and jpg. Now we don't want that anymore. 
-- 
View this message in context: 
http://www.nabble.com/Hyphenation-for-iText-tp25022751p25024960.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Mathias Nilsson

 and no, we don't use indd files. We have a third-party that does this
for us that we don't want to use anymore. Is not the Indesign server that is
the problem. 
-- 
View this message in context: 
http://www.nabble.com/Hyphenation-for-iText-tp25022751p25025019.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Self-help facilities (was: Help needed)

2009-08-18 Thread Alexis Pigeon
Hi Cameron,

2009/8/18 Cameron Laird 

> Maybe you can help me; this thread has *me* confused.
> I certainly believe "[t]here are numerous messages ..." about, for example,
> "how to get* XY* coordinates for any string in a PDF".  I have the feeling
> that Mr. Nagarajaiah has been unable to locate even one; I know I've found
> it difficult.
>
> Mr. Pigeon recommended http://1t3xt.com/docs/index.php > and  http://1t3xt.com/docs/book.php >.  The iText book is indeed quite
> valuable, and I can only second your recommendation, although I don't know
> where it directly answers Mr. Nagarajaiah's question.  The on-line
> documentation ... well, I've tried to read it all, and I remember nothing
> that seems to me to address Mr. Nagarajaiah's question directly.
>
> Do you use the search facility at  http://sourceforge.net/mailarchive/forum.php?forum_name=itext-questions >?
> I've tried it. I have *never* found anything useful to me with it, nor have
> I figured out any magic formula that makes search of the GMANE, Nabble,
> mail-archive, or open-Subscriber lists effective.
>

Google is your friend!
If you search with "itext find string coordinates", one of the first links
(the 3rd based on my locale and maybe personal settings) leads to:
< http://www.nabble.com/The-iText-functionality-td15571904.html >
which reads :

"[...] There is no free software that I know of
that will give you the coordinates of a String "S"
that appears somewhere on a page. [...]"

With the same search string, on Nabble one would have found this thread:
< http://www.nabble.com/Serach-string-in-pdf-td24371752.html >

It's the very same question, asked something like a month ago, and answered
in the very same way (and by the very same person :D ).

And I do believe it's pretty easy to find more examples, surely by
fine-tuning the search strings.

This kind of questions is based on a strong misconception about what PDF /
PDL is.
It usually arises when the OP has been assigned the task to edit some
existing PDF file.
Wouldn't the natural way be to
- Go to the iText website
< http://1t3xt.com/ >
- Click on the documentation tab
< http://1t3xt.com/docs/index.php >
- Click on the FAQ item
< http://1t3xt.info/tutorials/faq.php > (the domain switch has always
mislead me, I admit, but anyway...)
- Click on the entry "Can I edit an existing PDF file?"
<
http://1t3xt.info/tutorials/faq.php?branch=faq.pdf_in_general&node=replace_word>

And there you have the full explanation on why editing a PDF file (with
iText or any other 3rd party lib) is something nearly impossible.

I hope I've clarified a bit how to find answers to you future questions
about using iText. And if not, suggestions are most welcome!

Cheers,
alexis
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Pdf file not being created?

2009-08-18 Thread PortfolioMan

I went over your example. I am not an expert but it looked ok. Try just using
the stamper to copy the original pdf to a stamped one to see if it is file
permissions or something no itext related.

-- 
View this message in context: 
http://www.nabble.com/Pdf-file-not-being-created--tp25013995p25024055.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Urgent : How to retrieve Footer value

2009-08-18 Thread PortfolioMan

sorry. The headers and footers are often just overlays etc and the only
option you may have would be to parse the content. This would require
knowing in advance some portion of what you are looking for.


-- 
View this message in context: 
http://www.nabble.com/Urgent-%3A-How-to-retrieve-Footer-value-tp25000350p25024101.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Adobe 9 complaining about PDF/A where as Adobe 8not

2009-08-18 Thread Leonard Rosenthol
Paulo said below it was a bug in iText.

-Original Message-
From: Faisal Raza [mailto:faisal.r...@ascertia.com] 
Sent: Tuesday, August 18, 2009 8:01 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Adobe 9 complaining about PDF/A where as Adobe 
8not


Hi,

I try it with latest update 9.1.3 of Acrobat too but after signing the PDF/A
compliancy was removed. It is my observation that when I use text in signing
its remove the PDF/A compliancy and if I use only images for signing PDF the
Acrobat 9 not removes the PDF/A compliancy.
Please make shore me that, is it the issue of Adobe or there is some thing
else?

Best Regards,
Rana Faisal Raza





Paulo Soares-3 wrote:
> 
> CIDset is set when creating a new document but not when changing an
> existing 
> document because the conformance flag is not set or checked. Looks like a 
> bug.
> 
> Paulo
> 
> - Original Message - 
> From: "Leonard Rosenthol" 
> To: 
> Sent: Monday, August 10, 2009 2:28 PM
> Subject: Re: [iText-questions] Adobe 9 complaining about PDF/A where as 
> Adobe 8not
> 
> 
>> Acrobat 9 is much more rigid in its checking.  Make sure you are using
>> the 
>> latest update (9.1.3) of Acrobat 9.
>>
>> Now if the signing is taking place using PDF/A-compliant methodology -
>> why 
>> should it remove the flags?
>>
>> Leonard
>>
>> -Original Message-
>> From: Faisal Raza [mailto:faisal.r...@ascertia.com]
>> Sent: Monday, August 10, 2009 8:39 AM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] Adobe 9 complaining about PDF/A where as 
>> Adobe 8not
>>
>>
>> Hi Paulo,
>>
>> Yes, I am embedding the font. The preflight tells about error that
>> "CIDset
>> in subset font missing". One more thing that when I performing invisible
>> signing on PDF it’s not removing the PDF/A compliancy.
>> For more details I am attaching the snap shot of the error.
>>
>> http://www.nabble.com/file/p24898953/error.jpg
>>
>>
>> you can see that the fonts are embedding
>>
>> http://www.nabble.com/file/p24898953/font.jpg
>>
>>
>> Best Regards,
>>
>> Rana Faisal Raza
>>
>>
>>
>>
>> Paulo Soares-3 wrote:
>>>
>>> If it's fixed in iText it's fixed in iTextSharp. Are you embedding the
>>> signature appearance font? What exactly is Acrobat 9 complaining about?
>>>
>>> Paulo
>>>
>>> - Original Message - 
>>> From: "faisal raza" 
>>> To: 
>>> Sent: Thursday, August 06, 2009 10:36 AM
>>> Subject: [iText-questions] Adobe 9 complaining about PDF/A where as
>>> Adobe
>>> 8not
>>>
>>>
>>> Hi,
>>>
>>> I am using latest itextsharp-4.1.6 and signing a PDF using it and after
>>> signing the PDF/a compliancy was removed according to Adobe 9 but Adobe
>>> 8
>>> confirms the PDF/A compliancy. During the investigation I find that this
>>> was
>>> a know issue in previous itextsharp versions. Please let me know that if
>>> this issue has been fixed in latest release or it is still persist.
>>>
>>> If it has been fixed then please guide me that what are the possible 
>>> wrong
>>> steps which I am performing during signing.
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Rana Faisal Raza
> 
> 
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day 
> trial. Simplify your report design, integration and deployment - and focus
> on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 

-- 
View this message in context: 
http://www.nabble.com/Adobe-9-complaining-about-PDF-A-where-as-Adobe-8-not-tp24843810p25023372.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
--
Let Crystal Reports handle the reporting -

Re: [iText-questions] Hyphenation for iText

2009-08-18 Thread Leonard Rosenthol
Wow!   That's like moving from a Swiss army knife to a stone axe...

I'd love to know what you are finding wrong with IDServer that is causing the 
move.  Is this CS3 or CS4 server?  

Also, if you are using ID Server aren't you working from INDD files as 
templates?  How are you going to replace those in the iText setup?

Thanks for any info.

Leonard

-Original Message-
From: Mathias Nilsson [mailto:wicket.program...@gmail.com] 
Sent: Tuesday, August 18, 2009 7:14 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Hyphenation for iText


Hi,

I'm currently working on a project that uses Indesign Server and a
third-party software for communicating with the Indesign server. The problem
is that it has grown and I'm moving to iText because it is faster, simpler
and more maintainable.

My concern is now hyphenation. I have downloaded the itext-hyph.jar for
testing the hyphenation sample in the itext book( Charles Dickens ).
However, when looking in the jar it is missing some languages that I need to
support. Where do I go from here? Should I make my own hyphenation( Seems
like rocket sience ) or is there another way to go?

Thanks!

// Mathias


-- 
View this message in context: 
http://www.nabble.com/Hyphenation-for-iText-tp25022751p25022751.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Access Permission VS Encryption

2009-08-18 Thread Leonard Rosenthol
Those are terms you've come up with to create a differentiation.  So no, I 
can't really explain.

As a general answer, you can do either or both of the following

* Prevent someone from opening a PDF w/o a password
* Allow anyone to open a PDF BUT apply a set of restrictions/rights on the 
document

Both of these involve encryption.

From: Mirco Piccin [mailto:pic...@gmail.com]
Sent: Tuesday, August 18, 2009 4:18 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Access Permission VS Encryption

HI,
so i use DO_NOT_ENCRYPT_METADATA
http://1t3xt.info/api/com/lowagie/text/pdf/PdfWriter.html#DO_NOT_ENCRYPT_METADATA

Anyway, can anyone explain me the difference between Access Permission and 
Document Security (of course, about "allow" attributes)?

Regards
M

On Tue, Aug 18, 2009 at 3:45 AM, Leonard Rosenthol 
mailto:lrose...@adobe.com>> wrote:

You need to use the right parameters/options, since you can most certainly have 
encryption of the document BUT the metadata in plaintext.



From: Mirco Piccin [mailto:pic...@gmail.com]
Sent: Monday, August 17, 2009 1:08 PM
To: Post all your questions about iText here
Subject: [iText-questions] Access Permission VS Encryption



Hi all,
i need to change Access Permission of an existent PDF file.
I've used the PdfEncryptor as well explained in this example:
chapter03/HelloWorldEncryptDecrypt.java

I use constant values to set permission (as listed here :
http://1t3xt.info/api/constant-values.html#com.lowagie.text.pdf.PdfWriter.ALLOW_ASSEMBLY
etc.)

PdfEncryptor encrypt my pdf with standard encryption at 40 or 128 bit.
In this way of course i can set Access Permission, but i set also Document 
Security.

So, also Metadata are encrypted.
And search engine can't access to encrypted Metadata.

Is there a way to set Access Permission without setting also Document Security?
And sorry for the stupid question but:
which is the difference between Access Permission and Document Security (except 
for the encrypt and password) in a pdf file?

Thanks in advance!
Regards
M

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: [iText-questions] Adobe 9 complaining about PDF/A where as Adobe 8not

2009-08-18 Thread Faisal Raza

Hi,

I try it with latest update 9.1.3 of Acrobat too but after signing the PDF/A
compliancy was removed. It is my observation that when I use text in signing
its remove the PDF/A compliancy and if I use only images for signing PDF the
Acrobat 9 not removes the PDF/A compliancy.
Please make shore me that, is it the issue of Adobe or there is some thing
else?

Best Regards,
Rana Faisal Raza





Paulo Soares-3 wrote:
> 
> CIDset is set when creating a new document but not when changing an
> existing 
> document because the conformance flag is not set or checked. Looks like a 
> bug.
> 
> Paulo
> 
> - Original Message - 
> From: "Leonard Rosenthol" 
> To: 
> Sent: Monday, August 10, 2009 2:28 PM
> Subject: Re: [iText-questions] Adobe 9 complaining about PDF/A where as 
> Adobe 8not
> 
> 
>> Acrobat 9 is much more rigid in its checking.  Make sure you are using
>> the 
>> latest update (9.1.3) of Acrobat 9.
>>
>> Now if the signing is taking place using PDF/A-compliant methodology -
>> why 
>> should it remove the flags?
>>
>> Leonard
>>
>> -Original Message-
>> From: Faisal Raza [mailto:faisal.r...@ascertia.com]
>> Sent: Monday, August 10, 2009 8:39 AM
>> To: itext-questions@lists.sourceforge.net
>> Subject: Re: [iText-questions] Adobe 9 complaining about PDF/A where as 
>> Adobe 8not
>>
>>
>> Hi Paulo,
>>
>> Yes, I am embedding the font. The preflight tells about error that
>> "CIDset
>> in subset font missing". One more thing that when I performing invisible
>> signing on PDF it’s not removing the PDF/A compliancy.
>> For more details I am attaching the snap shot of the error.
>>
>> http://www.nabble.com/file/p24898953/error.jpg
>>
>>
>> you can see that the fonts are embedding
>>
>> http://www.nabble.com/file/p24898953/font.jpg
>>
>>
>> Best Regards,
>>
>> Rana Faisal Raza
>>
>>
>>
>>
>> Paulo Soares-3 wrote:
>>>
>>> If it's fixed in iText it's fixed in iTextSharp. Are you embedding the
>>> signature appearance font? What exactly is Acrobat 9 complaining about?
>>>
>>> Paulo
>>>
>>> - Original Message - 
>>> From: "faisal raza" 
>>> To: 
>>> Sent: Thursday, August 06, 2009 10:36 AM
>>> Subject: [iText-questions] Adobe 9 complaining about PDF/A where as
>>> Adobe
>>> 8not
>>>
>>>
>>> Hi,
>>>
>>> I am using latest itextsharp-4.1.6 and signing a PDF using it and after
>>> signing the PDF/a compliancy was removed according to Adobe 9 but Adobe
>>> 8
>>> confirms the PDF/A compliancy. During the investigation I find that this
>>> was
>>> a know issue in previous itextsharp versions. Please let me know that if
>>> this issue has been fixed in latest release or it is still persist.
>>>
>>> If it has been fixed then please guide me that what are the possible 
>>> wrong
>>> steps which I am performing during signing.
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> Rana Faisal Raza
> 
> 
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day 
> trial. Simplify your report design, integration and deployment - and focus
> on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 

-- 
View this message in context: 
http://www.nabble.com/Adobe-9-complaining-about-PDF-A-where-as-Adobe-8-not-tp24843810p25023372.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] Self-help facilities (was: Help needed)

2009-08-18 Thread Cameron Laird
Maybe you can help me; this thread has *me* confused.
I certainly believe "[t]here are numerous messages ..." about, for example,
"how to get* XY* coordinates for any string in a PDF".  I have the feeling
that Mr. Nagarajaiah has been unable to locate even one; I know I've found
it difficult.

Mr. Pigeon recommended http://1t3xt.com/docs/index.php > and http://1t3xt.com/docs/book.php >.  The iText book is indeed quite valuable,
and I can only second your recommendation, although I don't know where it
directly answers Mr. Nagarajaiah's question.  The on-line documentation ...
well, I've tried to read it all, and I remember nothing that seems to me to
address Mr. Nagarajaiah's question directly.

Do you use the search facility at http://sourceforge.net/mailarchive/forum.php?forum_name=itext-questions >?
I've tried it. I have *never* found anything useful to me with it, nor have
I figured out any magic formula that makes search of the GMANE, Nabble,
mail-archive, or open-Subscriber lists effective.

Perhaps you can illustrate how you'd go about tracking down the answer
Mr. Nagarajaiah
seeks.  I suspect I, at least, would learn a lot from that.

I also suspect that part of the difficulty here might be that I don't
understand the question as well as you.  Mr. Nagarajaiah of course does
himself no favor in choosing "Help needed" as his subject, nor does he
detail what steps he's already taken to research his topic.  Perhaps your
existing deep familiarity with the mailing-list corpus helps you decode his
intent.

I have the feeling you know how to use existing resources much more
efficiently than I.  I'd like to learn your techniques.

On Tue, Aug 18, 2009 at 3:46 AM, mister bean  wrote:

>
> Seconding what Alexis wrote to you. There are numerous messages on this
> list
> and discussions in the docs regarding why what you want to do is not
> possible. --mr.bean
>
>
>
> Hi,
>
> I would like to know how to get XY coordinates for any string in a PDF and
> it does not associated with any tag.
>
> Thanks in advance.
>
> Thanks
> Mahadev
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Help-needed-tp25009464p25020808.html
> Sent from the iText - General mailing list archive at Nabble.com.
>
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

[iText-questions] Hyphenation for iText

2009-08-18 Thread Mathias Nilsson

Hi,

I'm currently working on a project that uses Indesign Server and a
third-party software for communicating with the Indesign server. The problem
is that it has grown and I'm moving to iText because it is faster, simpler
and more maintainable.

My concern is now hyphenation. I have downloaded the itext-hyph.jar for
testing the hyphenation sample in the itext book( Charles Dickens ).
However, when looking in the jar it is missing some languages that I need to
support. Where do I go from here? Should I make my own hyphenation( Seems
like rocket sience ) or is there another way to go?

Thanks!

// Mathias


-- 
View this message in context: 
http://www.nabble.com/Hyphenation-for-iText-tp25022751p25022751.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] HelpMe, distance between lines on rtf doc

2009-08-18 Thread mister bean

This has been discussed here many times. A simple search will get you all the
info you need. Read any of these entries here.
http://www.nabble.com/forum/Search.jtp?query=rtf+line+spacing&local=y&forum=2701&daterange=0&startdate=&enddate=

Regards,

---mr. bean


gabriele gentile wrote:
> 
> In RTF, how do I specify the space between lines? 
> 
> Thanks
> LeLe
> 

-- 
View this message in context: 
http://www.nabble.com/HelpMe%2C-distance-between-lines-on-rtf-doc-tp24954076p25021114.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Help needed

2009-08-18 Thread mister bean

Seconding what Alexis wrote to you. There are numerous messages on this list
and discussions in the docs regarding why what you want to do is not
possible. --mr.bean



Hi,

I would like to know how to get XY coordinates for any string in a PDF and
it does not associated with any tag.

Thanks in advance.

Thanks
Mahadev



-- 
View this message in context: 
http://www.nabble.com/Help-needed-tp25009464p25020808.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/


Re: [iText-questions] Access Permission VS Encryption

2009-08-18 Thread Mirco Piccin
HI,
so i use DO_NOT_ENCRYPT_METADATA

http://1t3xt.info/api/com/lowagie/text/pdf/PdfWriter.html#DO_NOT_ENCRYPT_METADATA

Anyway, can anyone explain me the difference between Access Permission and
Document Security (of course, about "allow" attributes)?

Regards
M


On Tue, Aug 18, 2009 at 3:45 AM, Leonard Rosenthol wrote:

>  You need to use the right parameters/options, since you can most
> certainly have encryption of the document BUT the metadata in plaintext.
>
>
>
> *From:* Mirco Piccin [mailto:pic...@gmail.com]
> *Sent:* Monday, August 17, 2009 1:08 PM
> *To:* Post all your questions about iText here
> *Subject:* [iText-questions] Access Permission VS Encryption
>
>
>
> Hi all,
> i need to change Access Permission of an existent PDF file.
> I've used the PdfEncryptor as well explained in this example:
> chapter03/HelloWorldEncryptDecrypt.java
>
> I use constant values to set permission (as listed here :
>
> http://1t3xt.info/api/constant-values.html#com.lowagie.text.pdf.PdfWriter.ALLOW_ASSEMBLY
> etc.)
>
> PdfEncryptor encrypt my pdf with standard encryption at 40 or 128 bit.
> In this way of course i can set Access Permission, but i set also Document
> Security.
>
> So, also Metadata are encrypted.
> And search engine can't access to encrypted Metadata.
>
> Is there a way to set Access Permission without setting also Document
> Security?
> And sorry for the stupid question but:
> which is the difference between Access Permission and Document Security
> (except for the encrypt and password) in a pdf file?
>
> Thanks in advance!
> Regards
> M
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> 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
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/