Jeff-Lewis / flexpaper

Automatically exported from code.google.com/p/flexpaper
0 stars 0 forks source link

Issue: First 9 pages of a HTML4 document are not shown when using Poppler for generating the images #313

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
FlexPaper does not display the first 9 pages of a HTML4 document if the images 
are generated through Poppler. 

This is due to the {page} placeholder expects one digit numbers 1,2,3...9 
instead of the two digit numbers 01,02,03...09 used by Poppler.

Original issue reported on code.google.com by mentur...@gmail.com on 12 Oct 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Thanks for reporting this! we will have to add padding to that argument as well 
then just as with swfFiles. How about being able to specify where page number 
is located in the following manner

Image_{page,1}.png  = gives you requests in the form of Image_01.png, 
Image_02.png

Original comment by erik.eng...@devaldi.com on 15 Oct 2012 at 9:34

GoogleCodeExporter commented 9 years ago
Many thanks for your reply!

Poppler seems to add leading zeros according to the number of zeros.
Although I haven't tested it with docs with a "total number of pages" > 99 yet, 
I think, Poppler will add "max # of leading zeros = (n-1)" if the total number 
of pages is "n"-digit, i.e. 

# pages > 9   -> number scheme: 05, 99, ... (<- max # of leading zeros 1)
# pages > 99  -> number scheme: 002, 041, 531... (<- max # of leading zeros 2)
# pages > 999 -> number scheme: 0001, 0082, 0273, 9988 (<- max # of leading 
zeros 2)

Original comment by mentur...@gmail.com on 16 Oct 2012 at 7:21

GoogleCodeExporter commented 9 years ago
Sorry, semantic typo. It should be:

"Poppler seems to add leading zeros according to the number of pages."

instead of 

"Poppler seems to add leading zeros according to the number of zeros."

Original comment by mentur...@gmail.com on 16 Oct 2012 at 7:23