View Single Post
Old 03-09-2012, 05:34 AM   #31
mod186k1
Addict
mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.mod186k1 ought to be getting tired of karma fortunes by now.
 
mod186k1's Avatar
 
Posts: 233
Karma: 256666
Join Date: May 2008
Location: Italy
Device: iLiad, PRS-T3, Kobo GLO HD, Paperwhite 2, PB Ultra, Ony Boox Max
Header!

Quote:
Originally Posted by andyh2000 View Post
...
# Header
of.write(array('B', [0x0c, 0x04, 0x40, 0x06]))
...
Andy, it is not so easy. I have found several cases with different header for example (prova1.pdf Attachment 83659):

B0 04 11 06

another example (test_cross.pdf Attachment 83660):
6C 04 40 06

I should change header with an hex editor (editing in 0x0c, 0x04, 0x40, 0x06) and put in JBC to see what will happen.

I have noticed that if I open prova1.pdf width Gimp and I set width=1200 (0x4b0, then I get height=1553 (0x611) and the same thing for test_corss.pdf.

Conclusion: 2 words in header indicate the size of page in a 1200x1600 screen (respectiong original aspect ratio)

Note: I'll edit jcrosssketch to ignore header in import but in export there would be some trouble because it cannot know the original page sizes

Last edited by mod186k1; 03-09-2012 at 05:56 AM.
mod186k1 is offline   Reply With Quote