|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2018
Device: Kobo Aura Edition 2
|
Adding PDF Scanned book
Hi everyone,
Recently, I photographed with my phone a whole book, which I wanted to keep - It belongs to a library. After I took all the shots, I put them all into a PDF file. Now, I want to add that PDF to my Library on Calibre. First, whenever I was Browsing my computer with Calibre the book wouldn't show up. I got to work around this by having Calibre Showing all files. Now, when I try to add the book, I get the following error: calibre, version 3.21.0 WARNING: Errors while adding: There were problems adding some files, click "Show details" for more information Code:
----------------------------------------------------------------------
Failed to add the file /home/me/Documentos/Biblioteca/The book to the book: The Book
With error:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/add.py", line 430, in add_formats
if self.db.add_format(book_id, fmt, path, run_hooks=False, replace=replace):
File "/usr/lib/calibre/calibre/db/cache.py", line 1411, in add_format
size, fname = self._do_add_format(book_id, fmt, stream, name)
File "/usr/lib/calibre/calibre/db/cache.py", line 1378, in _do_add_format
size, fname = self.backend.add_format(book_id, fmt, stream, title, author, path, name, mtime=mtime)
File "/usr/lib/calibre/calibre/db/backend.py", line 1495, in add_format
fname = self.construct_file_name(book_id, title, author, len(fmt))
File "/usr/lib/calibre/calibre/db/backend.py", line 1199, in construct_file_name
raise ValueError('Extension length too long: %d' % extlen)
ValueError: Extension length too long: 106
What can I do to fix this? TL;DR: I have a PDF with a bunch of photos from a book but I can't add it to Calibre. How to fix this? |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,682
Karma: 79983758
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I think it's related to the name of the file.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2018
Device: Kobo Aura Edition 2
|
|
|
|
|
|
|
#4 |
|
Handy Elephant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
|
Try calling it "a.pdf" and see if that helps.
|
|
|
|
|
|
#5 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,003
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@david55555 : if it is a PDF then the file name should end with .pdf. The tool you used to create the pdf from the images should have done that for you.
FX: author name - book title.pdf BR |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2018
Device: Kobo Aura Edition 2
|
actually, changing the file name and folder name didn't do it, but I get a Different error now:
calibre, version 3.21.0 AVISO: Erro ao adicionar: Houve problemas na adição de alguns ficheiros, carregue em 'Mostrar detalhes' para mais informações Code:
----------------------------------------------------------------------
Falha ao adicionar o ficheiro /home/david/Documentos/Biblioteca/1/1 ao livro 1
Com o erro:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/add.py", line 430, in add_formats
if self.db.add_format(book_id, fmt, path, run_hooks=False, replace=replace):
File "/usr/lib/calibre/calibre/db/cache.py", line 1411, in add_format
size, fname = self._do_add_format(book_id, fmt, stream, name)
File "/usr/lib/calibre/calibre/db/cache.py", line 1378, in _do_add_format
size, fname = self.backend.add_format(book_id, fmt, stream, title, author, path, name, mtime=mtime)
File "/usr/lib/calibre/calibre/db/backend.py", line 1519, in add_format
with lopen(dest, 'wb') as f:
File "/usr/lib/calibre/calibre/startup.py", line 139, in local_open
ans = open(name, mode, bufsize)
IOError: [Errno 2] Ficheiro ou directoria inexistente: u'/home/david/Biblioteca do Calibre/Desconhecido/1 (11)/1 - Desconhecido./home/david/documentos/biblioteca/1/1'
I don't have this problem with any other books |
|
|
|
|
|
#7 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,003
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Just drag the file into the book list and drop it.
|
|
|
|
|
|
#8 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Dec 2018
Device: Kobo Aura Edition 2
|
I wish I could quote all, but I can't so nevermind. It was really as easy as add a .pdf in the end. Thanks guys, worked perfectly.
|
|
|
|
|
|
#9 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 47,944
Karma: 174315098
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I would question why any help was offered to someone who to by all appearances is committing piracy and/or copyright violation.
Hmmm... borrowed a library book, took pictures with a phone of all pages and created a pdf of the image files and now want to add it to calibre. My apologies to any moderators whose toes I've stomped on. Last edited by DNSB; 12-27-2018 at 04:58 PM. Reason: Added apology |
|
|
|
|
|
#10 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,682
Karma: 79983758
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Sent from my Nexus 7 using Tapatalk |
|
|
|
|
|
|
#11 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,003
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
![]() |
| Tags |
| adding books issue, error, images, pdf, pdf with images |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kobo: Adding pdfs without them getting scanned by Nickel | Mivey | KOReader | 4 | 02-06-2018 05:02 AM |
| Converting pdf file of a scanned book to epub format | fcemari | Workshop | 2 | 03-03-2017 05:50 PM |
| PDF with scanned book, not all letters are visible | lordofazeroth | Amazon Kindle | 3 | 08-16-2016 02:50 PM |
| Question Regarding 2-page Pdf (scanned book) | Mholtmeier | 7 | 09-01-2009 06:47 PM | |
| Drastic pdf drop in quality of scanned book after using acrobat optimize feature | harryE123 | 5 | 12-31-2008 10:40 PM | |