Saving this document gives the document 1054618486_default.pdf. clicking on a bookmark moves the given page.
Converting it to PDF/A give the document 1054618486_PDFA.pdf. After conversion, the bookmarks are no more working.
Is this an error, or the normal reaction of a PDF/A ?
the conversion code is the following :
- Code: Select all
// convert to inputstream
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ByteArrayInputStream bais = null;
document.saveToStream(baos);
document.close();
bais = new ByteArrayInputStream(baos.toByteArray());
// Convert to PdfA1A
PdfStandardsConverter converter = new PdfStandardsConverter(bais);
converter.toPdfA1A(outputName);
bais.close();
baos.close();
We use the latest Java version of Office Spire (as we just bought the library), on a windows NT (test) machine, with a European region setting (France).
Regards
Guillaume PATRY