Copy link to clipboard
Copied
I have a javascript script that prints a few PDFs. They are printing about 10% too large. If I print each one manually, they print normal size.
I am using a folder level script and using printparams to adjust the settings. I have tried setting pagehandling to "fit" and "shrink" but it is still larger than it is supposed to be.
Any suggestions?
Thanks
Copy link to clipboard
Copied
Can you post your code?
Copy link to clipboard
Copied
var customSilentPrint=app.trustedFunction(
function(oDoc)
{
app.beginPriv();
try{
var pp=oDoc.getPrintParams();
pp.interactive=pp.constants.interactionLevel.silent;
pp.pageHandling=pp.constants.handling.none; //print actual size, not to fit or shrink
pp.DuplexType = pp.constants.duplexTypes.DuplexFlipShortEdge;//print double sided
}
catch(err){
app.alert("Error setting up printing parameters.\n\n"+err);
}
try{
oDoc.print(pp);
}
catch(err){
app.alert("Error Printing\n\n"+err);
}
app.endPriv();
}
);
Copy link to clipboard
Copied
I guess you should use the bShrinkToFit parameter.
Copy link to clipboard
Copied
I've tried
pp.pageHandling=pp.constants.handling.none;
pp.pageHandling=pp.constants.handling.fit;
pp.pageHandling=pp.constants.handling.shrink;
"none" is a lot bigger
"fit" and "shrink" are about 10% too big
Copy link to clipboard
Copied
Maybe try using the tileScale property to scale down your pages... Not sure it will work, but it's the only option I can think of, short of scaling the pages themselves.
Copy link to clipboard
Copied
Thanks. I'll give it a go. Interestingly, if I print from the printer tray set up for black and white, it works. It's the colour printing that is a problem
Find more inspiration, events, and resources on the new Adobe Community
Explore Now