Hi
I have a requirement where in I am creating a word document from a template using the DOCX From Dynamic Template smart service
And then convert this word doc to a pdf doc using the PDF from DOCX smart service
The thing is the first smart service works, i.e. I am able to successfully generate the word doc. But then when I feed this word doc to the next smartservice to convert to pdf I am getting this error: org.apache.xmlbeans.impl.values.XmlValueNotSupportedException: Could not get a Java numeric type from a Schema string type
Can anyone help me with this ?
Discussion posts and replies are publicly visible
Can you provide more details.
Like what is the content in DOCX file?
Are you able to open the generated DOCX, and do you see any corrupted content?
Also can you try converting the DOCX file using an online converter.
If you do not need the DOCX, you can also try using "PDF from XSL FO Transformation" smart service for more control.
Did you consider switching to HTML to generate PDFs? Not an answer to your question, but maybe a great alternative.
My blog post: appian.rocks/.../
Hi Soma
1. The contents are basically free text with table data .. the tables are not dynamic and all have fixed rows
2. Yes, I am able to download the generated docx file and view the contents .. none of it is corrupted
3. I tried using an online converter and it converts fine
4. Which plugin is this ?
Sure ... let me have a look
Both of the plugins mentioned by Stefan and myself are part of Dynamic Document Generator
community.appian.com/.../dynamic-document-generator
Thanks
there was a small problem in my template itself.
The thing is I was using google docs to make the template, since my client does not have word access
But templates made using google docs are not supported (it will work if you solely need to generate DOCX ... but when we need to convert this docx to pdf, itll throw the above error)
Now what I had to do is, create a word doc, format my template, and for the dynamic field, copy paste the dynamic name from that given in their documentation here (download the plugin and copy paste the name given in the sample template, should look something like this : «${doc.project.name}» ) -> it is a very specific merged cell and I need to update my dynamic value in it
The thing now is : my docx is getting generated, but the pdf generated is messed up formatting ... and i dont know how to fix it
for eg. :
Generated DOCX :
Generated PDF
Can help me to fix it ?
If you do not have word access, you can try using WPS office, which is a free alternative and you can also add merge fields easily. And then try converting it to PDF. If you still face the same formatting issue, its better to switch to HTML or XSL-FO approach to have more control
How is everything going? As a college student, I often find myself overwhelmed with assignments. A friend suggested domypaper.com domypaper, and I decided to give it a try. I was impressed by their prompt service and the quality of my paper. The writer clearly understood my topic and delivered exactly what I needed. I will definitely use their services again in the future!
I have a requirement to convert user-uploaded DOCX files to PDF format. Despite trying 'PDF from DOCX' and 'PDF from Single Docx (with Fonts)', I've experienced difficulties with document generation. Could you please let me know if you know any solution