pdf to pdf/a with JODConverter3/OOo 3 Issue!

653 views
Skip to first unread message

Srikanth

unread,
Sep 12, 2011, 10:18:45 PM9/12/11
to JODConverter
Hi Shervin

in reference...
http://shervinasgari.blogspot.com/2010/08/migrating-from-jodconverter-2-to.html

I used your code snippet and tried to ran a PDF conversion to PDF/A.
But, whatever i do, i keep on getting "unsupported conversion"
exception. I tried other formats through the same code and they were
successfull, except pdf to pdf/a!! I am executing this on my windows
XP machine. Installed the Open Office 3.3 with Jod Converter 3 and
also installed importPDF.oxt extension. I was able to create PDF/A out
of PDF through GUI but not through code! Can you please help me with
this? I am working on this issue since 1 week and mind is struck in
this at this moment!!!

Appreaciate your help in this regard.

Thank You
Srikanth

Shervin

unread,
Sep 14, 2011, 3:30:35 AM9/14/11
to JODConverter
Have you tried to open a pdf file from inside OpenOffice.org writer?

Please provide complete stacktrace.

Shervin

On Sep 13, 4:18 am, Srikanth <ssampathi...@gmail.com> wrote:
> Hi Shervin
>
> in reference...http://shervinasgari.blogspot.com/2010/08/migrating-from-jodconverter...

Srikanth

unread,
Sep 14, 2011, 12:38:29 PM9/14/11
to JODConverter
Yes Shervin, I did created PDF/A from the OpenOffice.org writer. Here
is the stack trace...

Sep 14, 2011 12:32:37 PM
org.artofsolving.jodconverter.office.ProcessPoolOfficeManager <init>
INFO: ProcessManager implementation is PureJavaProcessManager
Sep 14, 2011 12:32:37 PM
org.artofsolving.jodconverter.office.OfficeProcess
prepareInstanceProfileDir
WARNING: profile dir 'C:\Users\SRIKAN~1.SAM\AppData\Local\Temp
\.jodconverter_socket_host-127.0.0.1_port-2002' already exists;
deleting
Sep 14, 2011 12:32:39 PM
org.artofsolving.jodconverter.office.OfficeProcess deleteProfileDir
SEVERE: could not delete profileDir: Unable to delete directory C:
\Users\SRIKAN~1.SAM\AppData\Local\Temp
\.jodconverter_socket_host-127.0.0.1_port-2002\user\uno_packages\cache
\registry
\com.sun.star.comp.deployment.configuration.PackageRegistryBackend.
Sep 14, 2011 12:32:39 PM
org.artofsolving.jodconverter.office.OfficeProcess start
INFO: starting process with acceptString
'socket,host=127.0.0.1,port=2002,tcpNoDelay=1' and profileDir 'C:\Users
\SRIKAN~1.SAM\AppData\Local\Temp
\.jodconverter_socket_host-127.0.0.1_port-2002'
Sep 14, 2011 12:32:39 PM
org.artofsolving.jodconverter.office.OfficeProcess start
INFO: started process
Sep 14, 2011 12:32:46 PM
org.artofsolving.jodconverter.office.OfficeConnection connect
INFO: connected: 'socket,host=127.0.0.1,port=2002,tcpNoDelay=1'
org.artofsolving.jodconverter.office.OfficeException: unsupported
conversion
at
org.artofsolving.jodconverter.AbstractConversionTask.storeDocument(AbstractConversionTask.java:
120)
at
org.artofsolving.jodconverter.AbstractConversionTask.execute(AbstractConversionTask.java:
61)
at org.artofsolving.jodconverter.office.PooledOfficeManager
$2.run(PooledOfficeManager.java:80)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
java.io.IOException: Converting failed
at com.ooo.ConverterService3Impl.convert(ConverterService3Impl.java:
96)
at com.ooo.ConverterService3Impl.convert(ConverterService3Impl.java:
154)
at
com.ooo.ConverterService3Impl.convertToPDFA(ConverterService3Impl.java:
114)
at com.ooo.test.main(test.java:27)
> > Srikanth- Hide quoted text -
>
> - Show quoted text -

Shervin

unread,
Sep 16, 2011, 3:24:11 AM9/16/11
to JODConverter
Hi Srikanth.

This is strange indeed.
Can you create a small test case that reproduce the problem so that I
can run it on my machine and see if I produce same error?
Otherwise if you also can zip the files and send them to me so I can
have a look. Maybe there is something obvious I can spot.

Shervin

On Sep 13, 4:18 am, Srikanth <ssampathi...@gmail.com> wrote:
> Hi Shervin
>
> in reference...http://shervinasgari.blogspot.com/2010/08/migrating-from-jodconverter...
>

hicham

unread,
Sep 22, 2011, 5:43:20 AM9/22/11
to JODConverter
Hi i have exactly the same problem,
the result for the conversion from any format to PDF/A goes well,
except when the input File in a PDF.
i have tried on different plateforms, and i get always the same error.
Thanks for helping.

On 16 sep, 09:24, Shervin <shervin.asg...@gmail.com> wrote:
> Hi Srikanth.
>
> This is strange indeed.
> Can you create a small test case that reproduce the problem so that I
> can run it on my machine and see if I produce same error?
> Otherwise if you also can zip the files and send them to me so I can
> have a look. Maybe there is something obvious I can spot.
>
> Shervin
>
> On Sep 13, 4:18 am, Srikanth <ssampathi...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi Shervin
>
> > in reference...http://shervinasgari.blogspot.com/2010/08/migrating-from-jodconverter...
>
> > I used your code snippet and tried to ran a PDFconversionto PDF/A.

Shervin

unread,
Sep 22, 2011, 8:46:26 AM9/22/11
to JODConverter
I have received the files from hicham, Srikanth, and I could verify
that it worked on my platform (I am running Linux Ubuntu) and
OpenOffice 3.2.

So this should work. If it doesn't then its something wrong with your
setup

Shervin

Hicham

unread,
Sep 23, 2011, 8:58:49 AM9/23/11
to jodcon...@googlegroups.com
for sure, with the code snippet published by Shervin, the conversion PDF==>PDF/A-1 won't work.
something is wrong with this conversion, but all the other conversions are OK .
thanks anyway shervin.
Hicham

2011/9/22 Shervin <shervin...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "JODConverter" group.
To post to this group, send email to jodcon...@googlegroups.com.
To unsubscribe from this group, send email to jodconverter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jodconverter?hl=en.




--
Hicham Elarqam
(+33) 6.50.38.22.27


Reply all
Reply to author
Forward
0 new messages