Skip to main content
rcraighead
Legend
August 1, 2019
Question

Scale up file when saving to PDF?

  • August 1, 2019
  • 1 reply
  • 323 views

We save a PDF of our product layout files at actual size. Since it's jewelry this can be quite small. Our systems developer plans to use the files for preview on web, but cannot figure out how to scale them up. Can I do that for him during the save process? Was hoping it would just be a "Save at 200%" option, similar to printing, but haven't found it yet.

This is the script we currently use for saving the PDF:

// save as

var doc = app.activeDocument;

var myLayer = doc.layers["FINGERPRINT"].locked = false;;

if (doc.layers["FINGERPRINT"].pageItems[0].locked = true){

doc.layers["FINGERPRINT"].pageItems[0].locked = false;

}

try {

        doc.layers["Base"].locked = false;

        doc.pageItems["MasterPrints"].remove();

        doc.layers["Base"].locked = true;

    }

catch (e){}

var dest = "%Variable%DND_SaveLocal%/%Variable%pdfFileName%";

saveFileToPDF(dest);

function saveFileToPDF (dest) {

//var doc = app.activeDocument;

    if ( app.documents.length > 0 ) {

        var saveName = new File ( dest );

        saveOpts = new PDFSaveOptions();

        saveOpts.pDFPreset = "[Illustrator Default]";

saveOpts.acrobatLayers = false;

//~         alert(saveName);

        doc.saveAs( saveName, saveOpts );

    }

}

This topic has been closed for replies.

1 reply

Ten A
Community Expert
Community Expert
August 2, 2019

As far as I know, PDFSaveOptions doesn't have scale factor.

Here is an example of PDFSaveOptions of New Document.

pDFPreset :

compatibility : PDFCompatibility.ACROBAT5

pDFXStandard : PDFXStandard.PDFXNONE

pDFXStandardDescription :

preserveEditability : true

generateThumbnails : true

optimization : false

viewAfterSaving : false

colorCompression : CompressionQuality.None

colorTileSize : 256

colorDownsamplingMethod : DownsampleMethod.NODOWNSAMPLE

colorDownsampling : 150

colorDownsamplingImageThreshold : 225

grayscaleCompression : CompressionQuality.None

grayscaleTileSize : 256

grayscaleDownsamplingMethod : DownsampleMethod.NODOWNSAMPLE

grayscaleDownsampling : 150

grayscaleDownsamplingImageThreshold : 225

monochromeCompression : MonochromeCompression.None

monochromeDownsamplingMethod : DownsampleMethod.NODOWNSAMPLE

monochromeDownsampling : 300

monochromeDownsamplingImageThreshold : 450

compressArt : true

trimMarks : false

registrationMarks : false

colorBars : false

pageInformation : false

pageMarksType : PageMarksTypes.Roman

trimMarkWeight : PDFTrimMarkWeight.TRIMMARKWEIGHT0125

offset : 0

bleedOffsetRect : 0,0,0,0

bleedOffsetRect.0 : 0

bleedOffsetRect.1 : 0

bleedOffsetRect.2 : 0

bleedOffsetRect.3 : 0

bleedLink : true

colorConversionID : ColorConversion.None

colorDestinationID : ColorDestination.None

colorProfileID : ColorProfile.None

outputIntentProfile :

outputCondition :

outputConditionID :

registryName :

trapped : false

fontSubsetThreshold : 100

flattenerPreset :

flattenerOptions : NA

printerResolution : 800

acrobatLayers : false

requireDocumentPassword : false

documentPassword :

requirePermissionPassword : false

permissionPassword :

pDFAllowPrinting : PDFPrintAllowedEnum.PRINT128HIGHRESOLUTION

pDFChangesAllowed : PDFChangesAllowedEnum.CHANGE128ANYCHANGES

enableCopy : true

enableAccess : true

enablePlainText : false

enableCopyAccess : true

artboardRange :

typename : PDFSaveOptions