On Sat, 08 Jun 2013 07:18:56 +0200, hamzah <ham...@bizzcommunication.net> wrote:
> Hi, > > Need some help on this. ... > Any ideas on why the output is in the same order? The order of the attributes in an XML tag is irrelevant, as defined in the XML specs. Developers depending on the order of attributes are doing something they shouldn't. The order of the keys stored in a PDF dictionary is irrelevant, as defined in the PDF specs. Developers depending on the order of entries in a PDF dictionary are doing something they shouldn't. Many similar examples can be given on how developers sometimes ignore specs causing them to write crappy software. To avoid that you are such a developer, nobody is going to answer your question. The reason why the output isn't in the same order because the order is irrelevant. Furthermore: 1. you shouldn't open a PDF in a text editor. You're doing something that usually isn't done. 2. the /Info dictionary your question will be deprecated in ISO-32000-2 (PDF 2.0), so whatever software you're writing that depends on the order of the metadata entries this year, will be worthless if you want to switch to PDF 2.0 next year. For reason 2 alone, your employer should be warned that he's asking you (or you're proposing him) a requirement that is stillborn. ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ 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