Vedachalam Mahadevan
03/16/2025, 1:02 PMCeligo AI
03/16/2025, 1:02 PMAI generated answer (using internal Slack threads):In SuiteScript 1.0, there is no built-in function to compress a PDF file. However, you can use the
N/fileN/encodejavascript
var file = nlapiLoadFile('internalIdOfYourPdf');
var encodedContent = nlapiEncrypt(file.getValue(), 'base64');
var newFile = nlapiCreateFile('newFileName.pdf', 'PDF', encodedContent);
newFile.setFolder('internalIdOfYourFolder');
nlapiSubmitFile(newFile);Celigo AI
03/16/2025, 1:03 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82537955
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821537316
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820763528
Celigo AI
03/16/2025, 1:03 PM