Alexander Cuadros
12/10/2024, 10:04 PMfilePDFId = file.create({
name: transactionType + '_' + transactionId + '.pdf' ,
fileType: file.Type.PDF,
contents: responsepdf.body,
description: 'PDF document for ' + transactionType + ' ' + transactionId,
folder: getOutboundDocumentsFolderID('Outbound PDF Documents'),
isOnline: false,
}).save();
but it show me an error , and when i tried to convert to base64, save the pdf in blank. the error without converting is: Intenó escribir datos no binarios en un archivo binario 'invoice_9755.pdf' del tipo 'PDF'. Los datos binarios deben estar codificados como cadenas base64. Usted proporcionó los siguientes datos: %PDF-1.4
%����
1 0 obj
</Producer (Skia/PDF m125)
/CreationDate (D:20241210192442+00'00')
/ModDate (D:20241210192442+00'00')>>
endobj
3 0 obj
</ca 1
/LC 0
/LJ 0
/LW 1
/ML 4Marwan
12/10/2024, 10:17 PMresponsepdf.body
?Alexander Cuadros
12/10/2024, 10:29 PMIsrael Gonzalez
12/10/2024, 11:05 PMAlexander Cuadros
12/10/2024, 11:10 PMIsrael Gonzalez
12/10/2024, 11:12 PMAlexander Cuadros
12/10/2024, 11:14 PMIsrael Gonzalez
12/10/2024, 11:15 PMAlexander Cuadros
12/10/2024, 11:24 PMconst responsepdf = getDocumentPDFNew(transactionId, transactionType, idAuth);
filePDFId = file.create({
name: transactionType + '_' + transactionId + '.pdf' ,
fileType: file.Type.PDF,
contents: responsepdf.body,
description: 'PDF document for ' + transactionType + ' ' + transactionId,
folder: getOutboundDocumentsFolderID('Outbound PDF Documents'),
isOnline: false,
}).save();
battk
12/12/2024, 5:18 AMbattk
12/12/2024, 5:19 AMbattk
12/12/2024, 5:19 AMbattk
12/12/2024, 5:20 AMbattk
12/12/2024, 5:20 AM