LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 06-16-2020, 04:41 AM   #1
fdq09eca
LQ Newbie
 
Registered: Jun 2020
Posts: 2

Rep: Reputation: Disabled
pdfgrep vertical text


I have a bunch of pdf that may not be written in format (randomly downloaded from google scholar). I am trying to check through their data source, so I used pdfgrep for the task.
Code:
pdfgrep --color always -ni "data|sources|Table" pdfs/*.pdf
It was successful until I found out that are some table were landscaped but the page is vertically placed. I attempt to rotate them before grep-ing them by
Code:
pdftk pdfs/25770596.pdf cat 8east output pdfs/25770596_r.pdf
but it makes no difference.

then I tried to turn the rotated file into text

Code:
pdftotext -f 1 -l 8 pdfs/25770596_r.pdf pdfs/25770596r_txt.txt
which actually served my purpose. It rendered some caption line in the landscaped page. However, the table is messed up and the numbers are in chaos.. and there are some numbers missing.

I would like to know if there is any more elegant way to complete the task?

The .pdf is here.

Thank you.

Last edited by fdq09eca; 06-16-2020 at 04:52 AM.
 
Old 06-16-2020, 06:30 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pdfgrep vertical text fdq09eca Linux - Newbie 2 06-16-2020 10:19 AM
Finding The Complete SQL statement Using PDFGREP Or Grep metallica1973 Linux - General 4 02-03-2020 08:46 AM
LXer: GIMP 2.10.6 Released With Vertical Text Support, Other Improvements LXer Syndicated Linux News 0 08-20-2018 08:53 AM
LXer: How to Search PDF Files from the Terminal with pdfgrep LXer Syndicated Linux News 0 12-13-2017 11:51 AM
Vertical strips of fuzzy text with GEForce 6200 Card sporks Linux - Hardware 2 08-26-2007 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration