We're sorry GroupDocsCloud doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.cloud

Convert PDF to DOC in Python adds paragraph boundaries

We are using groupdocs to convert PDF to Doc. Initially, it was fine but in recent conversion, word document has a boundary over every paragraph. Which is causing difficulty in editing doc for our customers.

We need an urgent response to this. So that we can switch to a different tool soon if there is no solution.

@lanidigital

Please share following details and we’ll look into this scenario:

  • API platform that you are using (Java or .NET)
  • API version (e.g. 20.10, 21.1)
  • Source and output files
  • Sample code you wrote for this conversion

@Atir_Tahir

  • Platform is Django/Python
  • groupdocs-conversion-cloud==21.4.1

SAMPLE CODE:

`

 try:
    convert_api = groupdocs_conversion_cloud.ConvertApi.from_keys(app_sid, app_key)
    file_api = groupdocs_conversion_cloud.FileApi.from_keys(app_sid, app_key)
    settings = groupdocs_conversion_cloud.ConvertSettings()

    settings.file_path =str(pdfpath)
    settings.format = "docx"
    settings.output_path = "asknd.docx"

    loadOptions = groupdocs_conversion_cloud.PdfLoadOptions()
    loadOptions.hide_pdf_annotations = True
    loadOptions.remove_embedded_files = False
    loadOptions.flatten_all_fields = True

    settings.load_options = loadOptions

    convertOptions = groupdocs_conversion_cloud.DocxConvertOptions()

    settings.convert_options = convertOptions


    request = groupdocs_conversion_cloud.ConvertDocumentRequest(settings)
    #print("settings",request)
    response = convert_api.convert_document(request)`
  • Sorry, Files cant be attached as they are legal documents. But as I explained earlier we are converting PDF to Word document. I have uploaded a image of the actual issue.
    Screenshot from 2021-09-23 23-38-15.png (18.6 KB)

@lanidigital

We have already noticed the issue and logged a ticket CONVERSIONCLOUD-393 for resolution. We have linked your post to the issue and will update you as soon as it is resolved.

Thanks for your reply @tilal.ahmad. What is SLA for the resolution?

@lanidigital

Hopefully, if everything works as per plan then we will be able to provide you the solution in an upcoming release of GroupDocs.Conversion Cloud 21.10.

The issues you have found earlier (filed as CONVERSIONCLOUD-393) have been fixed in this update. This message was posted using Bugs notification tool by sergeiterentev