On 27/02/2013 16:55, loic wrote: > Hi, > > Using Itext 5.4.0, i'm splitting pdf without problems using high level > fonctions as : > PdfWriter.getDirectContent(); > PdfWriter.getImportedPage(); > ... > > It works fine, but now *I need to keep accessibility within the split pdf* > ... > > I have replace PdfWriter by PdfAWriter, but it is not enough to keep > accessibilty. > > How should I do that ? Is there any exemple ? Do I have to use low leve > fonctions ?? >
Splitting a document using PdfWriter is always a bad idea (see chapter 6 of the book). You need to use PdfCopy: PdfCopy copy = new PdfCopy(document, new FileOutputStream(output)); If you want to keep the accessibility, you need to invoked the setTagged method immediately after creating the copy object: copy.setTagged(); ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php