abracadabraPDF › Forums › PDF – Général › Zone de rogne et métadonnées › Répondre à : Zone de rogne et métadonnées
15 avril 2014 à 18:44
#57100

Maître des clés
Bonjour,
Toutes les zones de pages sont récupérables, choisi ta préférée :
Code:
mb = this.getPageBox( “Media” );
cb = this.getPageBox( “Crop” );
tb = this.getPageBox( “Trim” );
bb = this.getPageBox( “Bleed” );
ab = this.getPageBox( “Art” );
this.info.MediaBox = mb+””;
this.info.CropBox = cb+””;
this.info.TrimBox = tb+””;
this.info.BleedBox = bb+””;
this.info.ArtBox = ab+””;
cb = this.getPageBox( “Crop” );
tb = this.getPageBox( “Trim” );
bb = this.getPageBox( “Bleed” );
ab = this.getPageBox( “Art” );
this.info.MediaBox = mb+””;
this.info.CropBox = cb+””;
this.info.TrimBox = tb+””;
this.info.BleedBox = bb+””;
this.info.ArtBox = ab+””;
Ce qui pour la Zone de rogne (Trimbox) nous donne donc :
Code:
tb = this.getPageBox( “Trim” );
this.info.TrimBox = tb+””;
this.info.TrimBox = tb+””;
A utiliser avec la Console, ou bien en Action.
Ensuite il faut aller dans : menu Fichier : Propriétés : Personnalisées pour y lire les infos.
:Smiley15: