Added document and page aspect ration detection, added page size support, print out image dynamic sizing based on page vs. document aspect ratio
This commit is contained in:
24
apps/documents/literals.py
Normal file
24
apps/documents/literals.py
Normal file
@@ -0,0 +1,24 @@
|
||||
PICTURE_ERROR_SMALL = u'picture_error.png'
|
||||
PICTURE_ERROR_MEDIUM = u'1297211435_error.png'
|
||||
PICTURE_UNKNOWN_SMALL = u'1299549572_unknown2.png'
|
||||
PICTURE_UNKNOWN_MEDIUM = u'1299549805_unknown.png'
|
||||
|
||||
PAGE_SIZE_A5 = u'a5'
|
||||
PAGE_SIZE_A4 = u'a4'
|
||||
PAGE_SIZE_A3 = u'a3'
|
||||
PAGE_SIZE_B5 = u'b5'
|
||||
PAGE_SIZE_B4 = u'b4'
|
||||
PAGE_SIZE_LETTER = u'letter'
|
||||
PAGE_SIZE_LEGAL = u'legal'
|
||||
PAGE_SIZE_LEDGER = u'ledger'
|
||||
|
||||
PAGE_SIZE_DIMENSIONS = (
|
||||
(PAGE_SIZE_A5, (u'148mm', u'210mm')),
|
||||
(PAGE_SIZE_A4, (u'210mm', u'297mm')),
|
||||
(PAGE_SIZE_A3, (u'297mm', u'420mm')),
|
||||
(PAGE_SIZE_B5, (u'176mm', u'250mm')),
|
||||
(PAGE_SIZE_B4, (u'250mm', u'353mm')),
|
||||
(PAGE_SIZE_LETTER, (u'8.5in', u'11in')),
|
||||
(PAGE_SIZE_LEGAL, (u'8.5in', u'14in')),
|
||||
(PAGE_SIZE_LEDGER, (u'11in', u'17in'))
|
||||
)
|
||||
Reference in New Issue
Block a user