I created it by using internal PDF-export of LO and then added the *.xml-file by mustang.jar
DIM filterArgs(1) as New com.sun.star.beans.PropertyValue
filterArgs(1).Name = "SelectPdfVersion"
filterArgs(1).Value = 3
DIM arg(1) AS NEW com.sun.star.beans.PropertyValue
arg(0).name = "FilterName"
arg(0).value = "writer_pdf_Export"
arg(1).Name = "FilterData"
arg(1).Value = filterArgs
oNewDoc.storeToURL(stPrintDir, arg())
Tried to describe more here but the post would be stopped by the system for review. Have a look at the complete solution on https://www.familiegrosskopf.de/robert/