On Mar 02, 2014, at 10:07, BeeRich <[email protected]> wrote:
> I have a PDF that has a chart in it. I want to turn it into some real data
> as the pdf is pretty much useless to me. Upon copying a page of cells, I
> want to parse that into tab delimited text in BBEdit, but the cells wrap and
> I have a list of values instead. Here's a chunk:
______________________________________________________________________
Hey There,
Use a text-filter.
#! /usr/bin/env perl
use strict; use warnings;
while (<>) {
chomp;
print;
if ($. % 8 != 0) {
print "\t";
} else {
print "\n";
}
}
Give it a keyboard shortcut if you use it often.
There's a little command-line tool called pdftotext that might help you to
automate this further if desired.
http://www.bluem.net/en/mac/packages/
--
Best Regards,
Chris
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].