我可以在生成的 pdf 末尾添加文件柜中的文档吗?
Can I add a document from the file cabinet at the end of a generated pdf?
我正在使用 suitescript 中的 nlapiXMLToPDF 生成 PDF。我在文件柜中有一个文件,我想将其添加到生成的 PDF 文件的末尾。这可能吗?
var file = nlapiXMLToPDF(xml);
response.setContentType('PDF', 'formalQuote.pdf');
response.write(file.getValue());
是的。为此,您需要更改 XML 以将另一个文件作为单独的 <pdf>
包含在 <pdfset>
.
中
之前:
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
*CODE*
</pdf>
之后:
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdfset>
<pdf>
*CODE*
</pdf>
<pdf src=*link to file cabinet document*></pdf>
</pdfset>
我正在使用 suitescript 中的 nlapiXMLToPDF 生成 PDF。我在文件柜中有一个文件,我想将其添加到生成的 PDF 文件的末尾。这可能吗?
var file = nlapiXMLToPDF(xml);
response.setContentType('PDF', 'formalQuote.pdf');
response.write(file.getValue());
是的。为此,您需要更改 XML 以将另一个文件作为单独的 <pdf>
包含在 <pdfset>
.
之前:
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdf>
*CODE*
</pdf>
之后:
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd">
<pdfset>
<pdf>
*CODE*
</pdf>
<pdf src=*link to file cabinet document*></pdf>
</pdfset>