On Tue, Apr 15, 2025 at 10:32 AM Nicolas George <geo...@nsup.org> wrote:

> Richard Owlett (HE12025-04-15):
> > I don't know how to approach the problem.
> > What I would like to end up with is a CSV formatted file containing the
> two
> > left columns of Table A4.14 (pages 106&107) of
> > [
> >
> https://fns-prod.azureedge.us/sites/default/files/resource-files/TFP2021.pdf
> > ].
> >
> > Suggestions?
>
> Have you tried starting with pdftotext -layout and then adding the CSV
> delimiters using a powerful editor. The rectangle selection of Vim might
> be useful.
>
> Regards,
>
> --
>   Nicolas George
>
>
Riffing off of Nicolas' suggestion, here's what I would do:

$ pdftotext -f 106 -l 107 TFP2021.pdf TFP2021.txt

Then open LibreCalc, and File/Open this file. When the import options
window appears, change the selection criteria to "Fixed width", and then in
the "ruler" bar above the text, click where you want a column divider (like
at Columns 39, 60, and 76; just eyeball it. Finish importing the document,
and now you have a spreadsheet with the info you want that should be pretty
easy to massage into the form you want.


-- 
Kent West                    <")))><
IT Support / Client Support
Abilene Christian University
Westing Peacefully - http://kentwest.blogspot.com

Reply via email to