Re: [iText-questions] No fields returned by AcroFields.Count

2010-03-30 Thread 1T3XT info
sri sri wrote:
> i dont have the book

The book is a commercial good. It is not available for free.

> could u please give the online link to the Chapter 8 in Itext

If you would find chapter 8 online, then you would have found
an illegal copy of the book. Please report this, so that the
publisher can take action to remove that copy from the internet.

In other words: you've posted a request to a public mailing list
asking for something that is illegal.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] No fields returned by AcroFields.Count

2010-03-30 Thread sri sri
Hi Hema,

 *>>Lucian Hancu wrote :*
*>>*
*>>Dear all,
> >
> > I have a major problem with itext, which has not been solved by version
> 5.0
> >
> > My pdf has several fields, I can see them correctly in Acrobat 8.1.2 and
> > above. Itext instead returns 0 (zero) fields.
> >
> > Please give me some hints in how to solve it
>
> That's explained in chapter 8 of the new book about iText.
> If iText doesn't see any fields, the form is not an AcroForm.
> It's probably a dynamic form.
> --
*

i found above email archive on the net

i am also having the same issue.

i can see the field in acrobat but the acrofields count shows zero

u have answered if its the case then its a dynamic form.

how to edit the field if its a dynamic form

please help me on that, i have been trying for more than 4 days

i dont have the book

could u please give the online link to the Chapter 8 in Itext

thanks in advance

Sri



**
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] how do we read PdfStructureTreeRoot back from Tagged PDF

2010-03-30 Thread 1T3XT info
Chenping Ni wrote:
> Again, how do I read PdfStructureTreeRoot from a tagged pdf file?

The start of your code was right.
Once you have the StructTreeRoot, you need to inspect the K entry
(the Kids or children):

PdfDictionary catalog = reader.getCatalog();
PdfDictionary struct = catalog.getAsDict(PdfName.STRUCTTREEROOT);
inspectChild(struct.getDirectObject(PdfName.K));

Writing the method inspectChild is up to you (you'll use this
method recursively). Consult ISO-32000 to find out which types
of direct object can be returned.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Image manipulation

2010-03-30 Thread 1T3XT info
Jason Berk wrote:
> If I have an instance of com.itextpdf.text.Image, how do I get the
> actual bytes of the image?  
> 
> I need to take an Image instance, and resize it dynamically (which I
> assume I need to do via java graphics, not iText).  Then I need to take
> that resized image and convert it back to a com.itextpdf.text.Image so I
> add it to a button.
> 
> Make sense?

No, that doesn't make sense.

Some images (such as WMF files) are translated into PDF syntax.
The bit and bytes of other images (such as JPEGs) are kept as-is.
And images such as GIFs and PNGs are decoded and changed into
some kind of bitmap that is zipped (see chapter 10 of the second
edition of iText in Action).

You can't just "take an Image instance" and resize it.
You need to take the bits and bytes you've been feeding to the
construct the Image instance and resize the original image.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Image manipulation

2010-03-30 Thread Jason Berk
If I have an instance of com.itextpdf.text.Image, how do I get the
actual bytes of the image?  

I need to take an Image instance, and resize it dynamically (which I
assume I need to do via java graphics, not iText).  Then I need to take
that resized image and convert it back to a com.itextpdf.text.Image so I
add it to a button.

Make sense?

***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.***


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Multiple signatures and verification by Acrobat

2010-03-30 Thread mkl

Stephen,


Stephen Byrne wrote:
> 
> I am using iText to sign a document, save it to a file, read that file,
> add another signature, and save it to a second file. If I read my output
> files and verify the signatures with iText, they both verify. If I open
> the once-signed with Adobe Acrobat, it shows the signature as valid. I
> expected that if I opened the twice-signed file with Acrobat it would show
> both signatures as valid, but it shows the second signature as valid and
> the first as invalid.
> 

Would you share example documents demonstrating the problem?

Indeed Acrobat and Reader have more requirements concerning the validity of
signatures than the mere matching of the hash value. They also allow only a
very limitted set of additions to the file after signing. These requirements
have become stricter and stricter for quite some time. And they may depend
on information in the early stage of the PDF.

Regards,   Michael.
-- 
View this message in context: 
http://old.nabble.com/Multiple-signatures-and-verification-by-Acrobat-tp28082681p28088091.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] how do we read PdfStructureTreeRoot back from Tagged PDF

2010-03-30 Thread Chenping Ni
I have been trying to read marked content back in iText 2.1.7.

Marketcontent.pdf was written by the code in Appendix F of the first
edition Itext in Action book.

 

How do I read the PdfStructureTreeRoot back from the tagged PDF?

 

I did the following:

 

PdfReader reader = new PdfReader("marked_content.pdf");

PdfDictionary catalog = reader.getCatalog();

PRIndirectReference treeRoot =
(PRIndirectReference)catalog.get(PdfName.STRUCTTREEROOT);

(I have tried PdfDictionary treeRoot =
(PdfDictionary)catalog.get(PdfName.STRUCTTREEROOT, getting class casting
issue).

 

By looking at treeRoot, it is almost empty, cannot find the tree nodes
e1,e2,e3 and their content.

 

What is the rups?  Can I get tree structure back using rups without GUI?

Again, how do I read PdfStructureTreeRoot from a tagged pdf file?

 

Thank you very much!

 

Tom

 



Chenping Ni | Infogix, Inc. 
phone 630-505-5415 |  fax 630-505-1812  
c...@infogix.com | www.infogix.com

NOTICE: This e-mail message and any included attachments are from Infogix, Inc. 
("Infogix") and are intended solely for use by the individual(s) to whom the 
message was addressed. The information contained herein may include privileged 
or otherwise confidential information. Unauthorized review, forwarding, 
printing, copying, distributing, or using the information contained in this 
message is strictly prohibited. If you have received this message in error, or 
have reason to believe that you are not authorized to receive it, please 
promptly notify the sender by e-mail, delete the message from your computer, 
and do not copy or disclose the information to anyone else. If you properly 
received this e-mail as an addressee, please maintain its contents in 
confidence to protect confidentiality. Thank you.

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Low level browsing of document structure

2010-03-30 Thread trumpetinc

Look at the parser package (com.itextpdf.text.pdf.parser) - you can start
with the PdfContentReaderTool as a starting point.  I think you'll find that
this will greatly simplify your efforts.

Only caveat:  I don't know if the parser has been ported to iTextSharp yet.

- K


Mircea Zahan wrote:
> 
> Hi all,
> 
> Everything is just peachy with iText when one
> only wants to write PDFs. But when it comes to
> reading, the documentation says almost nothing.
> Only basics, like metadata, pages etc.
> 
> My problem: I need to obtain all the lines, curves
> etc. from a PDF together with their companions, that
> is, transformation matrixes, colors etc. In short, all
> the graphic content.
> 
> I have read everything that I could get my hands
> on and couldn't find a single example of how
> that can be achieved.
> 
> Anyone knows how to do that?
> 
> 
> I also need to get the internal ID of an object,
> the one looking like: 20 R, 30 R etc. That also I
> couldn't figure out and didn't find it anywhere.
> Any luck with it?
> 
> 
> Most grateful,
> Mircea.
> 
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/
> 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://old.nabble.com/Low-level-browsing-of-document-structure-tp28078245p28084870.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] how to bypass owner password of pdf

2010-03-30 Thread wasegraves
Interesting! Would "OpenSesame" be considered a "circumvention device" under 
the DMCA?

Cheers,
Bill Segraves

P.S. Raj, IMHO, your code might be; but then, I'm not a lawyer. ;-)





From: Ernesto Duncan 
To: Post all your questions about iText here 

Sent: Mon, March 29, 2010 3:21:26 PM
Subject: Re: [iText-questions] how to bypass owner password of pdf


Hello,

as of iText 5.0.1, all decrypting of encrypted PDFs can be done by the default 
password "OpenSesame".

Have fun,
Ernesto.

On Mar 29, 2010, at 8:45 PM, Vengunta, Raj wrote:

Hello,

I have a pdf file coming in via ftp from an external server. This pdf file has 
an owner password to which I do not have access to. As a result any time I use 
iText to open this file and read it, I get an error. Is there any way that I 
can change iText’s pdfReader object to not ask for the owner password? In other 
words – to bypass the step where the owner password is passed in. Can this even 
be done and if so, how? Thanks,

Roger Vengunta
Web Development - Consultant
ph: 865.380.3000 x5643 (off)
raj.vengu...@claytonhomes.com
...--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Multiple signatures and verification by Acrobat

2010-03-30 Thread Paulo Soares
Acrobat 9 (not sure about 8) only considers the last signature as valid even if 
the others also are. If you use Acrobat 7 both will show as valid.

Paulo


From: Stephen Byrne [step...@lincware.com]
Sent: Tuesday, March 30, 2010 2:15 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Multiple signatures and verification by Acrobat

I am using iText to sign a document, save it to a file, read that file,
add another signature, and save it to a second file. If I read my output
files and verify the signatures with iText, they both verify. If I open
the once-signed with Adobe Acrobat, it shows the signature as valid. I
expected that if I opened the twice-signed file with Acrobat it would
show both signatures as valid, but it shows the second signature as
valid and the first as invalid.

If I view the signature properties of the first signature (in the
twice-signed file) and compute modifications, it says that there have
been no changes made since the signature was applied. If I view the
signed version, the signature shows as valid.

As expected, if I open the twice-signed file in a hex editor and
truncate everything after the \n%%EOF\n (0a 25 25 45 4f 46 0a), it is
identical to the once-signed file.

Am I doing something wrong, or am I misunderstanding how Acrobat should
work?



File sourceFile = new File( "data/source.pdf" );
File signedFile = new File( "data/signed.pdf" );
File twiceSignedFile = new File( "data/twicesigned.pdf" );

// Load the PKI certs
String alias = "stephen";
char[] pass = "changeit".toCharArray();
KeyStore ks = KeyStore.getInstance( KeyStore.getDefaultType() );
ks.load( new FileInputStream( "keystore.ks" ), pass );
PrivateKey key = (PrivateKey) ks.getKey( alias, pass );
Certificate[] chain = ks.getCertificateChain( alias );

// Read from the source file and write to the signed file
PdfReader sourceReader =
  new PdfReader( new FileInputStream( sourceFile ) );
FileOutputStream signedFileOut = new FileOutputStream( signedFile );
PdfStamper stamper =
  PdfStamper.createSignature( sourceReader, signedFileOut, '\0' );

// Sign the first field
PdfSignatureAppearance psa = stamper.getSignatureAppearance();
psa.setCrypto( key, chain, null, PdfSignatureAppearance.WINCER_SIGNED );
psa.setReason( "I'm the author" );
psa.setLocation( "Here" );
psa.setVisibleSignature( "sig1" );
psa.setSignDate( new GregorianCalendar() );
psa.setCertificationLevel( psa.CERTIFIED_FORM_FILLING );

// close and write out.
stamper.close();
sourceReader.close();

// Read from the signed file and write to the twice signed file
PdfReader signedReader =
  new PdfReader( new FileInputStream( signedFile ) );
FileOutputStream twiceSignedFileOut =
  new FileOutputStream( twiceSignedFile );
PdfStamper stamper2 =
  PdfStamper.createSignature( signedReader, twiceSignedFileOut, '\0',
  null, true );

// Sign the second field.
PdfSignatureAppearance psa2 = stamper2.getSignatureAppearance();
psa2.setCrypto( key, chain, null, PdfSignatureAppearance.WINCER_SIGNED );
psa2.setReason( "I'm the author" );
psa2.setLocation( "Here" );
psa2.setVisibleSignature( "sig2" );
psa2.setSignDate( new GregorianCalendar() );
psa2.setCertificationLevel( psa.CERTIFIED_NO_CHANGES_ALLOWED );

// close and write out
stamper2.close();
signedReader.close();

--
Stephen Byrne
step...@lincware.com
(585) 286-5817

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the ke

Re: [iText-questions] how to bypass owner password of pdf

2010-03-30 Thread Vengunta, Raj
Sven,

Thanks for that answer. Yeah that is not an option so iText would not be the 
complete solution for me. As an aside, (and I know this is not directly iText 
related but involves java)I should be able to write a separate java class file 
of my own pdfReader, compile it and then use that jar file in my coldfusion 
application in conjunction with iText? Am I on the right track here or am I way 
off? Thanks,

Raj

From: Sven Boden [mailto:svenbo...@hotmail.com]
Sent: Tuesday, March 30, 2010 9:52 AM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] how to bypass owner password of pdf


Raj,

So the simple answer is no... what you usually end up with is to not process 
the file, and tell the other side to give the password or not use a password in 
the first place. If none of the latter can be done, someone has a problem ;)

Regards,
Sven


From: raj.vengu...@claytonhomes.com
To: itext-questions@lists.sourceforge.net
Date: Tue, 30 Mar 2010 09:04:44 -0400
Subject: Re: [iText-questions] how to bypass owner password of pdf
See below for my answer I sent to another developer:

Hi Mathieu,

I know this sounds convoluted but everything is on the up n up. The files are 
our company's proprietary material that are being processed for a specific 
reason by an outside entity and then sent back to us via ftp. If it were that 
simple as asking the password and getting it, I'd have done it by now. The 
folks in charge of sending this back have the actual programming done by 
outside programmers with whom they have no contact which is why it is not 
possible.

The point is, is there a way to have pdfreader bypass the password call (both 
owner and user)? Can I modify the java file, recompile it and run it?


From: Iliadis Yannis [mailto:ilyan...@gmail.com]
Sent: Tuesday, March 30, 2010 4:15 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] how to bypass owner password of pdf

Hm and I thought that we developers are logical beings but as it seems my 
assumption was wrong.

First of all the idea behind encrypting documents is all about making the 
document not available to anyone without proper authorization, hence having a 
password to "unlock" it.

Second, if let's say there where these mechanisms to be able to bypass such 
security measures, posting these kind of information on a public mailing list 
would be, not to say, at least idiotic.

Saying that the customer has given permissions to use the documents, can't be 
proven by anyone on this list.

So to conclude this, since you say that your customer provides you with 
permissions to use his documents, he/she should also provide you the password 
to be able to process the pdf's or tell him not to apply a password in the 
first place.

Best regards
2010/3/29 Ernesto Duncan 
Hello,

as of iText 5.0.1, all decrypting of encrypted PDFs can be done by the default 
password "OpenSesame".

Have fun,
Ernesto.

On Mar 29, 2010, at 8:45 PM, Vengunta, Raj wrote:

Hello,

I have a pdf file coming in via ftp from an external server. This pdf file has 
an owner password to which I do not have access to. As a result any time I use 
iText to open this file and read it, I get an error. Is there any way that I 
can change iText's pdfReader object to not ask for the owner password? In other 
words - to bypass the step where the owner password is passed in. Can this even 
be done and if so, how? Thanks,

Roger Vengunta
Web Development - Consultant
ph: 865.380.3000 x5643 (off)
raj.vengu...@claytonhomes.com


CONFIDENTIALITY NOTICE
This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you are hereby notified that you are strictly 
prohibited from reading, disseminating, distributing, copying, or taking action 
in reliance on the content of this communication. If you have received this 
e-mail in error, please notify the sender immediately and destroy the original 
transmission. Thank you.
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

--
Download Intel

Re: [iText-questions] how to bypass owner password of pdf

2010-03-30 Thread Sven Boden

 

Raj,

 

So the simple answer is no... what you usually end up with is to not process 
the file, and tell the other side to give the password or not use a password in 
the first place. If none of the latter can be done, someone has a problem ;)

 

Regards,

Sven
 


From: raj.vengu...@claytonhomes.com
To: itext-questions@lists.sourceforge.net
Date: Tue, 30 Mar 2010 09:04:44 -0400
Subject: Re: [iText-questions] how to bypass owner password of pdf





See below for my answer I sent to another developer:
 
Hi Mathieu,
 
I know this sounds convoluted but everything is on the up n up. The files are 
our company’s proprietary material that are being processed for a specific 
reason by an outside entity and then sent back to us via ftp. If it were that 
simple as asking the password and getting it, I’d have done it by now. The 
folks in charge of sending this back have the actual programming done by 
outside programmers with whom they have no contact which is why it is not 
possible.
 
The point is, is there a way to have pdfreader bypass the password call (both 
owner and user)? Can I modify the java file, recompile it and run it?
 
 

From: Iliadis Yannis [mailto:ilyan...@gmail.com] 
Sent: Tuesday, March 30, 2010 4:15 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] how to bypass owner password of pdf
 
Hm and I thought that we developers are logical beings but as it seems my 
assumption was wrong.

First of all the idea behind encrypting documents is all about making the 
document not available to anyone without proper authorization, hence having a 
password to "unlock" it.

Second, if let's say there where these mechanisms to be able to bypass such 
security measures, posting these kind of information on a public mailing list 
would be, not to say, at least idiotic.

Saying that the customer has given permissions to use the documents, can't be 
proven by anyone on this list.

So to conclude this, since you say that your customer provides you with 
permissions to use his documents, he/she should also provide you the password 
to be able to process the pdf's or tell him not to apply a password in the 
first place.

Best regards

2010/3/29 Ernesto Duncan 

Hello,

 

as of iText 5.0.1, all decrypting of encrypted PDFs can be done by the default 
password "OpenSesame".

 

Have fun,

Ernesto.


 

On Mar 29, 2010, at 8:45 PM, Vengunta, Raj wrote:

 


Hello,

 

I have a pdf file coming in via ftp from an external server. This pdf file has 
an owner password to which I do not have access to. As a result any time I use 
iText to open this file and read it, I get an error. Is there any way that I 
can change iText’s pdfReader object to not ask for the owner password? In other 
words – to bypass the step where the owner password is passed in. Can this even 
be done and if so, how? Thanks,

 

Roger Vengunta

Web Development - Consultant

ph: 865.380.3000 x5643 (off)

raj.vengu...@claytonhomes.com

 

 

CONFIDENTIALITY NOTICE

This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you are hereby notified that you are strictly 
prohibited from reading, disseminating, distributing, copying, or taking action 
in reliance on the content of this communication. If you have received this 
e-mail in error, please notify the sender immediately and destroy the original 
transmission. Thank you.



--

Download Intel® Parallel Studio Eval

Try the new software tools for yourself. Speed compiling, find bugs

proactively, and fine-tune applications for parallel performance.

See why Intel Parallel Studio got high marks during beta.

http://p.sf.net/sfu/intel-sw-dev___

iText-questions mailing list

iText-questions@lists.sourceforge.net

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

 

Buy the iText book: http://www.itextpdf.com/book/

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/

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also 

[iText-questions] Multiple signatures and verification by Acrobat

2010-03-30 Thread Stephen Byrne
I am using iText to sign a document, save it to a file, read that file,
add another signature, and save it to a second file. If I read my output
files and verify the signatures with iText, they both verify. If I open
the once-signed with Adobe Acrobat, it shows the signature as valid. I
expected that if I opened the twice-signed file with Acrobat it would
show both signatures as valid, but it shows the second signature as
valid and the first as invalid.

If I view the signature properties of the first signature (in the
twice-signed file) and compute modifications, it says that there have
been no changes made since the signature was applied. If I view the
signed version, the signature shows as valid.

As expected, if I open the twice-signed file in a hex editor and
truncate everything after the \n%%EOF\n (0a 25 25 45 4f 46 0a), it is
identical to the once-signed file.

Am I doing something wrong, or am I misunderstanding how Acrobat should
work?



File sourceFile = new File( "data/source.pdf" );
File signedFile = new File( "data/signed.pdf" );
File twiceSignedFile = new File( "data/twicesigned.pdf" );

// Load the PKI certs
String alias = "stephen";
char[] pass = "changeit".toCharArray();
KeyStore ks = KeyStore.getInstance( KeyStore.getDefaultType() );
ks.load( new FileInputStream( "keystore.ks" ), pass );
PrivateKey key = (PrivateKey) ks.getKey( alias, pass );
Certificate[] chain = ks.getCertificateChain( alias );

// Read from the source file and write to the signed file
PdfReader sourceReader =
  new PdfReader( new FileInputStream( sourceFile ) );
FileOutputStream signedFileOut = new FileOutputStream( signedFile );
PdfStamper stamper =
  PdfStamper.createSignature( sourceReader, signedFileOut, '\0' );

// Sign the first field
PdfSignatureAppearance psa = stamper.getSignatureAppearance();
psa.setCrypto( key, chain, null, PdfSignatureAppearance.WINCER_SIGNED );
psa.setReason( "I'm the author" );
psa.setLocation( "Here" );
psa.setVisibleSignature( "sig1" );
psa.setSignDate( new GregorianCalendar() );
psa.setCertificationLevel( psa.CERTIFIED_FORM_FILLING );

// close and write out.
stamper.close();
sourceReader.close();

// Read from the signed file and write to the twice signed file
PdfReader signedReader =
  new PdfReader( new FileInputStream( signedFile ) );
FileOutputStream twiceSignedFileOut =
  new FileOutputStream( twiceSignedFile );
PdfStamper stamper2 =
  PdfStamper.createSignature( signedReader, twiceSignedFileOut, '\0',
  null, true );

// Sign the second field.
PdfSignatureAppearance psa2 = stamper2.getSignatureAppearance();
psa2.setCrypto( key, chain, null, PdfSignatureAppearance.WINCER_SIGNED );
psa2.setReason( "I'm the author" );
psa2.setLocation( "Here" );
psa2.setVisibleSignature( "sig2" );
psa2.setSignDate( new GregorianCalendar() );
psa2.setCertificationLevel( psa.CERTIFIED_NO_CHANGES_ALLOWED );

// close and write out
stamper2.close();
signedReader.close();

-- 
Stephen Byrne
step...@lincware.com
(585) 286-5817

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] how to bypass owner password of pdf

2010-03-30 Thread Vengunta, Raj
See below for my answer I sent to another developer:

Hi Mathieu,

I know this sounds convoluted but everything is on the up n up. The files are 
our company's proprietary material that are being processed for a specific 
reason by an outside entity and then sent back to us via ftp. If it were that 
simple as asking the password and getting it, I'd have done it by now. The 
folks in charge of sending this back have the actual programming done by 
outside programmers with whom they have no contact which is why it is not 
possible.

The point is, is there a way to have pdfreader bypass the password call (both 
owner and user)? Can I modify the java file, recompile it and run it?


From: Iliadis Yannis [mailto:ilyan...@gmail.com]
Sent: Tuesday, March 30, 2010 4:15 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] how to bypass owner password of pdf

Hm and I thought that we developers are logical beings but as it seems my 
assumption was wrong.

First of all the idea behind encrypting documents is all about making the 
document not available to anyone without proper authorization, hence having a 
password to "unlock" it.

Second, if let's say there where these mechanisms to be able to bypass such 
security measures, posting these kind of information on a public mailing list 
would be, not to say, at least idiotic.

Saying that the customer has given permissions to use the documents, can't be 
proven by anyone on this list.

So to conclude this, since you say that your customer provides you with 
permissions to use his documents, he/she should also provide you the password 
to be able to process the pdf's or tell him not to apply a password in the 
first place.

Best regards
2010/3/29 Ernesto Duncan 
mailto:ernesto.dun...@gmail.com>>
Hello,

as of iText 5.0.1, all decrypting of encrypted PDFs can be done by the default 
password "OpenSesame".

Have fun,
Ernesto.

On Mar 29, 2010, at 8:45 PM, Vengunta, Raj wrote:

Hello,

I have a pdf file coming in via ftp from an external server. This pdf file has 
an owner password to which I do not have access to. As a result any time I use 
iText to open this file and read it, I get an error. Is there any way that I 
can change iText's pdfReader object to not ask for the owner password? In other 
words - to bypass the step where the owner password is passed in. Can this even 
be done and if so, how? Thanks,

Roger Vengunta
Web Development - Consultant
ph: 865.380.3000 x5643 (off)
raj.vengu...@claytonhomes.com


CONFIDENTIALITY NOTICE
This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you are hereby notified that you are strictly 
prohibited from reading, disseminating, distributing, copying, or taking action 
in reliance on the content of this communication. If you have received this 
e-mail in error, please notify the sender immediately and destroy the original 
transmission. Thank you.
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/



CONFIDENTIALITY NOTICE
This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you 

Re: [iText-questions] how to bypass owner password of pdf

2010-03-30 Thread Vengunta, Raj
Hi Mathieu,

I know this sounds convoluted but everything is on the up n up. The files are 
our companies proprietary material that are being processed for some reason by 
an outside entity and then sent back to us via ftp. If it were that simple as 
asking the password and getting it, I’d have done it by now. The folks in 
charge of sending this back have the actual programming done by outside 
programmers with whom they have no contact which is why it is not possible.

The point is, is there a way to have pdfreader bypass the password call (both 
owner and user)? Can I modify the java file, recompile it and run it?

raj

From: Mathieu Fortin [mailto:mathieu.for...@notarius.com]
Sent: Monday, March 29, 2010 4:46 PM
To: 'itext-questions@lists.sourceforge.net'
Subject: Re: [iText-questions] how to bypass owner password of pdf

That's the whole point of "shared secret". So that only those who have the 
password can decrypt the file. Either you ask him the password, or he removes 
the protection.


De : Vengunta, Raj 
À : Post all your questions about iText here 

Envoyé : Mon Mar 29 16:32:26 2010
Objet : Re: [iText-questions] how to bypass owner password of pdf
HI Bill,

No chance of any crime or anything criminal. The providers of the file have 
themselves explicitly given permission to our organization to do what we want. 
Basically the material they are giving us our proprietary stuff giving back to 
us in pdf format. So any question of confidentiality or criminality does not 
arise whatsoever.

And yes, the file is printable.

Thanks,

Raj Vengunta

From: wasegraves [mailto:wasegra...@bellsouth.net]
Sent: Monday, March 29, 2010 3:12 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] how to bypass owner password of pdf

Raj,

I'm not a lawyer, but it seems to me anyone providing you with the requested 
information would be joining you in a conspiracy to commit crimes against Adobe 
and the owner of the PDF.

Perhaps you should ask the owner of the PDF for the password.

That said, is the PDF printable?

Cheers,
Bill Segraves


From: "Vengunta, Raj" 
To: "itext-questions@lists.sourceforge.net" 

Sent: Mon, March 29, 2010 2:45:28 PM
Subject: [iText-questions] how to bypass owner password of pdf
Hello,

I have a pdf file coming in via ftp from an external server. This pdf file has 
an owner password to which I do not have access to. As a result any time I use 
iText to open this file and read it, I get an error. Is there any way that I 
can change iText’s pdfReader object to not ask for the owner password? In other 
words – to bypass the step where the owner password is passed in. Can this even 
be done and if so, how? Thanks,

Roger Vengunta
Web Development - Consultant
ph: 865.380.3000 x5643 (off)
raj.vengu...@claytonhomes.com



CONFIDENTIALITY NOTICE
This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you are hereby notified that you are strictly 
prohibited from reading, disseminating, distributing, copying, or taking action 
in reliance on the content of this communication. If you have received this 
e-mail in error, please notify the sender immediately and destroy the original 
transmission. Thank you.


CONFIDENTIALITY NOTICE
This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you are hereby notified that you are strictly 
prohibited from reading, disseminating, distributing, copying, or taking action 
in reliance on the content of this communication. If you have received this 
e-mail in error, please notify the sender immediately and destroy the original 
transmission. Thank you.


CONFIDENTIALITY NOTICE
This message and the accompanying documents contain information that belongs to 
the sender and may contain information that is privileged, confidential, or 
exempt from disclosure under applicable law. If the reader of this e-mail is 
not the intended recipient, you are hereby notified that you are strictly 
prohibited from reading, disseminating, distributing, copying, or taking action 
in reliance on the content of this communication. If you have received this 
e-mail in error, please notify the sender immediately and destroy the original 
transmission. Thank you.
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, a

[iText-questions] How to align the top of two columnTexts?

2010-03-30 Thread Peter . Henningsen
Hi, 

I have been searching and experimenting for some time now, but found no 
suitable solution (I got the book!). Maybe you have? 

The problem: 
I have two columns on one page to fill with content. No problem doing 
this, but the visible top of both 
columns is not aligned consistently. 
Columns are constructed via setSimpleColumn and filled in composite mode. 
iText version is 2.1.7

Positive example: The first item in the left column is an image (scaled to 
fit), the first item in the right column is a big title text. 
Image and Text are added using seperate columntext objects for each 
column. 
The top of the image is about half the fontsize higher than the top of the 
title text's glyphs UNLESS I use ct_title.setUseAscender(true)on the left 
column. 
So I do that and problem solved. 

Negative example 1: The first item in the left column is an image (scaled 
to fit) followed by body text. The text (one font-size only) runs down the 
left column 
and is continued in the right column. Here, ct_textbody.setUseAscender(
true) has no effect on the top of the right column. 

Negative example 2: The first item in the left column is a Paragraph with 
big font followed by body text. The text (one font-size only) runs down 
the left column 
and is continued in the right column. Here again, 
ct_textbody.setUseAscender(true) has no effect. 

So, is there a way to force columntext to kind of "re-do" its "first-line 
routine" when doing setSimpleColumn() on the right, before go()? 
Calling setUseAscender(true)once more before setSimpleColumn() did not 
change a thing. 

Thanks, 
Peter--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Low level browsing of document structure

2010-03-30 Thread Mircea Zahan
>> Everything is just peachy with iText when one
>> only wants to write PDFs. But when it comes to
>> reading, the documentation says almost nothing.
>
> Part 4 of "iText in Action 2nd Edition" is
> completely dedicated to the internal structure
> of PDFs.

Well, what should I make of this if part 4 is not yet
available? As an author you do know what's the status
of your book, don't you? So why this answer?

http://www.manning.com/lowagie2/


>> My problem: I need to obtain all the lines, curves
>> etc. from a PDF together with their companions, that
>> is, transformation matrixes, colors etc. In short, all
>> the graphic content.
>
> Aha, another one with that request.
> You need to start looking at PRTokeniser.
> Then at the classes in com.itextpdf.text.pdf.parser
> The parser classes keep track of the transformation
> matrices but for the moment they are only interested
> in text and images, not in colors, shapes and lines.

Ok, I'll take a look.


>> I have read everything that I could get my hands
>> on and couldn't find a single example of how
>> that can be achieved.
>>
>> Anyone knows how to do that?
>
> You can always contribute code to extend the parser classes.

Extending a framework means knowing the framework.
If I would already know how to deal with it I wouldn't
be asking here, now would I? With all do respect, could
you please come up with usefull answers?



>> I also need to get the internal ID of an object,
>> the one looking like: 20 R, 30 R etc. That also I
>> couldn't figure out and didn't find it anywhere.
>> Any luck with it?
>
> What have you tried? Because that seems like something
> that is easy to achieve.

It just seems. The ID should be a (public) property of
PdfObject, imho, or at least there should be some utility
method returning it given a PdfObject instance. I've browsed
the classes for such property/method. None found, but there are
plenty of classes. Btw, I'm using iTextSharp.


Thanks,
Mircea.

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] Sign PDF with Timestamp

2010-03-30 Thread Alex111

Hello,

I have tried to sign a pdf for several days now, but cannot get it to work.
I am using itextsharp 5.0.0.

I have code for signing a pdf with an external TSA:

In this code I get the Timestamp with the following code:

byte[] timeStampToken =X509Utils.GetTimestampToken(TsaServerUrl, null, null,
timeStampHash);


Now I want to create the timestamp myself for testing purposes, so I
replaced the above line with:

System.Security.Cryptography.X509Certificates.X509Certificate2 WinCert =  
GetCertificate();
Org.BouncyCastle.X509.X509Certificate cert =
DotNetUtilities.FromX509Certificate(WinCert);

AsymmetricKeyParameter key =
   
DotNetUtilities.GetRsaKeyPair((RSACryptoServiceProvider)WinCert.PrivateKey).Private;

TimeStampTokenGenerator TokenGen = new TimeStampTokenGenerator(
key, cert, TspAlgorithms.Sha1, "1.2");

TimeStampResponseGenerator RespGenerator =
new TimeStampResponseGenerator(TokenGen,
TspAlgorithms.Allowed);

TimeStampResponse response = RespGenerator.Generate(
request, cert.SerialNumber,
DateTime.UtcNow);
byte[] timeStampToken = response.TimeStampToken.GetEncoded();


But this does not work as expected. In the first case AdobeReader shows that
all is correct, but in the second case AdobeReader shows that there is a
problem with validating the certificate. AdobeReader also does not recognize
that there is a timestamp there.

Anybody who knows how to create the TimeStampToken correctly?

Regards,

Alex

-- 
View this message in context: 
http://old.nabble.com/Sign-PDF-with-Timestamp-tp28081120p28081120.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] CCITTFaxDecode support

2010-03-30 Thread shahroozkia



 

> -Original Message-
> From: itext-questions-boun...@lists.sourceforge.net 
> [mailto:itext-questions-boun...@lists.sourceforge.net] On 
> Behalf Of Brian McKeever
> Sent: Friday, March 23, 2007 5:56 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] CCITTFaxDecode support
> 
> >> I notice that there is a TIFFFaxDecoder class for reading 
> in compressed
> >> Tiff files.  How hard would it be to get one to call the 
> other?  Are
> >> the algorithms identical or just similar?  Is there 
> anything I should
> >> know before I try to implement it myself?
> 
> > GetStreamBytes() is there to decode content streams, not 
> image streams.
> > You can call GetStreamBytesRaw() and apply whatever 
> decoding algorithms
> > you want to it.
> 
> Ok.  But do you think it's as simple as calling into TIFFFaxDecoder,
> or is there more to it?  I've tried a few different options (guessing
> at fillorder, which DecodeXXX method to call) but I'm not even sure it
> will work in theory.  I've looked at the PDF spec, and it seems a
> little vague on this point.

It should works directy but you need to look at the params dictionary to
know if it's a g4 or g3 code. Note that apparently nobody knows how to
create correct G3/G4 code so you should expect errors even if other
viewers work correctly.

Paulo

Hi there, 
I used GetStreamBytesRaw() but it doesnt work for CCITTFaxDecode, could u
explain what must i do fo that ? 
Thank. 

Shahrooz
-- 
View this message in context: 
http://old.nabble.com/CCITTFaxDecode-support-tp9639371p28078488.html
Sent from the iText - General mailing list archive at Nabble.com.


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] concatenate to different page size

2010-03-30 Thread dirk ooms
Hello,

I know how to concatenate pdfs with the same pagesize using iText. Is it
also possible to concatenate e.g. 4 A6 pages into a single A4. I looked
through the archive, but could not find any info.

Any suggestion or reference is very much appreciated.
Cheers,
dirk


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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] how to bypass owner password of pdf

2010-03-30 Thread Iliadis Yannis
Hm and I thought that we developers are logical beings but as it seems my
assumption was wrong.

First of all the idea behind encrypting documents is all about making the
document not available to anyone without proper authorization, hence having
a password to "unlock" it.

Second, if let's say there where these mechanisms to be able to bypass such
security measures, posting these kind of information on a public mailing
list would be, not to say, at least idiotic.

Saying that the customer has given permissions to use the documents, can't
be proven by anyone on this list.

So to conclude this, since you say that your customer provides you with
permissions to use his documents, he/she should also provide you the
password to be able to process the pdf's or tell him not to apply a password
in the first place.

Best regards

2010/3/29 Ernesto Duncan 

> Hello,
>
> as of iText 5.0.1, all decrypting of encrypted PDFs can be done by the
> default password "OpenSesame".
>
> Have fun,
> Ernesto.
>
> On Mar 29, 2010, at 8:45 PM, Vengunta, Raj wrote:
>
> Hello,
>
> I have a pdf file coming in via ftp from an external server. This pdf file
> has an owner password to which I do not have access to. As a result any time
> I use iText to open this file and read it, I get an error. Is there any way
> that I can change iText’s pdfReader object to not ask for the owner
> password? In other words – to bypass the step where the owner password is
> passed in. Can this even be done and if so, how? Thanks,
>
> Roger Vengunta
> Web Development - Consultant
> ph: 865.380.3000 x5643 (off)
> raj.vengu...@claytonhomes.com
>
>
> CONFIDENTIALITY NOTICE
> This message and the accompanying documents contain information that
> belongs to the sender and may contain information that is privileged,
> confidential, or exempt from disclosure under applicable law. If the reader
> of this e-mail is not the intended recipient, you are hereby notified that
> you are strictly prohibited from reading, disseminating, distributing,
> copying, or taking action in reliance on the content of this communication.
> If you have received this e-mail in error, please notify the sender
> immediately and destroy the original transmission. Thank you.
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
>
> http://p.sf.net/sfu/intel-sw-dev___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> 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/
>
>
> --
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> ___
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> 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/
>
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/