Questions tagged [docx-to-pdf-conversion]

17 questions
1
vote
1 answer

How to convert a word document to pdf document using Microsoft Interop library

We are working on file conversions in which I am trying to convert Word document (doc & docx) to PDF file using Microsoft Interop library. Below is the code snippet I've tried implementing. *public string Get() { try …
1
vote
0 answers

Apache poi 5 -PDF converter from docx generates overlapping words

When converting a docx file (testDocument.docx) to PDF using xdocreport, the output file (testDocument-new.pdf) has some overlapping words. In order to replicate the issue, here you have the code: @Test void simpletestconversion() { …
rul0
  • 21
  • 1
1
vote
0 answers

finding a way to convert a nodebuffer docx to pdf

I am trying to convert my generated docx document to pdf using docx to pdf package https://www.npmjs.com/package/docx-pdf and I keep getting a Process exited with code 2 error. My docx document was generated using docxtemplater const contentBuffer =…
1
vote
0 answers

convert a docx file into pdf file using unoconv. It's taking too long and aborted

convert a docx file into pdf file using unoconv. It's taking too long and aborted DOCX to pdf conversion command: unoconv -f pdf -o sample.pdf sample.docx Download the sammple docx file
1
vote
1 answer

documents4j IllegalStateExeption: while converting a docx file to pdf in Java

I am trying to convert a docx file to pdf in Java, but I am getting this error: Exception in thread "main" java.lang.IllegalStateException: class com.documents4j.conversion.msoffice.MicrosoftWordBridge could not be created by a (File, long,…
0
votes
0 answers

Is there a way to convert docxtemplater generated docx file to PDF format?

I have this code in node JS to generate a docx file using docxtemplater, now I need a library to convert the generated docx to pdf, and I need a library that does the PDF rendering better I have tried docx-pdf, LibreOffice-convert, and None of these…
0
votes
0 answers

Shapes/text box gets removed after converting docx to pdf in java

I tried with this solution (with apache poi) to convert docx to pdf and it converts it but my docx file contains some shapes/text boxes and after conversion it removes them. I cant use MS Office as my code is hosted on cloud. Also, tried other…
0
votes
0 answers

Trying to convert to PDF with Docx4J: No virtual method getModule()Ljava/lang/Module

I am trying to convert a .docx file to .pdf with Docx4J. I get this error: FATAL EXCEPTION: main Process: com.example.docx4jtest, PID: 9798 java.lang.NoSuchMethodError: No virtual method getModule()Ljava/lang/Module; in class Ljava/lang/Class; or…
Volper
  • 644
  • 6
  • 14
0
votes
0 answers

Libreoffice Headless PPTx File convert to PDF producing background color to the text in the output

I am Using Libreoffice V7.3.7.2 and headless command to convert pptx file using --convert-to pdf command in the Ubuntu system, the converted PDF is getting added with the background color to the heading text. As well as all my gdrive files text is…
0
votes
2 answers

How to convert docx to PDF in Angular 15 using "docxjs"?

I'm using https://docx.js.org/api/ to create some docx file and download but I don't find how to convert this to PDF This is how is working right now. public download(data: any): void { const documentCreator = new DocumentCreator(); const…
0
votes
0 answers

Is it possible to change PDF file in Java?

I need to send to frontend large PDF file (20+ pages). Almost all pages are static, but some text on 2 pages in PDF file has to be changed depending on today's date and several parameters (like name and number). That's why I think it's good not to…
0
votes
0 answers

Keeping Formatting Stable With python-docx

My python code automates the process of replacing the Job Role and Hiring Manager for a cover letter. The code works but it makes the document's formatting all wonky. For context, my cover letter includes images and lines and the code moves all of…
0
votes
1 answer

There is format issue in the document after convert from .docx to .odt/.pdf, is there any suggestion I can fix this?

I am developing a document-pdf conversion (.docx, .pptx, .xlsx to .pdf) function in a Django apps. I am running the following codes in AWS lightsail(linux). The conversion will take place in a linux environment. I have some header format issue and…
Ying
  • 23
  • 1
  • 7
0
votes
0 answers

Paragraph styles breaking formatting in poi pdf converter

I'm using Poi/Xdocreport pdf converter on a Tomcat server. Very simple implementation in code: InputStream doc = new FileInputStream(new File(documentPath)); XWPFDocument document = new XWPFDocument(doc); PdfOptions options =…
0
votes
0 answers

convert a docx file into pdf file using unoconv

convert a docx file into pdf file using unoconv. It's taking too long to convert as pdf and aborted DOCX to pdf conversion command: unoconv -f pdf -o sample.pdf sample.docx Download the sammple docx file
Rams
  • 53
  • 7
1
2