I've implemented code which splits PDFs based on bookmarks, combines PDFs, and add bookmarks. In my experience, PDFBox was able to do everything with bookmarks which is specified in the PDF Specification (ISO32000) and I've contributed code in the past which maps bookmarks to page numbers for quick and easy reference. I think the one word answer to your question is "yes" and Jeremias and Maruan both went into specifics on how to get started.
Check out the examples (in org.apache.pdfbox.examples if I recall correctly) and you should be able to hack those into a program that will meet your needs. Let us know if you need any clarification on anything. On Mon, Nov 7, 2011 at 7:37 AM, Maruan Sahyoun <[email protected]> wrote: > Hi Rubesh, > > as both Jeremias and myself already gave you a quick answer on the questions > you had what is the additional information you are looking for? > > With kind regards. > > Maruan > > Am 07.11.2011 um 13:32 schrieb [email protected]: > >> Hi Team, >> Could someone please update me on my query below; We need to take some >> business decision on this. I am not able to find any relevant details to >> my questions anywhere and I do not want to upload in Jira on this issue, >> as I was advised that it was not the right platform for queries. >> Any reply will be much appreciated. >> >> Thanks, >> Rubesh >> >> >> ----- Forwarded by Rubesh M Xavier/AABS/GSS/ErnstYoung/IN on 11/07/2011 >> 06:00 PM ----- >> >> From: >> Rubesh M Xavier/AABS/GSS/ErnstYoung/IN >> To: >> [email protected] >> Date: >> 11/04/2011 11:06 AM >> Subject: >> Fw: Functionality in PDFBOX >> >> >> Hi, >> I want a clarification. I have a requirement to merge the pdf documents, I >> managed to do that via PDFBox, but the question is can we merge the pdf >> files based on the bookmark or at the beginning of the file? >> Also I know we can split the documents, but can this be done again based >> on bookmarks or taking into consideration some field value? >> Also add bookmarks at relative position? >> I have seen various issues in Jira and have searched the website, samples >> etc., but could not find anything specific for this tasks, your >> suggestions on this will be of great help. >> We have some requirements based on this and need to decide on this at the >> earliest. Thanks. >> >> >> Regards, >> Rubesh >> ----- Forwarded by Rubesh M Xavier/AABS/GSS/ErnstYoung/IN on 11/04/2011 >> 11:01 AM ----- >> >> From: >> "Jeremias Maerki (Resolved) (JIRA)" <[email protected]> >> To: >> [email protected] >> Date: >> 11/03/2011 07:36 PM >> Subject: >> [jira] [Resolved] (PDFBOX-1158) Functionality in PDFBOX >> >> >> >> >> [ >> https://issues.apache.org/jira/browse/PDFBOX-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel >> ] >> >> Jeremias Maerki resolved PDFBOX-1158. >> ------------------------------------- >> >> Resolution: Invalid >> >> Please don't use JIRA to ask questions. Questions should be sent to >> [email protected]. >> >> 1a. Apache PDFBox cannot directly create PostScript from PDF. But it >> supports painting PDF pages to Graphics2D objects. That means you can use >> the print function to print a PDF to a PostScript printer driver (set to >> output to a file if needed). Or you can use PSDocumentGraphics2D from >> Apache XML Graphics Commons to create PostScript files but the former is >> easier. http://pdfbox.apache.org/commandlineutilities/PrintPDF.html can >> serve as a starting point. >> >> 1b. Apache PDFBox cannot create PDF from PostScript because it lacks a >> complete PostScript interpreter to start with. You may need to look at >> GhostScript for that functionality (available under the GPL or a >> commercial license). GhostScript can do PDF->PS, too. >> >> 2. See http://pdfbox.apache.org/commandlineutilities/PDFMerger.html >> >> Any follow-up questions to [email protected], please. >> >>> Functionality in PDFBOX >>> ----------------------- >>> >>> Key: PDFBOX-1158 >>> URL: https://issues.apache.org/jira/browse/PDFBOX-1158 >>> Project: PDFBox >>> Issue Type: Test >>> Reporter: Rubesh MX >>> Labels: Feature >>> >>> HI, I want to know if the following features are possible with PDFBox; >> 1. Convert PDF to postscript and vice versa 2. Append docuemnt at the >> beginning of the file and append doc as per the bookmark; could you please >> confirm on this. I could not find any details in the website/samples for >> this. >> >> -- >> This message is automatically generated by JIRA. >> If you think it was sent incorrectly, please contact your JIRA >> administrators: >> https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa >> For more information on JIRA, see: http://www.atlassian.com/software/jira >> >> >> >> >> >> >> >> The information contained in this communication is intended solely for the >> use of the individual or entity to whom it is addressed and others >> authorized to receive it. It may contain confidential or legally >> privileged information. If you are not the intended recipient you are >> hereby notified that any disclosure, copying, distribution or taking any >> action in reliance on the contents of this information is strictly >> prohibited and may be unlawful. If you have received this communication in >> error, please notify us immediately by responding to this email and then >> delete it from your system. The firm is neither liable for the proper and >> complete transmission of the information contained in this communication nor >> for any delay in its receipt. > >

