Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83D847ABF for ; Mon, 7 Nov 2011 20:06:44 +0000 (UTC) Received: (qmail 7106 invoked by uid 500); 7 Nov 2011 20:06:44 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 7089 invoked by uid 500); 7 Nov 2011 20:06:44 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 7081 invoked by uid 99); 7 Nov 2011 20:06:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 20:06:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mr.adam.nichols@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2011 20:06:38 +0000 Received: by wyg34 with SMTP id 34so7024324wyg.21 for ; Mon, 07 Nov 2011 12:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=vVV6fRpdj+Uh5F5KrA8x9theUp7Mq3sD6i8opeDMHFM=; b=KKVKFEW7akVlHVD6TfRgqLHb04FLO8E6rsAsyKdYFRFTwR7Ae9RqOL+OmpJpdGuKM3 tfoLJxi/WdSCjhX5U5Yg93ugfEL6dZNHpgNaXJJRVcaF3KIns6ih/yMbGZ6siXSvGHY/ 6gXwN++XvlOLCalz8IR7YZOmZP2bgEmcFomsY= MIME-Version: 1.0 Received: by 10.216.185.72 with SMTP id t50mr6314082wem.43.1320696378284; Mon, 07 Nov 2011 12:06:18 -0800 (PST) Received: by 10.216.86.5 with HTTP; Mon, 7 Nov 2011 12:06:18 -0800 (PST) In-Reply-To: <8CB7B66C-3413-4859-9D87-E28FE39EBD83@fileaffairs.de> References: <8CB7B66C-3413-4859-9D87-E28FE39EBD83@fileaffairs.de> Date: Mon, 7 Nov 2011 15:06:18 -0500 Message-ID: Subject: Re: Functionality in PDFBOX From: Adam Nichols To: users@pdfbox.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 wro= te: > Hi Rubesh, > > as both Jeremias and myself already gave you a quick answer on the questi= ons you had what is the additional information you are looking for? > > With kind regards. > > Maruan > > Am 07.11.2011 um 13:32 schrieb Rubesh.Xavier@in.ey.com: > >> 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: >> users@pdfbox.apache.org >> 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, sample= s >> 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 th= e >> 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)" >> To: >> rubesh.xavier@in.ey.com >> Date: >> 11/03/2011 07:36 PM >> Subject: >> [jira] [Resolved] (PDFBOX-1158) Functionality in PDFBOX >> >> >> >> >> =A0 =A0 [ >> https://issues.apache.org/jira/browse/PDFBOX-1158?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel >> ] >> >> Jeremias Maerki resolved PDFBOX-1158. >> ------------------------------------- >> >> =A0 =A0Resolution: Invalid >> >> Please don't use JIRA to ask questions. Questions should be sent to >> users@pdfbox.apache.org. >> >> 1a. Apache PDFBox cannot directly create PostScript from PDF. But it >> supports painting PDF pages to Graphics2D objects. That means you can us= e >> 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 users@pdfbox.apache.org, please. >> >>> Functionality in PDFBOX >>> ----------------------- >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Key: PDFBOX-1158 >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0URL: https://issues.apache.org/jira/brow= se/PDFBOX-1158 >>> =A0 =A0 =A0 =A0 =A0 =A0Project: PDFBox >>> =A0 =A0 =A0 =A0 Issue Type: Test >>> =A0 =A0 =A0 =A0 =A0 Reporter: Rubesh MX >>> =A0 =A0 =A0 =A0 =A0 =A0 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 plea= se >> 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/jir= a >> >> >> >> >> >> >> >> The information contained in this communication is intended solely for t= he use of the individual or entity to whom it is addressed and others autho= rized to receive it. =A0 It may contain confidential or legally privileged = information. =A0 If you are not the intended recipient you are hereby notif= ied that any disclosure, copying, distribution or taking any action in reli= ance on the contents of this information is strictly prohibited and may be = unlawful. If you have received this communication in error, please notify u= s immediately by responding to this email and then delete it from your syst= em. The firm is neither liable for the proper and complete transmission of = the information contained in this communication nor for any delay in its re= ceipt. > >