I’m using Groupdocs conversion API using Node.js to convert PDF to WORD.
I’m able to convert PDF to WORD but the converted word document is not 100% identical to the PDF file.
I’ve attaching both PDF and the converted Word file, In this I’m not getting the progress bars filled in bottom left section
I want the Word file to be identical to PDF, I’m using Paid API plan in my application,
For ease, I’ve also tried with Groupdocs website to convert but still getting same,
I’ve tried to convert this PDF on GroupDocs Online converter also, with the parameters
Width: 1050
Height: 1450
and I’m getting the word file as output that I attached.
The converted file is almost Identical but the progress bars are not filled as they are in the PDF in bottom left section
I’m using this on Windows 10 and I’ve attached my input and output documents
Please let us know, is there any solution for the same.
I have tested the scenario using the latest version of GroupDocs.Conversion Cloud SDK for Node and unable to notice the issue. Please double check that you are using the latest SDK. Otherwise, please share your sample code with us for further investigation. output_gd.docx (19.3 KB)
// load the module
var GroupDocs = require('groupdocs-conversion-cloud');
var fs = require('fs');
// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
var appSid = "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx";
var appKey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx";
// construct Api
var api = GroupDocs.ConvertApi.fromKeys(appSid, appKey);
var options = new GroupDocs.DocxConvertOptions();
options.width=1050
options.height=1450
var settings = new GroupDocs.ConvertSettings();
settings.filePath ="input.pdf";
settings.format = "docx";
settings.convertOptions = options;
settings.outputPath="output_gd.docx"
var request = new GroupDocs.ConvertDocumentRequest(settings);
//console.log(request);
api.convertDocument(request)
.then((result) => {
console.log(result);
}).catch(function(err) {
// Deal with an error
console.log(err);
});
Thank you for detailed reply,
I’m not able to view the output docx you attached, as it’s private.
But with the code provided by you I was able to convert the word document right but only for that particular PDF.
I was using the latest SDK before but I was using code differently where, for width and height option I was using PDFConvertOptions instead of DocxConvertOptions.
Now, it seems to be working fine for that progress bar issue but there are few other case that it’s not working fine for same progress bars.
This is happening in many PDF’s where progress bars are overlapping the text in converted word document
I’m attaching few input PDF’s, and converted docx. when I’m converting these, progress bar is overlapping the text above them.
Thanks for your detailed feedback. I have tested the scenario with shared PDF documents and noticed that text is overlapping on progress barcode images. So I logged a ticket(CONVERSIONCLOUD-489) for further investigation and rectification. We will keep you updated about the issue resolution progress in this forum thread.
I am afraid we cannot share any ETA at the moment as we have recently noticed the issue and it is pending for investigation in the queue. We will share an update/ETA as soon as the investigation is completed.
The issue is still not resolved. We discovered the issue in the parent on-premise API GroupDocs.Conversion for .NET after an initial investigation. As a result, we have opened an internal ticket to fix GroupDocs.Conversion for .NET. We will export the fix to the GropDocs.Conversion Cloud API as soon as the issue is resolved in the parent API. We will keep you updated on the progress of the problem resolution.
The issue resolution in GroupDocs.Conversion for .NET is still in progress. As soon as it is fixed in the parent API, we will import the fix in GroupDocs.Conversion Cloud and notify you.
The issues you have found earlier (filed as CONVERSIONCLOUD-489) have been fixed in this update. This message was posted using Bugs notification tool by sergeiterentev
Please note in the latest release GroupDocs.Conversion Cloud 23.2, there are new options added that can fix the issue. Instead of setting width and height options, set page size option like this:
With this I was actually able to solve most of my designs conversions.
but now I’m facing conversion problem with a few designs,
I’m not able to convert multipage PDF into DOCX correctly from API but this is converting fine from the groupdocs convertor .
I want to convert this test38.pdf (9.8 KB) PDF into DOCX.
From my conversion I’m getting this output test38.docx (19.9 KB), very messed up. but this is converting fine in the groupdocs convertor.
I think I’m missing something in the code, I didn’t find any specific documentation for converting multipage PDF into DOCX with Nodejs.
I’m using the same code above, just removed the width and height and added ‘pageSize’ option as you suggested.
Please let me know how we can fix this or If there is any specific documentation for this, please refer me to that.
When I’m trying to convert this test21.pdf (12.8 KB) PDF into DOCX
I’m getting this output test21.docx (31.3 KB).
Here at the vary bottom in the converted doc if you check, “Progrss Dots” are coming a bit off.
With this one also if I try to convert from groupdocs convertor, I’m getting exact results. “Progress dots” are coming as they are in PDF but does not come same with the API conversion.