Re: [iText-questions] Saving Image as image file itself

2007-12-08 Thread Bruno Lowagie

[EMAIL PROTECTED] wrote:

I am using com.lowagie.text.Image object , and I want to change the dpi
of the image and save it as a png file (.png)


That's not what com.lowagie.itext.Image is for.
I can only repeat what I said earlier:
you're on the wrong mailing list.
iText can't do what you want. iText can put the
image in a PDF document, but it doesn't manipulate
PNG files.
br,
Bruno


smime.p7s
Description: S/MIME Cryptographic Signature
-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Plz..help

2007-12-08 Thread Paulo Soares
You can't, that would be stealing iText.

Paulo

- Original Message - 
From: neeraj dixit [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Saturday, December 08, 2007 4:19 AM
Subject: [iText-questions] Plz..help


Dear Hi
  plz. tell me hoe to change pdf producer name any pdf 
file...
 
   thanks
 
neeraj dixit



-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] Invalid signature file digest for Manifest main attributes (2.0.7)

2007-12-08 Thread Samuel B. Quiring
I have a small test program that uses iText.  It's been working fine for weeks. 
 Today I downloaded itext-2.0.7.jar and replaced itext-2.0.6.jar.  I rebuilt - 
no problems.  When I tried to execute, I received this stack dump shown below.  
Any ideas?

I should probably mention that my build.xml file builds a single .jar from my 
simple test program and the itext-2.0.7.jar.  To do this it unzips all the .jar 
files my code depends on (only itext-2.0.7.jar in this case) and then jars 
everything up into one big .jar with my main class called out in the manifest.

I invoke my test program like this:java -jar test.jar

Exception in thread main java.lang.SecurityException: Invalid signature file 
digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
at sun.security.util.SignatureFileVerifier.process(Unknown Source)
at java.util.jar.JarVerifier.processEntry(Unknown Source)
at java.util.jar.JarVerifier.update(Unknown Source)
at java.util.jar.JarFile.initializeVerifier(Unknown Source)
at java.util.jar.JarFile.getInputStream(Unknown Source)
at sun.misc.URLClassPath$JarLoader$1.getInputStream(Unknown Source)
at sun.misc.Resource.cachedInputStream(Unknown Source)
at sun.misc.Resource.getByteBuffer(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] Invalid signature file digest for Manifest main attributes (2.0.7)

2007-12-08 Thread Xavier Le Vourch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Samuel B. Quiring wrote:
 I have a small test program that uses iText.  It's been working fine for
 weeks.  Today I downloaded itext-2.0.7.jar and replaced
 itext-2.0.6.jar.  I rebuilt - no problems.  When I tried to execute, I
 received this stack dump shown below.  Any ideas?


Starting with 2.0.7, the official iText jar file is now signed by Bruno.
It seems that your problem comes from the repackaging of parts of the
official jar file done during your build process.

As a first step, you could try to run you application using your own
classes and the official jar file to see if it works in that situation.

If that works then, you'll need to have a closer look at how you're
repackaging the classes. It's probably best to keep the official jar as
is and just add it as a dependency in the manifest file for your
test.jar file.


Xavier


 I should probably mention that my build.xml file builds a single .jar
 from my simple test program and the itext-2.0.7.jar.  To do this it
 unzips all the .jar files my code depends on (only itext-2.0.7.jar in
 this case) and then jars everything up into one big .jar with my main
 class called out in the manifest.
  
 I invoke my test program like this:java -jar test.jar
  
 Exception in thread main java.lang.SecurityException: Invalid
 signature file digest for Manifest main attributes
 at sun.security.util.SignatureFileVerifier.processImpl(Unknown
 Source)
 at sun.security.util.SignatureFileVerifier.process(Unknown Source)
 at java.util.jar.JarVerifier.processEntry(Unknown Source)
 at java.util.jar.JarVerifier.update(Unknown Source)
 at java.util.jar.JarFile.initializeVerifier(Unknown Source)
 at java.util.jar.JarFile.getInputStream(Unknown Source)
 at sun.misc.URLClassPath$JarLoader$1.getInputStream(Unknown Source)
 at sun.misc.Resource.cachedInputStream(Unknown Source)
 at sun.misc.Resource.getByteBuffer(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 

- --
Xavier Le Vourch
Brittany Software, Inc.
[EMAIL PROTECTED]

PGP Key (ID 0x896C5947): http://brittanysoftware.com/gpg_key.asc
Key fingerprint: 73B3 6370 B8C5 4325 F2D8  4115 0372 5805 896C 5947
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHWxGkA3JYBYlsWUcRAtgQAJ9DEgLXDTIyBGkOuNyKGbq9pUxECACgjMOZ
MYSIoVCwskqCPc7hA7IWX3M=
=AtIK
-END PGP SIGNATURE-

-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] .NET and BC signatures

2007-12-08 Thread pchronos


I have a strange problem signing PDF's using iTextSharp with external
signatures. With PKCS1 (SELF_SIGNED) pdfs, Adobe Reader 8 verifies
signatures done with .NET ( RSACryproServiceProvider class with Sha1 ) OK
but fails to verify BC (RsaDigestSigner with Sha1Digest) signed pdfs. With
PKCS7 (WINCER_SIGNED) the reverse is true. BC signed PDFs verify OK but the
.NET ones fail to verify!

Same code is used in both cases except for the required changes to pdf
signature type and PdfPKCS7.GetEncodedPKCSn call ( 1 or 7 )  

Any ideas would be greatly appreciated. 
Thanks in advance.

-- 
View this message in context: 
http://www.nabble.com/.NET-and-BC-signatures-tp14235700p14235700.html
Sent from the iText - General mailing list archive at Nabble.com.


-
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/