From owner-freebsd-questions@freebsd.org Wed Apr 22 22:50:27 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1F1C82C5300 for ; Wed, 22 Apr 2020 22:50:27 +0000 (UTC) (envelope-from freebsd@jdev.sent.com) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 496wcy2g2kz45Cj for ; Wed, 22 Apr 2020 22:50:26 +0000 (UTC) (envelope-from freebsd@jdev.sent.com) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D12FE608; Wed, 22 Apr 2020 18:50:24 -0400 (EDT) Received: from imap36 ([10.202.2.86]) by compute1.internal (MEProxy); Wed, 22 Apr 2020 18:50:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=u3JbSLp27xsp0VAN04oR8/W6BOqlt+3 PJaBUkKc90IM=; b=Gq90g2GlATSiiFU6tEsEBhDXlEgRHJd1G+/EfC0PldKBRrd 6b2KZGdN3j5uB3Gr5hbn6znxGEe5b5hhXod3usJjGcaMElVZJFAidrxejIIyGUr0 BsNyfDOkkV4noDuS8ahb7fXVXiRPyUsSuE8j2o4S+XQUOpxfX6b8J68oVqgrzz+4 uQprMpoRlT2U1vem66xZ/S3dvAOcwB4T12YsWb5D+0kUO34vf2Fu7Nmyx8IOcVqS cQm0sSMRdYo7NzbGxVBve4p0SEgkbxiumCGonGpF1GSopVQFAS4+Zdfv7Ra/cEbU RBOJKEIU3IzzOGnnNXnkCXQOv8mC83ufRJ1S81A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=u3JbSL p27xsp0VAN04oR8/W6BOqlt+3PJaBUkKc90IM=; b=2hHyIvG7lhdpkP2nArksUy Z8MU0mpviT+gIXd5BFsSf923+J6YJj0zFPU/g4Mwa0IeXpJXjf9YSk2lXQf9147E 3W7pKBDRFU6KuAJOVD0iZlnBvtih8v68jb847Bs2wNh4VVq87P7A4FJPWWBA+ToZ SnJtZCIMZ9ofkU+lqWghzhCIW9lE6JPOBHIM3CXyBB+k5b8GsnDT5p95/uA17oFe YDL/RXrYVXB5Mv5nmVxwhnM+96NjWinCf2C3LNabwUlB30q/KOcn5QW3EoruhVXj MwSJZkUuF02Qf7VXAGJl5SJRFTnwgzQnCxq1yF2LauxfboTBkHlGLsJR8yDvDPsA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeekgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomheplfhorhgurghnuceofhhrvggvsghsugesjhguvghvrdhsvghn thdrtghomheqnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepfhhrvggvsghsugesjhguvghvrdhsvghnthdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id CA53F1880062; Wed, 22 Apr 2020 18:50:23 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-351-g9981f4f-fmstable-20200421v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <20200423002530.87cf0d91.freebsd@edvax.de> References: <09e273ff-4d9d-47eb-a6e1-d91f18c8a0ef@www.fastmail.com> <20200423002530.87cf0d91.freebsd@edvax.de> Date: Wed, 22 Apr 2020 15:50:03 -0700 From: Jordan To: freebsd-questions@freebsd.org Cc: Polytropon Subject: Re: PDF Documents Manipulation Software options Content-Type: text/plain X-Rspamd-Queue-Id: 496wcy2g2kz45Cj X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=sent.com header.s=fm3 header.b=Gq90g2Gl; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=2hHyIvG7; dmarc=pass (policy=none) header.from=sent.com; spf=pass (mx1.freebsd.org: domain of freebsd@jdev.sent.com designates 64.147.123.24 as permitted sender) smtp.mailfrom=freebsd@jdev.sent.com X-Spamd-Result: default: False [-5.58 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[sent.com:s=fm3,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.24:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-3.49)[ip: (-9.81), ipnet: 64.147.123.0/24(-4.92), asn: 11403(-2.69), country: US(-0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[sent.com:+,messagingengine.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[sent.com,none]; RCVD_IN_DNSWL_LOW(-0.10)[24.123.147.64.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2020 22:50:27 -0000 Hi Polytropon, Thank you for the response. I agree, manually manipulating PDFs with a GUI is not very efficient, however, the work I do cannot be automated (atleast I haven't found a way). On a PDF I may have to extract out pages 3, 5 and 14 into a new 3 page PDF because I only need the data from pages 3, 5 and 14. The very next PDF file I work on I may need to extract out 20 pages, all in a row, from pages 20 to 40. The next PDF file I may need the first and last page. There is absolutely no common denominator from these three PDF's and the only thing common is that I need to extract pages. In other words, I cannot write a script or use CLI to know ahead of time what needs to be done, because it takes my eyes to visually see the pages and to know what pages I need extracted. I cannot use grep or any text searching function on these PDFs because on one PDF I may need certain pages that contain words that have absolutely nothing to do with the pages I need on the next PDF I work on. So, very unfortunately, this is a very manual job and requires human beings (again, from my knowledge of CLI, scripting, etc). Using CLI would require me to visually look with my eyes a PDF file in a GUI situation and then turn around, open a console, type in a command to extract out a list of specific pages I need to then have to turn around and move that newly created PDF file to a difference location that may be nested 30 folders deep (and won't be consistent location as the next PDF I work within). It is easier to visually click, hold CTRL to continue highlighting pages and then right click, extract (which creates a new PDF) and then drag and drop the new PDF pages into a GUI file manager (such as Thunar) to create the new PDF. I don't see how CLI tools will work with the above example workflows although I am all ears to hearing others opinions. I know "professional" PDF software such as Adobe Acrobat Pro works but it is only compatible with Windows (and maybe GNU/Linux). I found another proprietary PDF Professional software but it is only available for Windows, Mac and GNU/Linux. I am on a quest to find something for FreeBSD as I believe it to be superior OS than the aforementioned. -- Jordan On Wed, Apr 22, 2020, at 3:25 PM, Polytropon wrote: > On Wed, 22 Apr 2020 15:14:59 -0700, Jordan wrote: > > I need PDF software that can add pages, remove pages, extract pages > > and redact. > > With "redact", you're refering to PDF annotations? > > > > > All of the PDF ports I have found are simply viewers and don't allow > > manipulations of the PDF in a single packaged GUI application. I work > > with hundreds of PDFs each day so I cannot work within a CLI to > > manipulate the pages. > > I'd say the exact opposite is the case: If you're going to deal with > a lot of files, using CLI tools to automate those tasks usually is > the more convenient way - instead of doing everything manually in > linear time. :-) But this of course depends on many parameters, such > as if the kind of manipulation always is "one of a kind" or can be > somehow standardized... > > > > > I do a lot of extracting of pages into a new PDF by dragging and > > dropping pages from PDF software to a GUI file manager such as > > Thunar. > > This can easily be done with the GUI file manager of your choice > plus pdftk. Page preview support is present already in tools like > Thunar. > > > > > Any suggestions that you use or have heard that works with FreeBSD? > > Tools like LibreOffice (and surely also OpenOffice) can directly > open and manipulate PDF files. Gimp also has support for this > format. For CLI operations, pdftk and ImageMagick are versatile > tools that can be combined with GUI tools as well as used for > batch operations. > > Is this a starting point for you? > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... >