Welcome, Guest. Please login or register.
Did you miss your activation email?
Your Ad Here
Pages: [1]   Go Down
  Print  
Author Topic: Unable to Run PDF Box from commandline  (Read 978 times)
0 Members and 1 Guest are viewing this topic.
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0
Activity
0%

WWW Awards
« on: March 24, 2009, 05:07:55 AM »

Hi folks,

i am using pdf box for encryption and decryption..

here is the link:http://incubator.apache.o...ineutilities/Encrypt.html

when i tried the same i got invalid key length error...
sometimes calss Not Found Exception....

here wat i gave:

java org.apache.pdfbox.Encrypt -O 123456 C:\invoice.pdf


can anybody solve this...
Logged

visit my blog: www.yoteam.co.cc
Javaforums.net/forum :: A community for software developers
« on: March 24, 2009, 05:07:55 AM »

 Logged
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Online Online
Posts: 2549
Referrals: 12
Activity
12%

WWW Awards
« Reply #1 on: March 24, 2009, 08:11:55 AM »

Can you post the exact error message?
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0
Activity
0%

WWW Awards
« Reply #2 on: March 24, 2009, 08:22:32 AM »

Here is my err:

http://img50.imageshack.us/img50/9849/pdferr.jpg

the source code is also given but m unable to run the code..

can you please help me...
Logged

visit my blog: www.yoteam.co.cc
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Online Online
Posts: 2549
Referrals: 12
Activity
12%

WWW Awards
« Reply #3 on: March 24, 2009, 02:05:29 PM »

Here is my err:

http://img50.imageshack.us/img50/9849/pdferr.jpg

the source code is also given but m unable to run the code..

can you please help me...

"-O <password>     string     None     The owner password to the PDF, ignored if -certFile is specified."

It appears you are providig the wrong length of the password, it's not a standard sun java package and unless you have a link for the api that i can read i can't help you with this.
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
jazz2k8
Yo Maaan Cheer Up...
Member
*

Reputation: 0
Offline Offline
Posts: 82
Referrals: 0
Activity
0%

WWW Awards
« Reply #4 on: March 25, 2009, 12:25:46 AM »

can you please guide me how to encrypt and decrypt the PDF.I can convert the pdf to text via command line.

hav given like this:
>encrypt.exe <input> <output>
 

i am facing the problem with the encypt and decrypt.

can you please have a look at it once.

thanks
Logged

visit my blog: www.yoteam.co.cc
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Online Online
Posts: 2549
Referrals: 12
Activity
12%

WWW Awards
« Reply #5 on: March 29, 2009, 12:55:09 PM »

can you please guide me how to encrypt and decrypt the PDF.I can convert the pdf to text via command line.

hav given like this:
>encrypt.exe <input> <output>
 

i am facing the problem with the encypt and decrypt.

can you please have a look at it once.

thanks

What about asking their support site? I'm not familiar with this tool so i can't help u there.
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
Javaforums.net/forum :: A community for software developers
   

Your Ad Here
 Logged
Pages: [1]   Go Up
  Print  
 
Jump to: