I think i muste edit this section :
EXPORT_FILTER_MAP = {
"pdf": {
FAMILY_TEXT: { "FilterName": "writer_pdf_Export" },
FAMILY_WEB: { "FilterName": "writer_web_pdf_Export" },
FAMILY_SPREADSHEET: { "FilterName": "calc_pdf_Export" },
FAMILY_PRESENTATION: { "FilterName": "impress_pdf_Export" },
FAMILY_DRAWING: { "FilterName": "draw_pdf_Export" }
},
[...]
But i don't know how to setup the SelectPdfVersion to 1 for the pdf
export format.
I will try something like that :
EXPORT_FILTER_MAP = {
"pdf": {
FAMILY_TEXT: { "FilterName": "writer_pdf_Export",
"FilterData": { "SelectPdfVersion": "1"} },
FAMILY_WEB: { "FilterName": "writer_web_pdf_Export",
"FilterData": { "SelectPdfVersion": "1"} },
FAMILY_SPREADSHEET: { "FilterName": "calc_pdf_Export",
"FilterData": { "SelectPdfVersion": "1"} },
FAMILY_PRESENTATION: { "FilterName": "impress_pdf_Export",
"FilterData": { "SelectPdfVersion": "1"} },
FAMILY_DRAWING: { "FilterName": "draw_pdf_Export" ,
"FilterData": { "SelectPdfVersion": "1"} }
},
[...]
But it give me that error :
Traceback (most recent call last):
File "DocumentConverter.py", line 224, in <module>
converter.convert(argv[1], argv[2])
File "DocumentConverter.py", line 156, in convert
document.storeToURL(outputUrl, self._toProperties
(storeProperties))
File "DocumentConverter.py", line 207, in _toProperties
prop.Value = dict[key]
File "/usr/lib/python2.6/dist-packages/uno.py", line 326, in
_uno_struct__setattr__
return __builtin__.setattr(self.__dict__["value"],name,value)
uno.RuntimeException: <type 'exceptions.AttributeError'>: 'dict'
object has no attribute 'getTypes', traceback follows
no traceback available
So, i don't know what to do now ....
Thanks for your help !
Kind regards
Mirko
If the answer is yes, what does i must change into the conf/document-
formats.js to make PDF/A1 default export format ?
Really thanks for your help, i have trie many things that doesn't
work....
"TEXT": { "FilterName": "writer_pdf_Export" },
to
"TEXT": {
"FilterName": "writer_pdf_Export",
"FilterData": { "SelectPdfVersion": 1 }
}
(Repeat for other document types.)
Kind regards
Mirko
It's really boring when something doesn't work only on your
computer :'(
(A PDF/A-1 document is always a PDF 1.4 document anyway. PDF/A-1 is a
subset of PDF 1.4.)
Kind regards
Mirko
//
// JODConverter Document Formats Configuration
//
[
{
"name": "Portable Document Format",
"extension": "pdf",
"mediaType": "application/pdf",
"storePropertiesByFamily": {
"DRAWING": {"FilterName": "draw_pdf_Export"},
"SPREADSHEET": {"FilterName": "calc_pdf_Export"},
"PRESENTATION": {"FilterName": "impress_pdf_Export"},
"TEXT": {"FilterName": "writer_pdf_Export","FilterData":
{ "SelectPdfVersion": 1 } }
}
}
As you can see, i have just add this -----> ,"FilterData":
{ "SelectPdfVersion": 1 } <------- for the TEXT family (and when i try
to convert an odt file, that just product an PDF-1.4 version)
I know PDF/A1 it's just a subset of PDF 1.4, but on Evince, a file
converted with OOo (and PDF/A option selected) is correctly recognized
as a PDF/A1, but a pdf converted with JodConverter isn't.
I want this format for include document on my electronic document
manager, that's necessary but apparently not easy :-)
Kind regards
Mirko
java -jar jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar
monFichier.odt monFichier.pdf
You say i need to use a suplementary option " -- registry" to take my
modification in "consideration" ?
But how can i do that, i haven't found any tutos on google using this
option ??? :-(
In ever case, really thanks for your support ;-)
A great "thanks you" for your support Mirko,
i have try to add :
--registry jodconverter-core-3.0-beta-3/conf/document-formats.js
at the end of my command, and the file producted by your soft is a
great PDF/A-1 type !
I hope this thread can help other user to found how to done PDF/A-1
conversion.
A great thanks again !