Hello,

I have a requirement to add Aspose.pdf Connector in Creatio. I have installed it and is visible in Application Hub, can anyone provide a document/ step of how to use the Aspose.pdf Connector in the Creatio for my Custom Package.

I have a requirement to show some fields with data in PDF form using a Preview button.

 

 

Like 0

Like

4 comments
Best reply

Hello Smit, 

 

We would appreciate it if you can provide more details on your business requirements. Your described behavior can also be implemented via the business process, which will be triggered by a button click and will return an autogenerated page with values of the fields that you can forward to your printable

 

Best Regards, 

Hello Smit, 

 

We would appreciate it if you can provide more details on your business requirements. Your described behavior can also be implemented via the business process, which will be triggered by a button click and will return an autogenerated page with values of the fields that you can forward to your printable

 

Best Regards, 

Hello Ihor,

 

Thanks for the idea of using Printable Report.

After creating printable report, after clicking on print button in the section it displays a Dialog box which is saying "Please fill in the system setting for converting to PDF" can you please help us on which system settings need to be filled?

 

Regards,

Smit Suthar

 

Hello Smit, 

 

Can you please clarify if the settings mentioned in the Installation tab under "Guides and manuals" were filled in? - https://marketplace.creatio.com/app/asposepdf-connector-creatio

 

Best Regards, 

Ihor

 Hey Ihor,

Thanks now everything is working fine. 

Show all comments

Dear community,

 

I am using the following apps:

Aspose 

'Save Printable' (keep in mind that we tried with a script first but we switched to this for ease of use)

 

Whenever we trigger our business process manually, the pdf gets created automatically. Whenever the BP gets triggered by the portal, the attachment doesn't get converted. We still use the same BP with the same values.

 

Does anyone have any experience with this?

Thank you in advance!

 

Kind regards,

Yosef

Like 0

Like

6 comments

Hi Yosef,

 

Please note that the Aspose connector does not support generating pdf printables when triggered by the portal.

Kindly answer the following questions for the responsible team to further analyze your use-case:

1. What Creatio product and version are you working with?

2. Do you get  a .docx printable generated automatically when the BP is triggered by the portal?

3.  Could you provide us with a BP diagram to have a clearer idea of the use-case?

 

Thank you for your feedback!

Svetlana Kobizka,

 

We actually call the BP through API with a portal user in Creatio.

1. We use Creatio sales, marketing & service / 7.17.1

2. We get a PDF file but we can't open it. Changing it to .docx makes us able to read it as a word file.

3.

this is the initial process: https://prnt.sc/zz2kpg

We call the invoice through API and set it to "Complete". As soon as this happens, we trigger the following flow which is the subprocess: https://prnt.sc/zz2uut

 

Here we have the "save printable" block.

Everything works except when the status is set to complete through the portal API.

 

 

Kind regards,

Yosef

Hi Yosef,

 

Regarding the second issue, we need you to run a check-up and get back to us with the results.



Please set the printables generation to .docx printables in the subprocess in the 'Save printable' element. Run the business process and tell us if a .docx printable is successfully generated when the BP is triggered by the portal.

Alexander Demidov,

 

If we set the processs to docx, everything works. Right now, when we change the generated pdf (through portal) file to ".docx", we can open it in word.

 

Kind regards,

Yosef

I also noticed that we can't generate a pdf in the instance either unless we place an approval block: https://prnt.sc/106hzl7

Without the approval block, the pdf gets created but we're unable to open it unless we manually change it to ".docx" : https://prnt.sc/106i0bb

This process was triggered within Creatio.

 

 

Kind regards,

Yosef

Hi Yosef,

 

Thank you for the clarification. I have submitted this update to the responsible team.

Show all comments

Hi,

I'm looking for an example code of using the aspose pdf libraries inside creatio's code.

Thanks,

Raz

Like 0

Like

10 comments

Are we talking about this Marketplace add-on? https://marketplace.creatio.com/app/asposepdf-connector-creatio

 

Did you read the Installation > Guides and manualsRead Manuals on the marketplace page?

1. Register at Aspose.PDF service (https://products.aspose.cloud/pdf/net), add an application (My Apps> Add an App), get access keys (Client Secret, Client ID).

2. Fill in the system settings "Aspose API Access Key" (= Client Secret) and "Aspose Security Identifier (App SID)" (= Client ID) with the data from item 1, respectively. Logout and login to the Creatio app again.

3. Go to System Designer > Lookups > the ‘Printables’ lookup, select the printable, and open the printable setup page, select the ‘Convert to PDF’ checkbox and save changes. Note that the ‘Convert to PDF’ checkbox is available only on the printable setup page in the new UI.

4. The add-on shows an error message if a printable conversion fails on the Aspose side (Aspose service is unavailable, service access is not paid, etc.). Detailed error description is available in the browser console.

What sort of code do you need?

Julius,

Hi Julius,

 

Yes, I'm taking about this addon.

The thing is that this connector only allows me to create a pdf document.

I want to merge 2 pdf documents to 1.

So I thought about using the aspose cloud API SDK for .Net.

 

I've read in the academy that I can include external libraries, so I've been thinking using aspose libraries to do so.

 

So my question is related to the usage of aspose API SDK Libraries in creatio.

 

Raz

Hi Raz,

 

You can find an example of the Aspose API library call from Creatio in the 'AsposeCloud' package. Additional information on Aspose API SDK is available here - https://products.aspose.cloud/pdf/net.

 

Hope it helps.

Svetlana Kobizka,

Hi Svetlana,

 

Thank you very much for the reply.

I managed to find the AsposeCloud :)

 

The thing is that when I download the Apospe dll the libraries are different.

 

I need to use the service to merge documents, but it's not working.

 

I attached the code and the library that I'm using.

 

I appreciate if you could assist me

 

https://www.dropbox.com/s/2lplgni2wsi5piy/Aspose.PDF.dll?dl=0

 

This is the code

PdfApi api = new PdfApi("11d276990520041f6cda09531e25aabb", "9568f0a0-cf77-4836-97d2-fd1389338080");

 

Hi Raz,

 

The responsible team checked that the Aspose connector uses Aspose.Words.Cloud.Sdk.dll, which does not include the method that you need. You can find the description of the .Pages.Add() method that you need here: https://docs.aspose.com/pdf/net/merge-pdf-documents. Please install the required library and follow the Aspose official guidelines.

 

We have asked the team about possible development assistance, unfortunately, they cannot assist.

Why don't you just make an extra printable template for this purpose?

A printable template which includes all the pages you need

Julius,

What do you mean by "extra printable"?

I need the two printables merged together in the same document.

Alexander Demidov,

Hi,

 

Thank you very much for the detailed answer.

All the documentation that I've found about merging files through the Aspose Words Cloud eventually needs a directory to put the file.

Or in the other way a filestream to create the file from and I can't do that, because my creatio  application is a cloud base.

Am I missing something?

Hi Raz,

 

I have forwarded your question to the relevant team. We will get back to you once we have more information.

Show all comments

Hi,

I've installed aspose pdf connector and it worked just fine :)

I managed to create pdf printables.

A few days ago it stopped working and the printables are not being created in pdf but only in docx.

The only thing that was changed is the the application was upgraded to 7.17.

I would love having some advice.

Thanks,

Raz

Like 0

Like

8 comments

Hi Raz,

 

Please specify your current Creatio version: is it 7.17.0 or 7.17.1?

It will enable us to identify the reason for your issue.

 

Thank you

Svetlana Kobizka,

7.17.1

 

Thank you

Hi Raz,

 

Could you please check the below points and let us know about the results:

 

1. Make sure the 'Convert to PDF' checkbox is not cleared for the selected printables in the 'Printables' lookup.

2. Open the Aspose personal page and make sure the corresponding conversion requests from Creatio for the relevant period are available.

 

Thank you for your feedback!

Checked

 

It's very strange I have an active user, but I can't find the link to the dashboard where I see the log requests.

Can you share it with me?

 

By the way, the last time I checked (When I opened this discussion) I didn't see the request from creatio where at the beginning, i.e. directly after the installation I did.

 

Ps:

- I still have a free acount there.

- The only thing that have changed is the creatio release.

Hi Raz,

Here is the dashboard link: https://dashboard.aspose.cloud/billing/api-usage/. If you find no requests here, please double-check if the values in the corresponding system settings are correct and have a look if there are any errors in the console when generating PDF printables. If there are, please send us the error details.

What do you mean by "errors in the console"?

Hi Raz,

 

We are referring to error messages in the browser console. Here is an example screenshot:

 

No description available.

 

The error (not relevant to the Aspose connector) is in red.

 

Try generating a printable with the browser console open. Should any error messages appear, please send them to us.

Show all comments

I registered at aspose cloud, made an app.  Got the client id and secret, and put those in the settings in Creatio.  But when trying to print, get this error:

 

 

Request Error

      The server encountered an error processing the request. The exception message is 'Bad Request'. See server logs for more details. The exception stack trace is: 

         at Aspose.Words.Cloud.Sdk.RequestHandlers.ApiExceptionRequestHandler.ThrowApiException(HttpWebResponse webResponse, Stream resultStream)

   at Aspose.Words.Cloud.Sdk.RequestHandlers.ApiExceptionRequestHandler.ProcessResponse(HttpWebResponse response, Stream resultStream)

   at System.Collections.Generic.List`1.ForEach(Action`1 action)

   at Aspose.Words.Cloud.Sdk.ApiInvoker.ReadResponse(WebRequest client, Boolean binaryResponse)

   at Aspose.Words.Cloud.Sdk.ApiInvoker.InvokeInternal(String path, String method, Boolean binaryResponse, String body, Dictionary`2 headerParams, Dictionary`2 formParams, String contentType)

   at Aspose.Words.Cloud.Sdk.RequestHandlers.OAuthRequestHandler.RequestToken()

   at Aspose.Words.Cloud.Sdk.RequestHandlers.OAuthRequestHandler.ProcessUrl(String url)

   at Aspose.Words.Cloud.Sdk.ApiInvoker.<>c__DisplayClass10_0.b__0(IRequestHandler p)

   at System.Collections.Generic.List`1.ForEach(Action`1 action)

   at Aspose.Words.Cloud.Sdk.ApiInvoker.InvokeInternal(String path, String method, Boolean binaryResponse, String body, Dictionary`2 headerParams, Dictionary`2 formParams, String contentType)

   at Aspose.Words.Cloud.Sdk.WordsApi.ConvertDocument(ConvertDocumentRequest request)

   at Terrasoft.Configuration.AsposeCloudPdfConverter.Convert(Byte[] data)

   at Terrasoft.Configuration.ReportService.ReportService.GenerateMSWordReport(String urlTemplateId, String urlRecordUId, Boolean convertInPDF)

   at Terrasoft.Configuration.ReportService.ReportHelper.CreateReport(String entitySchemaUId, String reportSchemaUId, String templateId, String recordId, String reportParameters, Boolean convertInPDF)

   at Terrasoft.Configuration.ReportService.ReportService.CreateReportsList(String entitySchemaUId, String reportSchemaUId, String templateId, String[] recordIds, String reportParameters, Boolean convertInPDF)

   at SyncInvokeCreateReportsList(Object , Object[] , Object[] )

   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)

   at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)

   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)

   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Like 0

Like

3 comments
Best reply

Hi Chris,

 

Here is the feedback we received:

You need to check the values in the Creatio system settings connected to the Aspose service.

Please use the screenshot below to check whether the Aspose setting values match the respective system settings in Creatio.:

 

 

After you apply the changes, we recommend you to log out and log back into Creatio for checking the updates.

 

Hope this helps, 

Have a good day!

Hi Chris,

 

Thank you for your message.

We have forwarded your request to the responsible team.

We will get back to you with a solution as soon as we receive their feedback.

 

Have a good day!

Hi Chris,

 

Here is the feedback we received:

You need to check the values in the Creatio system settings connected to the Aspose service.

Please use the screenshot below to check whether the Aspose setting values match the respective system settings in Creatio.:

 

 

After you apply the changes, we recommend you to log out and log back into Creatio for checking the updates.

 

Hope this helps, 

Have a good day!

Thanks!  That worked.

Show all comments