From users-return-10666-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Sun Jan 7 11:11:17 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 7E39A180654 for ; Sun, 7 Jan 2018 11:11:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6DFA2160C29; Sun, 7 Jan 2018 10:11:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2E06160C17 for ; Sun, 7 Jan 2018 11:11:16 +0100 (CET) Received: (qmail 86965 invoked by uid 500); 7 Jan 2018 10:11:10 -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 86954 invoked by uid 99); 7 Jan 2018 10:11:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jan 2018 10:11:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E879418064E for ; Sun, 7 Jan 2018 10:11:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.97 X-Spam-Level: X-Spam-Status: No, score=0.97 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id r7-ytpNdK6tQ for ; Sun, 7 Jan 2018 10:11:07 +0000 (UTC) Received: from mailout05.t-online.de (mailout05.t-online.de [194.25.134.82]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 31FBE5F666 for ; Sun, 7 Jan 2018 10:11:07 +0000 (UTC) Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de [172.20.27.149]) by mailout05.t-online.de (Postfix) with SMTP id ED571420595B for ; Sun, 7 Jan 2018 11:11:06 +0100 (CET) Received: from [192.168.2.105] (GiXKYaZlQhfzFWzCewCz8hB5bY+Ej7i1vwaPIFH5J+pyQV3VSgACz4OomezDxy8gCP@[217.231.128.136]) by fwd05.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eY7v0-1wJzo80; Sun, 7 Jan 2018 11:11:06 +0100 Subject: Re: pdf with vertical mediabox but landscape rotation To: users@pdfbox.apache.org References: <6ba9efa2-e356-e4dd-f9da-0cfda7723877@t-online.de> From: Tilman Hausherr Message-ID: <6462af0f-7c0f-f04a-7c94-bb11ae7d7ea8@t-online.de> Date: Sun, 7 Jan 2018 11:11:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ID: GiXKYaZlQhfzFWzCewCz8hB5bY+Ej7i1vwaPIFH5J+pyQV3VSgACz4OomezDxy8gCP X-TOI-MSGID: 64359c9f-188d-43e7-8108-eac9b7453528 Hi, "Adding" is always supported but as you know PDFBox doesn't offer much high level help with creating PDFs. Rendering is also correct, unless the NoRotate flag is set. For an example, see this issue: https://github.com/mozilla/pdf.js/issues/7631 Tilman Am 07.01.2018 um 03:11 schrieb chitgoks: > hi tilman > > does this means adding annotations in landscape is not supported yet? > > thanks > > On Sat, Jan 6, 2018 at 7:35 PM, Tilman Hausherr > wrote: > >> Am 06.01.2018 um 11:19 schrieb chitgoks: >> >>> regarding my previous email on landscape >>> >>> it looks like portrait or landscape have same bbox but for landscape there >>> is a rotation value >>> >>> does pdfbox have some sort of convenience method to get bbox (like in >>> itext >>> page.getPageSizeWithRotation()) based on rotation? or how to do this >>> manually in pdfbox? >>> >>> >> You'll have to do it by hand, see in PDFRenderer how the page is prepared. >> >> If you support the "NoRotate" flag (which PDFBox does not support yet in >> rendering annotations) then it is more tricky. >> >> Tilman >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org