简体   繁体   English

将inputstream转换为pdf到字节数组

[英]Convert inputstream to pdf to byte array

i created a mule flow which accepts a file as inputstream and convert into byte array and attach that file to the particular SalesForce case. 我创建了一个ule子流,它接受一个文件作为输入流,并转换为字节数组,并将该文件附加到特定的SalesForce案例中。 Can it possible that i could convert the file(coming as inputstream) to the pdf format and attach to Salesforce case. 我能否将文件(作为输入流)转换为pdf格式并附加到Salesforce案例中。

PDF is a special format so directly it will not create PDF. PDF是一种特殊格式,因此直接将不会创建PDF。 You can use libraries like Apache FOP or iText to create PDF output. 您可以使用Apache FOP或iText之类的库来创建PDF输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM