Illustrator Fonts Package

Post Reply
aoswood
Member
Posts: 20
Joined: Wed Sep 14, 2011 6:16 pm

Illustrator Fonts Package

Post by aoswood »

So we have found an issue with Illustrator loading fonts from a package. It will only recognize the fonts from the package if Illustrator is closed and it opening the file fresh. A second package going through after Illustrator is open says it is missing fonts. I attempted to resolve the situation by scripting the saving of the PDF with the following:

Code: Select all

var dest = $outfolder + '/' + $filename + ".pdf";
var originalInteractionLevel = userInteractionLevel;
var saveName = new File(dest);

userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

    pdfSaveOpts = new PDFSaveOptions();
    pdfSaveOpts.compatibility = PDFCompatibility.ACROBAT5;
    pdfSaveOpts.generateThumbnails = true;
    pdfSaveOpts.preserveEditability = true;

    try {
        $doc.saveAs( saveName, pdfSaveOpts);
    } catch (e) {
        $error = e;
    }

$outfiles = [dest];

app.quit()
I could not get that to work successfully because the quit was stopping the saveAs() command from running.

Just wondering if anyone else has experienced this or has a solution.

We are running Adobe CC 2020, SWITCH 2020 Spring and Windows Server 2019
Post Reply