I´m currently working on a project using documents in Freedom UI, and i was wondering if anyone has successfully implemented PDF generation directly from Creatio using a library in source code without relying on paid marketplace add-ons.
I came across this POST wich outlines an approach that seemed this method may no longer be applicable in the most recent versions of Creatio.
Any insights or shared experiences would be appreciated.
Can't really do it without a 3rd party DLL or service. Some of the newer marketplace addons use the Free Spire.Doc .NET library, which is pretty easy to work with and would be easy to implement. There is a paid version of Spire.Doc, but the free version would likely suffice for most purposes (and can be used for commercial purposes)
Can't really do it without a 3rd party DLL or service. Some of the newer marketplace addons use the Free Spire.Doc .NET library, which is pretty easy to work with and would be easy to implement. There is a paid version of Spire.Doc, but the free version would likely suffice for most purposes (and can be used for commercial purposes)
thank you for your response and for the recommendation,
I actually downloaded the free version of Spire.Doc and started exploring it — it does look quite promising. However, since I’m working entirely within Creatio Cloud, I believe there might be a limitation when it comes to using third-party DLLs directly, though I’m not completely sure.
Do you think it would be viable to integrate Spire.Doc by hosting the functionality externally (for example, as a microservice or an Azure Function) and calling it from Creatio via a REST API? I’d love to hear your thoughts on whether that approach makes sense or if you’ve seen it work in similar cases.
We have used aspose connector in the past but there are a lot of errors in communication and quality is not acceptable. we are also considering using the Spire.Doc library for future developments
Do you happen to have a reference of how to invoke functionality from external libraries or assembly reference? i´ve trying to use Spire.doc in a source code file and script task but i always get a "missing assembly reference"
Just to illustrate the attempt, here´s a basic example a tried to convert word document to PDF with source code file:
Any guidance on how to properly reference and use third party libraries like this in Creatio would be appreciated.
using Spire.Doc;using Spire.Doc.Documents;using System.IO;namespace JJ
{publicclass DocService
{public byte[] GenerateDocx(){
var doc =new Document();
doc.AddSection().AddParagraph().AppendText("Hola desde Creatio!");using(var ms =new MemoryStream()){
doc.SaveToStream(ms, FileFormat.Docx);return ms.ToArray();}}public byte[] ConvertToPdf(byte[] docxBytes){
var document =new Document();using(var ms =new MemoryStream(docxBytes)){
document.LoadFromStream(ms, FileFormat.Docx);}using(var outMs =new MemoryStream()){
document.SaveToStream(outMs, FileFormat.PDF);return outMs.ToArray();}}}}
I am getting below error when installing Aspose.PDF connector for Creatio in free trial full-bundle demo instance, version 7.17.1. Please advise:
2021-03-21 13: 25: 30,703 Compilation of the configuration DLL
2021-03-21 13: 27: 42,510 Errors and / or warnings when compiling the configuration DLL
2021-03-21 13: 27: 42,510 Autogenerated \ Src \ GlbAsposePDFHelper.GlbWordToPdfConverter.cs (5,8) Error CS0246: The type or namespace name 'Aspose' could not be found (are you missing a using directive or an assembly reference ?)