From users-return-11108-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Tue Jun 19 18:13:52 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 581B0180634 for ; Tue, 19 Jun 2018 18:13:52 +0200 (CEST) Received: (qmail 8326 invoked by uid 500); 19 Jun 2018 16:13:51 -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 8315 invoked by uid 99); 19 Jun 2018 16:13:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2018 16:13:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2CEFEC00C9 for ; Tue, 19 Jun 2018 16:13:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.303 X-Spam-Level: * X-Spam-Status: No, score=1.303 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.697] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id V0lF8cs-cH0W for ; Tue, 19 Jun 2018 16:13:48 +0000 (UTC) Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 935515F4A0 for ; Tue, 19 Jun 2018 16:13:47 +0000 (UTC) Received: from fwd28.aul.t-online.de (fwd28.aul.t-online.de [172.20.26.133]) by mailout11.t-online.de (Postfix) with SMTP id A345B42112DD for ; Tue, 19 Jun 2018 18:13:46 +0200 (CEST) Received: from [192.168.2.105] (Ew4xfcZrZhDutNXbOFOZZU+DfHXBMoYNpk2EppVaxbPtjnLi1teB9Snb1JiHKxRwAP@[217.231.143.149]) by fwd28.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1fVJGH-10jcnI0; Tue, 19 Jun 2018 18:13:41 +0200 Subject: Re: Problem merging multiple PDF To: users@pdfbox.apache.org References: From: Tilman Hausherr Message-ID: <0fafa896-6b3a-ac96-f7af-c3202d00c61c@t-online.de> Date: Tue, 19 Jun 2018 18:14:36 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------387CD8D0229073BFA99EC8C2" Content-Language: en-US X-ID: Ew4xfcZrZhDutNXbOFOZZU+DfHXBMoYNpk2EppVaxbPtjnLi1teB9Snb1JiHKxRwAP X-TOI-MSGID: 400f3b7d-2785-4fcc-9655-c576739b3fb7 --------------387CD8D0229073BFA99EC8C2 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit There is no option to set, but you could copy the annotations by doing PDPage.getAnnotations() and taking these and adding them to what you get with getAnnotations(). It should work unless there is some weirdness with page mediabox / cropbox. Tilman PS: PDF attachments don't go through. Am 19.06.2018 um 11:00 schrieb Nicolas Lemasson: > Hi support, > > I'm using pdfbox 2.0.8. I have some pdf files that I would like to > merge together in a single document. Multiple files can be used to > compose a single page, so they don't have the same size. > It works using the LayerUtility class, importing pages as layer and > appending layers to the new page. But doing this I loose link > annotations and hyper links are not clickable in the final document. > > So is there a way to append a pdf page to an other document page, > keeping link annotations ? ( I can't use PDFMergerUtility because it > only "concatenates" pages, and i need to append content at specific > positions ). > > To reproduce this, use the example pdf in attachment and try to append > it as layer to a new Document ( see sample code ). > > Thanks in advance > best regards > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org --------------387CD8D0229073BFA99EC8C2--