emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Balaji Bikshandi <balaji.md@icloud.com>
To: Leo Butler <Leo.Butler@umanitoba.ca>
Cc: Ihor Radchenko <yantar92@posteo.net>,
	torsten.wagner@gmail.com, emacs-orgmode@gnu.org
Subject: Re: [O]  Generate and fill PDF-forms by org-mode?!
Date: Tue, 23 Jul 2024 15:12:25 +1000	[thread overview]
Message-ID: <50502613-D77C-4806-BB07-DF605567405A@icloud.com> (raw)
In-Reply-To: <87wmldgw2i.fsf@t14.reltub.ca>

Thanks for the compliments Leo! 

I agree this is more of a simple ‘hack’! I call it the TTO - Transparent Terminal Overlay 😊. It had helped me in unusual situations such as when a proprietary PDF had ‘fillability’ issues. 

Your solution is ‘designed for purpose’ and sounds wonderful. My best wishes and looking forward to its realisation. 

Cheers
Balaji 
 
Sent from my iPhone

> On 23 Jul 2024, at 3:45 AM, Leo Butler <Leo.Butler@umanitoba.ca> wrote:
> 
> Hi Balaji,
> 
> This is an ingenious solution, but wouldn't something like xournal(++)
> be easier to use[1]?
> 
> 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.
> 
> 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.
> 
> 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.
> 
> Best regards,
> Leo
> 
> 
> [1] https://xournalpp.github.io/
>    https://xournalpp.github.io/guide/whirlwind-tour/#annotating-pdf-files
> 
> 
> 
>> On Fri, Jul 19 2024, Balaji Bikshandi <balaji.md@icloud.com> wrote:
>> 
>> Hi Ihor,
>> 
>> 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.
>> 
>> 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.
>> 
>> x
>> 
>> 
>> Cheers
>> Balaji
>> Sent from my iPhone
>> 
>>>> On 18 Jul 2024, at 5:00 PM, Ihor Radchenko <yantar92@posteo.net> wrote:
>>> 
>>> Balaji Bikshandi <balaji.md@icloud.com> writes:
>>> 
>>>> I use a transparent terminal over the PDF and then screenshot it!
>>>> 
>>>> This is, as you would expect, an ultralight and ultrafast solution.
>>>> 
>>>> In fact, I use mupdf to open the PDF, then open the venerable SC
>>>> spreadsheet calculator in a transparent terminal over it. Once
>>>> ‘filled’, I just take a screenshot! Then use Imagemagick to convert
>>>> it.
>>> 
>>> Interesting.
>>> May you expand a bit on how exactly you do it?
>>> 
>>> 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 flexible.
>>> 
>>> --
>>> Ihor Radchenko // yantar92,
>>> Org mode contributor,
>>> Learn more about Org mode at <https://orgmode.org/>.
>>> Support Org development at <https://liberapay.com/org-mode>,
>>> or support my work at <https://liberapay.com/yantar92>
>> 
> 
> --
> ---
> Best regards,
> Dr Butler


      reply	other threads:[~2024-07-23  5:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07  1:46 [O] Generate and fill PDF-forms by org-mode?! Balaji Bikshandi
2024-07-18  7:01 ` Ihor Radchenko
2024-07-19  4:48   ` Balaji Bikshandi
2024-07-22 17:45     ` Leo Butler
2024-07-23  5:12       ` Balaji Bikshandi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50502613-D77C-4806-BB07-DF605567405A@icloud.com \
    --to=balaji.md@icloud.com \
    --cc=Leo.Butler@umanitoba.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=torsten.wagner@gmail.com \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).