From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GEn0LCg8n2YaDAAAqHPOHw:P1 (envelope-from ) for ; Tue, 23 Jul 2024 05:14:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GEn0LCg8n2YaDAAAqHPOHw (envelope-from ) for ; Tue, 23 Jul 2024 07:14:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=icloud.com header.s=1a1hai header.b=mI83adxv; dmarc=pass (policy=quarantine) header.from=icloud.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721711656; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=lBEqtqKfKyzjhbOBG3BnlwzrB67EOWZWxbYfuRYYkk4=; b=QXx75dmzZ8OxI+YDM7mVa+jHnyAhiuo6DtrnhBMTlCRj9l7XwVPu1nFqYhbGuNpuEW+1q9 Fvt47wY3mY6JTW/QR0QwBYkbFiSUnRhRMiLLd6XoO+iW/F3+PQPHVaDmXNOtjwWVFlJcIN Y+AtPOegsEtl4JTc21bzdhoBqwS3y6TSCN1ZaGpFPUKi9+oO1o8bxcgLkxbjc75x4eazKf L0fAhC5qg69gyDnNzSm/DS2BNY37774n2YD522+StnhQiW1rVTPqkleCjiAsWpsk/DJoSo E0BTs7KK30CaX7ONCKjPBdnBZwAhcWRcmt7v6eoN8kO6CAjw87HMnKIIP/rXcw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721711656; a=rsa-sha256; cv=none; b=FbU+cNsj57J3cXNCs8BxDntTEyYSAoEdFqe1U/7x2vdUhFtFaxt+LP1aPMgX97jHPCYrcE s0WkJ3YRIgu72rqLzJE0k3w7G5efjODvQuC3QhckMocApwBQnA3llc03T0d4ES3QXo+sWI dz1SPBbT8l2RaP+FIKCDMiN54S1S4ejx5l+46AYq6DGn48IV7bAofU7MD1+aXFYkko3Ueg Ei5pTDLmoSOHMwd75o5LmpbzbVyvSzG2n6q8W/+VhV9Fhdvu5dDZOcePvGXGci78dXmkyT ioS8l6oNdvlESP4sYLn9RnR3Y4mp2HcQKEpOczRsEvf+7wU+tFhcLsz/1oI8MA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=icloud.com header.s=1a1hai header.b=mI83adxv; dmarc=pass (policy=quarantine) header.from=icloud.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6591A74D88 for ; Tue, 23 Jul 2024 07:14:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sW7pv-00028e-Jx; Tue, 23 Jul 2024 01:13:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sW7pt-00020A-9n for emacs-orgmode@gnu.org; Tue, 23 Jul 2024 01:13:17 -0400 Received: from mr85p00im-ztdg06021801.me.com ([17.58.23.195]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sW7pr-0001wZ-1Q for emacs-orgmode@gnu.org; Tue, 23 Jul 2024 01:13:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1721711559; bh=lBEqtqKfKyzjhbOBG3BnlwzrB67EOWZWxbYfuRYYkk4=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:To; b=mI83adxvPMDPRdXq8LlTJNJzzy/N6ZVAQKCdbFhseX7WUffLFtLIQ5/cjVz5JGz6V V5V6NLXbVuKxbzWi9jcSSaPR48ddfQsBk7RCezVaNOTqgZBwkvntikrsIwH5cmrXX/ wYPgtLkdAEDCcl/585BJGYHcfe6ItYbk7j0A/FtZmlpY+l2sUGmV9LW+vesjuzCY63 5JdX1rKy55eyb63Bd/3SyqU9miBiu7iKOyTrVofoo5e/lM6Nm6zShcpoufXk1mCQbg lDQ6Mu0NaIF9a+Iy4yNShMY0p14TL4BYwGV1cmgJEkujAbYRzmWgMnfBxGvbCWrjpn ahONoDJ/gYj2Q== Received: from smtpclient.apple (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06021801.me.com (Postfix) with ESMTPSA id 002D7D00189; Tue, 23 Jul 2024 05:12:38 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Balaji Bikshandi Mime-Version: 1.0 (1.0) Subject: Re: [O] Generate and fill PDF-forms by org-mode?! Date: Tue, 23 Jul 2024 15:12:25 +1000 Message-Id: <50502613-D77C-4806-BB07-DF605567405A@icloud.com> References: <87wmldgw2i.fsf@t14.reltub.ca> Cc: Ihor Radchenko , torsten.wagner@gmail.com, emacs-orgmode@gnu.org In-Reply-To: <87wmldgw2i.fsf@t14.reltub.ca> To: Leo Butler X-Mailer: iPhone Mail (21F90) X-Proofpoint-GUID: SKoF3a4knRhcWw4eWgQhWOOxDlqumO_p X-Proofpoint-ORIG-GUID: SKoF3a4knRhcWw4eWgQhWOOxDlqumO_p X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-22_18,2024-07-23_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 clxscore=1011 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2407230036 Received-SPF: pass client-ip=17.58.23.195; envelope-from=balaji.md@icloud.com; helo=mr85p00im-ztdg06021801.me.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PLING_QUERY=0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.37 X-Spam-Score: -5.37 X-Migadu-Queue-Id: 6591A74D88 X-Migadu-Scanner: mx11.migadu.com X-TUID: 0fsnvp2lj3j9 Thanks for the compliments Leo!=20 I agree this is more of a simple =E2=80=98hack=E2=80=99! I call it the TTO -= Transparent Terminal Overlay =F0=9F=98=8A. It had helped me in unusual situ= ations such as when a proprietary PDF had =E2=80=98fillability=E2=80=99 issu= es.=20 Your solution is =E2=80=98designed for purpose=E2=80=99 and sounds wonderful= . My best wishes and looking forward to its realisation.=20 Cheers Balaji=20 =20 Sent from my iPhone > On 23 Jul 2024, at 3:45=E2=80=AFAM, Leo Butler w= rote: >=20 > =EF=BB=BFHi Balaji, >=20 > This is an ingenious solution, but wouldn't something like xournal(++) > be easier to use[1]? >=20 > A drawback to either method is that the PDF file that is created no > longer has the form data available for subsequent edits. This is a > serious drawback when one needs to fill in some parts of a PDF form and > then pass it on to a colleague who needs to fill in other parts. >=20 > At the moment, my solution is to use pdftk to generate an FDF file, fill > in the textfields & buttons using some guesswork, and then use pdftk to > generate a new PDF. If I need to insert an image, then I resort to a > using a python library (pymupdf). All of this is done within an org > document, of course. >=20 > It would be really nice to have an org-babel/org-export library that > could parse the FDF file into some structure understood and easily > edited in Org (e.g. an Org document fragment with some special labels, > perhaps) and also be able to generate a new FDF with the edited > structure. >=20 > Best regards, > Leo >=20 >=20 > [1] https://xournalpp.github.io/ > https://xournalpp.github.io/guide/whirlwind-tour/#annotating-pdf-files >=20 >=20 >=20 >> On Fri, Jul 19 2024, Balaji Bikshandi wrote: >>=20 >> Hi Ihor, >>=20 >> Glad you are interested. I have attached the screenshot showing how it >> is possible from within Org-mode! I concur on the need for font sizing >> and zooming the terminal at times. But for the most part I find it >> just works for various types of PDFs. I have filled multi-page >> documents but yes you will have to screenshot the pages separately. >>=20 >> I am sure you will get the idea but please let me know if you require >> clarification. Hope this helps you like it does to me. >>=20 >> x >>=20 >>=20 >> Cheers >> Balaji >> Sent from my iPhone >>=20 >>>> On 18 Jul 2024, at 5:00=E2=80=AFPM, Ihor Radchenko wrote: >>>=20 >>> =EF=BB=BFBalaji Bikshandi writes: >>>=20 >>>> I use a transparent terminal over the PDF and then screenshot it! >>>>=20 >>>> This is, as you would expect, an ultralight and ultrafast solution. >>>>=20 >>>> In fact, I use mupdf to open the PDF, then open the venerable SC >>>> spreadsheet calculator in a transparent terminal over it. Once >>>> =E2=80=98filled=E2=80=99, I just take a screenshot! Then use Imagemagic= k to convert >>>> it. >>>=20 >>> Interesting. >>> May you expand a bit on how exactly you do it? >>>=20 >>> In particular, how does Org mode enter the picture? I imagine that you >>> need to align the text layout in the Org file to fit the underlying PDF,= >>> but I am not sure if Org is the most suitable program to achieve such >>> alignment. Something like M-x artist-mode might probably be more flexibl= e. >>>=20 >>> -- >>> Ihor Radchenko // yantar92, >>> Org mode contributor, >>> Learn more about Org mode at . >>> Support Org development at , >>> or support my work at >>=20 >=20 > -- > --- > Best regards, > Dr Butler