[Solved] [PHP] Problem to export PDF /A with puno
Posted: Wed Nov 24, 2010 5:43 pm
Hello.
I would like to convert an .odt file into a PDF /A file but when I do this the result is a PDF 1.4 file.
Here is my source code :
I don't know why I get a PDF 1.4 instead of a PDF/1-4 file.
When I read the wiki page refering to PDF export :
http://wiki.services.openoffice.org/wik ... PDF_export
It is said :
Thanks for your help.
I would like to convert an .odt file into a PDF /A file but when I do this the result is a PDF 1.4 file.
Here is my source code :
Code: Select all
...
$path= "file:///d:/tmp/myPDFA.pdf";
$storePDF = array();
$aFilterData[] = array();
// Set PDF Version to A-1
$aFilterData[0] = $osm->Bridge_GetStruct("com.sun.star.beans.PropertyValue") ;
$aFilterData[0]->Name = "SelectPdfVersion";
$aFilterData[0]->Value = 1; // 0 for PDF 1.4 1 for PDF/A-1
$storePDF[0]= $osm->Bridge_GetStruct("com.sun.star.beans.PropertyValue") ;
$storePDF[0]->Name="FilterName";
$storePDF[0]->Value = "writer_pdf_Export";
$storePDF[1] = $osm->Bridge_GetStruct("com.sun.star.beans.PropertyValue") ;
$storePDF[1]->Name="FilterData";
$storePDF[1]->Value = $aFilterData;
$rtpl->storeToURL($path,$storePDF);
When I read the wiki page refering to PDF export :
http://wiki.services.openoffice.org/wik ... PDF_export
It is said :
My OOo version is 3.1.SelectPdfVersion :
Specifies the version of PDF to emit.
Possible values:
* 0 = PDF 1.4 (default selection).
* 1 = PDF/A-1 (ISO 19005-1:2005)
Thanks for your help.