수정 문제가 있습니다.TideSDK로 PDF 파일 저장
저는 오프라인 데스크톱 응용 프로그램이 있습니다. 여기서는 pdf 파일을 생성하고 공개 할 때 저장해야합니다.
PDF 파일을 생성하려면 BytescoutPDF librarycreatepdf.js을 사용하십시오.
이렇게하면 저장해야하는 문서 변수가 반환됩니다. 내가 함께 노력 :
//this calls the createPDF to BytescoutPDF library
//and returns the variable into 'doc'
var doc = generaStaticPartBolla_2();
//take the stream
var bolla = Ti.Filesystem.getFileStream(billPath);
//open in write mode
bolla.open(Ti.Filesystem.MODE_WRITE);
//write the doc file decodified in Base 64
bolla.write(doc.getBase64Text());
//close the stream
bolla.close();
이제 생성 된 파일이 currupted된다. 이것을 열 수 없습니다. 어떻게해야합니까? 파일을 Base 64 또는 다른 형식으로 변환해야합니까?