The first problem: For the attached pdf file, I can expand the media box by running:
Code: Select all
this.setPageBoxes({ 'cBox': 'Media',
'nStart' : 0,
'rBox': [-187.0426025390625,792,791.093505859375,0] })
Code: Select all
this.setPageBoxes({ 'cBox': 'Media',
'nStart' : 0,
'rBox': [0,792,612,0] })
Code: Select all
Art: 0,792,612,0
Bleed: 0,792,612,0
BBox: 67.46399688720703,753.8079833984375,565.0999755859375,27.7340087890625
Trim: 0,792,612,0
Crop: 0,792,612,0
API states that the parameter rBox is optional. If not provided, the specified box is removed.
However, if I try
Code: Select all
doc.setPageBoxes({ 'cBox': 'Trim', 'nStart':0});