From users-return-11095-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Sun Jun 10 14:36:57 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 C4C4918062B for ; Sun, 10 Jun 2018 14:36:56 +0200 (CEST) Received: (qmail 9667 invoked by uid 500); 10 Jun 2018 12:36:55 -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 9654 invoked by uid 99); 10 Jun 2018 12:36:55 -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; Sun, 10 Jun 2018 12:36:55 +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 95927C00B8 for ; Sun, 10 Jun 2018 12:36:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.869 X-Spam-Level: * X-Spam-Status: No, score=1.869 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id C3H_hxLKsobX for ; Sun, 10 Jun 2018 12:36:52 +0000 (UTC) Received: from mail-ot0-f194.google.com (mail-ot0-f194.google.com [74.125.82.194]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B360C5F1E6 for ; Sun, 10 Jun 2018 12:36:51 +0000 (UTC) Received: by mail-ot0-f194.google.com with SMTP id h6-v6so20775520otj.0 for ; Sun, 10 Jun 2018 05:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=WvbrZBpHZUfn/kZYF18IUK/7Kvc/zld6qEA9S0s9rAg=; b=BoriWHcTiTYRwP4/77udvvKqYB1o6bXl+R8m5c6Gnl96WR1isoWQFRXiRk5MAd7pGH pLDxDuJWDUxGWkFK9XNA8LEuH+CrkCeWpemjZOIVU+QgScr03IC3lVqJ/svRCyFACcqI xv90Fohdq/WD4GIUAtYn4aY17OSx06+WJT99aj6s0v02zsPW9YABThgXd861jtfxe1cZ vbyLfIZODji3nCvpRhD5+bHrjWCjwPQcM1bIUITyrIyzMNEP7qdyOksDvWc7mY25WPKy 3vebIIF46WLYGPTiuuh8L5lHj/fZKCrR7jdT6FvD2V2FhbJfBumQm89Jzot5dAuT89tY QhSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=WvbrZBpHZUfn/kZYF18IUK/7Kvc/zld6qEA9S0s9rAg=; b=hp9EMQ87zalt+BnuQJ33b6TnsYu2z2hXiqsrpY3ZvxwibsQrZmK6btQ2TOTKMitqCt EGT6gj1W/P8gXYF4eFihj5jU4gTc+PGz1tX46S1kTvqGUcz2zlHvAwjq5FtvVm+AoQ6g N6Yqjx6kiVJ3xWSb6xB+pdDzoTSukHQUeK6EeaGe2HvNTHzxbFC27wmP3i+FfmZjNAhH ffNcBlNrseHU/xDam0UU0BoZ5djW3DU/eahCDC2Y8bKfOeCoOLl+wg/SkEH+T9W88d4M dbiyfZsQ4unSlssGc/ieWuHtHQqMfio3MoacrnpbYqwdHDo6zNzuzas7ujtNBxLx2pSZ bpsA== X-Gm-Message-State: APt69E0Q1ExZ9t0ECpOoF48lMQbzPCnwWZMEIp+YFtJ9wagwhkxutByo asXJW7+BH9dgeiZZSILL/86JGFQPACUlsuWK7TZT1A== X-Google-Smtp-Source: ADUXVKJLtxnue8mZ2TJmRjFra/iCX7Of3qpSzMAui2JEaSdiRkhHi0yMagcGUXm4+ubKAiCKaj7f2BM26YaBE1LDYaQ= X-Received: by 2002:a9d:705d:: with SMTP id x29-v6mr8087516otj.308.1528634210176; Sun, 10 Jun 2018 05:36:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:b409:0:0:0:0:0 with HTTP; Sun, 10 Jun 2018 05:36:49 -0700 (PDT) In-Reply-To: References: <9993a8cd-3882-0df0-ee68-2a90da174b5e@t-online.de> <612f6ba2-c037-0912-6f8c-e79d7a97c79c@t-online.de> From: JZ Q Date: Sun, 10 Jun 2018 08:36:49 -0400 Message-ID: Subject: Re: convert annotation or markup tp printable image To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary="00000000000016d371056e48e34a" --00000000000016d371056e48e34a Content-Type: text/plain; charset="UTF-8" Hi Tilman could you please elaborate on the "flattening" idea?I agree with you that this should be the right direction to go. Thanks. " An alternative would be to support the "flattening" of annotations like we do for Acroform fields." On Sun, Jun 10, 2018 at 8:31 AM, Tilman Hausherr wrote: > You should have a look at the AddImageToPDF example, and the ImageToPDF > tool in the source code download. > > You have have to adjust the page size in "new PDPage". > > However all this is a terrible idea because it will take a long time and > use a lot of memory (you need 300dpi at least, better 1200dpi). Why not > tell the people that annotations are important? > > An alternative would be to support the "flattening" of annotations like we > do for Acroform fields. > > Tilman > > Am 10.06.2018 um 14:24 schrieb JZ Q: > >> Hi Tilman, >> >> thank you for the quick reply. The link you posted will convert each page >> to png file. How do I merge the converted png into a simple PDF witch one >> PNG per page? >> >> On Sun, Jun 10, 2018 at 8:20 AM, Tilman Hausherr >> wrote: >> >> Am 09.06.2018 um 23:54 schrieb JZ Q: >>> >>> Hi Tilman, >>>> >>>> In my case, the client prints the PDF using the ctrl+P and then pick >>>> printers. All the annotations have the printing flag set, but if the >>>> user >>>> does not select print "document and markup" option, the markups are not >>>> printed at all. >>>> >>>> Is there any way to convert all the contents including annotation to >>>> image? >>>> >>>> https://stackoverflow.com/questions/23326562/apache-pdfbox- >>> convert-pdf-to-images >>> >>> Tilman >>> >>> >>> So regardless of what the end user selects, everything will be printed on >>> >>>> paper. Thanks. >>>> >>>> On Thu, Jun 7, 2018 at 12:37 PM, Tilman Hausherr >>> > >>>> wrote: >>>> >>>> PDFBox 2.0 doesn't create the appearance stream for annotations, so many >>>> >>>>> annotations won't be printed at all. Besides, some annotations don't >>>>> have >>>>> the printing flag set. >>>>> >>>>> Your text is unclear, how do you print? With PDFBox or with another >>>>> tool? >>>>> >>>>> Tilman >>>>> >>>>> Am 07.06.2018 um 18:15 schrieb JZ Q: >>>>> >>>>> Hi everyone, >>>>> >>>>>> I created PDF document with markups (annotation), but when I send it >>>>>> to >>>>>> client for printing, some of them does not select to print markup, >>>>>> hence >>>>>> missing the annotations on the printout. >>>>>> >>>>>> Is there anyway to convert any markup to be a printable image? what i >>>>>> am >>>>>> doing now is to print it to virtual printer called "microsoft pdf" and >>>>>> then >>>>>> save the file. It is better to do it automatically. >>>>>> >>>>>> Thanks in advance for any suggestion. >>>>>> >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> >>>>> 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 >>> >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > > -- Best Wishes, Jason --00000000000016d371056e48e34a--