Quote:
Originally Posted by andyh2000
...
# 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