From dev-return-56796-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Tue May 29 18:40:05 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 BFB3C180677 for ; Tue, 29 May 2018 18:40:04 +0200 (CEST) Received: (qmail 14228 invoked by uid 500); 29 May 2018 16:40:03 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 14212 invoked by uid 99); 29 May 2018 16:40:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2018 16:40:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6E5F6CD0F2 for ; Tue, 29 May 2018 16:40:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kwzMyfuvwCti for ; Tue, 29 May 2018 16:40:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 31B155F542 for ; Tue, 29 May 2018 16:40:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0AE39E0E87 for ; Tue, 29 May 2018 16:40:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4AE832109C for ; Tue, 29 May 2018 16:40:00 +0000 (UTC) Date: Tue, 29 May 2018 16:40:00 +0000 (UTC) From: "rumburak (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PDFBOX-4233) Flatten does not work properly on field with type 0 font MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 rumburak created PDFBOX-4233: -------------------------------- Summary: Flatten does not work properly on field with type 0 f= ont Key: PDFBOX-4233 URL: https://issues.apache.org/jira/browse/PDFBOX-4233 Project: PDFBox Issue Type: Bug Components: AcroForm Affects Versions: 2.0.10 Environment: win10, JDK 1.8 Reporter: rumburak Attachments: sampleform_filled.pdf, sampleform_filled_flattened.pd= f Pdf form=C2=A0*sampleform_filled.pdf* contains one field called "txtField" = with this content: "=C4=9B=C5=A1=C4=8D=C5=99=C5=BE=C3=BD=C3=A1=C3=AD=C3=A9= =C3=BA=C5=AF=C3=B3=C4=8F=C5=A5=C4=9A=C5=A0=C4=8C=C5=98=C5=BD=C3=9D=C3=81=C3= =8D=C3=89=C3=9A=C5=AE=C3=93=C4=8E=C5=A4".=C2=A0 The font used in this field= is "/F5" when you run this code: =C2=A0 {code:java} try { PDDocument sourcePdfForm =3D PDDocument.load(new File("sampleform_filled.p= df")); PDAcroForm acroForm =3D sourcePdfForm.getDocumentCatalog() .getAcroForm(); acroForm.flatten(); sourcePdfForm.save("sampleform_filled_flattened.pdf"); } catch (IOException e) { e.printStackTrace(); }{code} =C2=A0 =C2=A0 You will get *sampleform_filled_flattened.pdf* with empty or not visible co= ntent of the field. =C2=A0 =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org