View Single Post
Old 01-31-2013, 09:21 AM   #1
asacamano
Junior Member
asacamano began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2013
Device: Galaxy Tab 10.1
Calibre Companion PDF Corruption

Hi,

Generally, I've had lots of success with Calibre Companion, but I have a few (not all) PDFs which get corrupted in the "Send to device" process.

When I open the content server in Calibre, I can download the files into (e.g.) MoonReader and open it just fine, but when I send the PDFs to Calibre Companion wirelessly, the resulting file in unreadable in MoonReader, Adobe's PDF Reader, and a few other apps. They all describe the file as "damanged or corrupted".

I compared the file in Calibre_Companion on the device with the file in my local Calibre library (using WiFi File Browser to transfer it), and they are different sizes, and have different content (see below):

cksum working.pdf broken.pdf
2897500834 619196 working.pdf
4245409161 616740 broken.pdf

Just to really mix things up, both PDFs are openable, and appear to work fine on my mac laptop - it's only on the mobile device that

So my question is how can I get the PDF file to be transferred without any processing.

Thanks in advance for any advice,

Andrew

P.S. For what it's worth:

Calibre 0.9.16 on OS X 10.8.2
Calibre Companion 2.7.1 on Android 4.0.4 (Galaxy Tab 10.1 GT-P7510)


Beginning of working PDF (od -tx1 -c)
0000000 25 50 44 46 2d 31 2e 33 0a 25 c4 e5 f2 e5 eb a7
% P D F - 1 . 3 \n % 304 345 362 345 363 247
0000020 f3 a0 d0 c4 c6 0a 32 20 30 20 6f 62 6a 0a 3c 3c
363 240 320 304 306 \n 2 0 o b j \n < <
0000040 20 2f 4c 65 6e 67 74 68 20 34 20 30 20 52 20 2f
/ L e n g t h 4 0 R /
0000060 46 69 6c 74 65 72 20 2f 46 6c 61 74 65 44 65 63
F i l t e r / F l a t e D e c
0000100 6f 64 65 20 3e 3e 0a 73 74 72 65 61 6d 0a 78 da
o d e > > \n s t r e a m \n x 355
0000120 ed 5d 59 8f e4 c8 71 7e cf 5f c1 c7 15 30 2a e5
355 ] Y 217 344 310 q ~ 317 _ 301 307 025 0 * 175
0000140 7d 58 4f de c5 ca 5e 40 b2 6c ec 00 03 03 fb d2
} X O 336 305 312 ^ @ 262 l 354 \0 003 003 373 335




Beginning of broken PDF
0000000 25 50 44 46 2d 31 2e 33 0a 25 e2 e3 cf d3 0a 31
% P D F - 1 . 3 \n % 342 343 317 323 \n 1
0000020 20 30 20 6f 62 6a 3c 3c 2f 54 79 70 65 2f 50 61
0 o b j < < / T y p e / P a
0000040 67 65 2f 43 6f 6e 74 65 6e 74 73 20 32 20 30 20
g e / C o n t e n t s 2 0
0000060 52 2f 4d 65 64 69 61 42 6f 78 5b 20 30 20 30 20
R / M e d i a B o x [ 0 0
0000100 36 31 32 20 37 39 32 5d 2f 50 61 72 65 6e 74 20
6 1 2 7 9 2 ] / P a r e n t
0000120 39 20 30 20 52 2f 52 65 73 6f 75 72 63 65 73 20
9 0 R / R e s o u r c e s
0000140 33 20 30 20 52 3e 3e 0a 65 6e 64 6f 62 6a 0a 32
3 0 R > > \n e n d o b j \n 2
0000160 20 30 20 6f 62 6a 3c 3c 2f 46 69 6c 74 65 72 2f
0 o b j < < / F i l t e r /
0000200 46 6c 61 74 65 44 65 63 6f 64 65 2f 4c 65 6e 67
F l a t e D e c o d e / L e n g
0000220 74 68 20 39 39 31 39 3e 3e 0a 73 74 72 65 61 6d
t h 9 9 1 9 > > \n s t r e a m
0000240 0a 78 da ed 5d 59 8f e4 c8 71 7e cf 5f c1 c7 15
\n x 332 355 ] Y 217 344 310 q ~ 317 _ 301 307 025
0000260 30 2a e5 7d 58 4f de c5 ca 5e 40 b2 6c ec 00 03
0 * 345 } X O 336 305 312 ^ @ 262 l 354 \0 003
asacamano is offline   Reply With Quote