Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 65542200B50 for ; Fri, 29 Jul 2016 13:00:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 63F57160A79; Fri, 29 Jul 2016 11:00:38 +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 ABB02160A61 for ; Fri, 29 Jul 2016 13:00:37 +0200 (CEST) Received: (qmail 4354 invoked by uid 500); 29 Jul 2016 11:00:36 -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 4341 invoked by uid 99); 29 Jul 2016 11:00:36 -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; Fri, 29 Jul 2016 11:00:36 +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 04B3E189819 for ; Fri, 29 Jul 2016 11:00:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 EieW6QhCV-5N for ; Fri, 29 Jul 2016 11:00:33 +0000 (UTC) Received: from mail-vk0-f48.google.com (mail-vk0-f48.google.com [209.85.213.48]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 27AB160CE5 for ; Fri, 29 Jul 2016 11:00:33 +0000 (UTC) Received: by mail-vk0-f48.google.com with SMTP id w127so51809227vkh.2 for ; Fri, 29 Jul 2016 04:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=v53cPr1SJzdw1Rz/LcWAPwAFmEqvrQx6pvFQ0cV/pxg=; b=jRHOZEwBhh3KdpVpW740VWREQld1tHxgou0EoyAPPAJ/u5Vo63T94ptuCojiTiKTXA fOEIde//WUpITt9v5UhtOlCJLc9jjqNw88OhsIDLx9cOFLbKlXFfD0Kj/ldSlM36+Y0H vLKcF9L7zaqRfOoAFkkOUcdR/N9lRFMYo4ii89Q8Fcrt+xgx3g0og5qjqb0b7Cv/mkyz G7HbNfuSb79G+RUc3XzsamPlEGzz3a3K+pbSoEcCxjBP9fHsPGCjr+ggyqtWYY0UvGGT koz19bWOcTyVdfGvMmXAtGRnEAp8O0cZEtrr+pzNqaVbMMlx786N2rK1bRHhTnFq88q6 W02w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=v53cPr1SJzdw1Rz/LcWAPwAFmEqvrQx6pvFQ0cV/pxg=; b=iFoBM++/1LS8whw3GizSaWIEQFbTcDeX6+ethKa2CdGTYbD45dgF16mRObNn3G2cSU P9ZG6qz/OiJTRJYFyicVGdKRrTSuqmwKG/HKSBW4pW3Ql/rNUbx1tG9UTUDvDklZGdwt hsJnWtUM/TeAaH6+ls8Olhji/e2DqrfvOp8N5ZclEKeOsBPK7UWAjjUvmLjE8ge0c1YW 4SVpsdG9Ok7x6wMOpebvSITTtfKAi2zVGHRxZy4EMqMZ/xhbT7birg2PeQ2jzX7rtoQD 5w+/gZ0kbpNLVJuO4JCbyBNrb14SQI6WDWXEKDEhD/tuZeTwB42r3VIgj7rf6q07LKWT iFKw== X-Gm-Message-State: AEkooutIfuxtjBV2AkAFR9l8ArqCMJsXF1dn0ZQTSBmVAZoxyXhIWdzWSsDhp9QJUUqMQo2fx2fkTWD24/fFhg== X-Received: by 10.31.52.69 with SMTP id b66mr15196163vka.16.1469790032012; Fri, 29 Jul 2016 04:00:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.152.205 with HTTP; Fri, 29 Jul 2016 04:00:31 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Gregor_Kova=C4=8D?= Date: Fri, 29 Jul 2016 13:00:31 +0200 Message-ID: Subject: Re: Spacing between lines not retained To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=001a1143eff6c0a9880538c428e2 archived-at: Fri, 29 Jul 2016 11:00:38 -0000 --001a1143eff6c0a9880538c428e2 Content-Type: text/plain; charset=UTF-8 Hi! API docs for PDFTextStripper ( http://pdfbox.apache.org/docs/2.0.2/javadocs/org/apache/pdfbox/text/PDFTextStripper.html) states that "This class will take a pdf document and strip out all of the text and ignore the formatting and such". Please note that you can call setAddMoreFormatting ( http://pdfbox.apache.org/docs/2.0.2/javadocs/org/apache/pdfbox/text/PDFTextStripper.html#setAddMoreFormatting(boolean)) with true and it will add a bit more formatting, but in my experience this does not compare to using "pdftotext -layout" from Xpdf project. pdftotext does a much better job preserving layout. Best regards, Kovi 2016-07-29 12:44 GMT+02:00 Shyam Sundar : > Hi, > > While converting a particular pdf to txt, spacing between lines and > paragraphs is not retained, output is just a flat text. > > Sample file : ftp://PfXxyEhxh:h7hHhpOh7O@ftp.emc.com/Sample.zip > > Looks like a file specific issue. Can you pls check ? > > Thanks. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > -- -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ | In A World Without Fences Who Needs Gates? | | Experience Linux. | -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ --001a1143eff6c0a9880538c428e2--