Answers.Body: <p>Though you've already solved your djvu problem...
  This other old software (DjVuToy) offers: Edit, annotations, import, export, make file, hidden text, move pages, add/delete images, delete/add pages, export layers in pages, etc.
  Not sure if it would be an alternate option for any of your other project needs, but for an old program it offers plenty of capability.<br />
  <a href="https://www.portablefreeware.com/forums/viewtopic.php?t=16880" rel="nofollow noreferrer">forum web link</a>
  <a href="http://www.gratilog.net/xoops/modules/mydownloads/singlefile.php?cid=62&amp;lid=2796" rel="nofollow noreferrer">french web site where its downloadable</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-22T07:29:31.940Z
Answers.Text: Thank you, it's a neat program. From what I see it only runs on Windows, though?
Answers.UserDisplayName: pglpm
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-26T16:28:35.583Z
Answers.Text: Yes limited to Windows; sadly no Linux option. Sounds like your Linux command line method is the solution for the time being.
Answers.UserDisplayName: granite
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-26T19:58:47.187Z
Answers.Text: I'll try DjVuToy through Wine on Linux :)
Answers.UserDisplayName: pglpm
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-22T03:44:50.970Z
Answers.LastActivityDate: 2023-06-22T03:44:50.970Z
Answers.UserDisplayName: granite
Answers.Body: <p>You can copy OCR layer from one DJVU-file to another using <a href="https://djvu-info.ru/prog/Djvu.OCR.v2.4b.Rus.zip" rel="nofollow noreferrer">DjvuOCR</a> program (Extract/Burn OCR layer functionalirty).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-08-03T15:39:35.143Z
Answers.LastActivityDate: 2023-08-03T15:39:35.143Z
Answers.UserDisplayName: hellpanderr
Answers.Body: <p>As usual, <code>man</code> comes to rescue.</p>
  <p>To extract <em>annotations</em> – that's the name of links – present in the djvu file <code>filename.djvu</code>, and save them in the file <code>annotations.dsed</code>:</p>
  <pre><code>djvused filename.djvu -e 'output-ant' &gt; annotations.dsed
  </code></pre>
  <p>The file <code>annotations.dsed</code> can then be edited with a text editor if there's need to modify the links or move/resize the link areas.</p>
  <p>The annotations in <code>annotations.dsed</code> can then be inserted in the original or a new file <code>filename2.djvu</code>:</p>
  <pre><code>djvused filename2.djvu -f annotations.dsed -s
  </code></pre>
  <p>Check <code>man djvused</code> for more details.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-20T12:18:56.383Z
Answers.LastActivityDate: 2023-06-20T12:18:56.383Z
Answers.UserDisplayName: pglpm
Body: <p>I have two similar copies of a text in djvu format:</p>
  <p>– one copy has an OCR layer;</p>
  <p>– the other copy has various convenient links in the &quot;Contents&quot; and &quot;Subject index&quot; pages, linking to the relevant pages in the text. But this copy doesn't have an OCR layer, and I don't manage to build one (tried the <a href="http://any2djvu.djvu.org/ulinit.php" rel="nofollow noreferrer">Any2djvu server</a> but it doesn't manage to).</p>
  <p>Is it possible to somehow extract the links from the second copy and include them in the first? or extract the OCR layer of the first and include it in the second? I know how to move and edit bookmarks between djvu files using <code>djvused</code>, but have no idea of how to work with links and OCR layers.</p>
  
Tags: <djvu><hyperlinking><ocr>
Title: Is it possible to move links or ocr layer from a djvu file to another one?
UserDisplayName: pglpm
ThreadText: # Is it possible to move links or ocr layer from a djvu file to another one?
  
  (Asked by: username_0 on 2023-06-19)
  
  I have two similar copies of a text in djvu format:
  
  – one copy has an OCR layer;
  
  – the other copy has various convenient links in the "Contents" and "Subject index" pages, linking to the relevant pages in the text. But this copy doesn't have an OCR layer, and I don't manage to build one (tried the [Any2djvu server](http://any2djvu.djvu.org/ulinit.php) but it doesn't manage to).
  
  Is it possible to somehow extract the links from the second copy and include them in the first? or extract the OCR layer of the first and include it in the second? I know how to move and edit bookmarks between djvu files using `djvused`, but have no idea of how to work with links and OCR layers.
  
  **Tags:** djvu, hyperlinking, ocr
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2023-06-22. Score: 1
  
  Though you've already solved your djvu problem...
  This other old software (DjVuToy) offers: Edit, annotations, import, export, make file, hidden text, move pages, add/delete images, delete/add pages, export layers in pages, etc.
  Not sure if it would be an alternate option for any of your other project needs, but for an old program it offers plenty of capability.  
  [forum web link](https://www.portablefreeware.com/forums/viewtopic.php?t=16880)
  [french web site where its downloadable](http://www.gratilog.net/xoops/modules/mydownloads/singlefile.php?cid=62&lid=2796)
  
  > **Comments:**
  > **username_0**: Thank you, it's a neat program. From what I see it only runs on Windows, though?  
  > **username_1**: Yes limited to Windows; sadly no Linux option. Sounds like your Linux command line method is the solution for the time being.  
  > **username_0**: I'll try DjVuToy through Wine on Linux :)  
  
  ---
  
  ### Answer by username_2 on 2023-08-03. Score: 0
  
  You can copy OCR layer from one DJVU-file to another using [DjvuOCR](https://djvu-info.ru/prog/Djvu.OCR.v2.4b.Rus.zip) program (Extract/Burn OCR layer functionalirty).
  
  
  ---
  
  ### Answer by username_0 on 2023-06-20. Score: 0
  
  As usual, man comes to rescue.
  To extract annotations – that's the name of links – present in the djvu file filename.djvu, and save them in the file annotations.dsed:
  djvused filename.djvu -e 'output-ant' > annotations.dsed
  
  The file annotations.dsed can then be edited with a text editor if there's need to modify the links or move/resize the link areas.
  The annotations in annotations.dsed can then be inserted in the original or a new file filename2.djvu:
  djvused filename2.djvu -f annotations.dsed -s
  
  Check man djvused for more details.
  
  
  ---
  
  