LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2012, 07:27 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Rep: Reputation: 45
DjVu hidden text → PDF?


Is there a way to make a PDF of only the hidden text layer of a DjVu file?

I know how to use
Code:
djvused myfile.djvu -e 'output-txt' > myfile.dsed
to output a DjVu script that includes the x,y coordinates of each word of each page, but how would I convert that to a PS or PDF? I'm sure someone has a script.

The dsed file begins with S-expressions like this (click here for more info):
Code:
select; remove-txt
# ------------------------- 
select "myfile_0000.djvu"
set-txt
(page 108 107 1176 1725
 (column 941 1694 1176 1725
  (region 941 1694 1176 1725
   (para 941 1694 1176 1725
    (line 941 1694 1176 1725
     (word 941 1694 999 1723 "another")
     (word 1024 1696 1176 1725 "word")))))
 (column 108 107 805 1519
  (region 108 107 805 1519
   (para 226 1491 701 1519
    (line 226 1491 701 1519
     (word 226 1491 701 1519 "example")))
   (para 350 1370 534 1396
etc…

Thanks

Last edited by Geremia; 01-23-2012 at 08:28 PM. Reason: added code of my experimentation with djvused and what a dsed script looks like
 
Old 09-08-2014, 11:30 AM   #2
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 501

Original Poster
Rep: Reputation: 45
I've posted this question on SuperUser: https://superuser.com/questions/8088...-%E2%86%92-pdf
 
  


Reply

Tags
conversion, pdf



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
djvu to pdf optimal conversion H_TeXMeX_H Linux - Software 3 11-22-2009 11:24 AM
ps/pdf to djvu optimal conversion [solution found] H_TeXMeX_H Linux - Software 4 01-21-2009 11:31 AM
Combine several djvu files into one djvu file zaq123321 Linux - Newbie 3 01-02-2009 11:21 PM
LXer: gscan2pdf - Scan multiple Documents, import images to PDF & DjVu LXer Syndicated Linux News 0 08-28-2008 07:41 AM
djvu to pdf horacioemilio Linux - Software 2 08-04-2008 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:32 AM.

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