Dtection automatique du format de la page et du type transparent le cas
chant. darcs-hash:20050706155502-061a7-675d8bd11488118375b3becbc06453a0b7383bef.gz
This commit is contained in:
parent
3bc8df252f
commit
63cadb0d5f
1 changed files with 4 additions and 1 deletions
|
@ -72,10 +72,13 @@ class cout:
|
|||
# fic = tempfile.NamedTemporaryFile()
|
||||
ligne = original.readline()
|
||||
while ligne:
|
||||
if ligne.startswith('%%BeginFeature: *PageSize'):
|
||||
if ligne.startswith('%%BeginFeature: *PageSize') or ligne.startswith('%%BeginFeature: *PageRegion'):
|
||||
taille=ligne.split(' ')[-1].strip()
|
||||
if ligne.startswith('%%BeginFeature: *Duplex'):
|
||||
recto_v=ligne.split(' ')[-1].strip()
|
||||
if ligne.startswith('%%BeginFeature: *InputSlot Transparency'):
|
||||
media="transparent"
|
||||
taille='A4'
|
||||
if ligne.find('%RBIBeginNonPPDFeature: *NumCopies') != -1:
|
||||
nb_copie_ps=int(ligne.split(' ')[-1])
|
||||
while ligne.find('%RBIEndNonPPDFeature') == -1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue