Questions tagged [wordtopdf]
11 questions
1
vote
1 answer
doc.Activate() set to an null reference in c# for Microsoft.Office.Interop.Word.Application word
i used Microsoft.Office.Interop.Word.Application word to convert word file to pdf file.This is perfectly working in my local iis.But when i add this to cloud server,It gives me a this error.
[NullReferenceException: Object reference not set to an…

hotflix
- 41
- 4
1
vote
0 answers
Ruby on Rails - How to convert to images some elements from a word document
Context
In our platform we allow users to upload word documents, those documents are stored in google drive and then dowloaded again to our platform in HTML format to create a section where the users can interact with that content.
Rails 5.0.7
Ruby…

altose87
- 11
- 4
1
vote
3 answers
Convert a .docx document as a pdf document and attach to an email
I am currently running a cloud function to generate a .docx document and then deliver it to a user using nodemailer. Here is the code to generate the .docx file using docxtemplater:
const file_name = 'template.docx';// this is the file saved in my…

Deji James
- 367
- 6
- 20
1
vote
1 answer
Prevent alert while converting Word to PDF in C#
I am converting docs in a folder to PDF using the code below
string[] filePaths = Directory.GetFiles(txtFolderPath.Text, "*.doc",
SearchOption.TopDirectoryOnly);
foreach (string path in…

Manoj Nayak
- 2,449
- 9
- 31
- 53
0
votes
0 answers
Error- "System.Runtime.InteropServices.COMException: 'This method or property is not available because a document window is not active.'"
I Installed WordToPDf in Visual Studio 2022 for my Project. But sometimes I open a file, this error occurs so I want to fix it. Can I get a solution or may need to change my WordToPDf Library ? Share your knowledges. Thank.
I changed my location…

khin twetar
- 11
- 1
0
votes
1 answer
How can I convert a Word document to a PDF with inbuilt methods in external libraries using Java that should work the same in Windows and UNIX?
I have used aspose-words and document4j to convert Word to PDF, but they depend on the rendering engine to get the layout. There is a difference in the fonts, font sizes, and format of Word and PDF files generated on UNIX compared to Windows. I…

lemon chow
- 303
- 8
0
votes
0 answers
Aspose for .Net | Error while converting word to pdf for reference number data type numbers
I am getting this error while converting the word document to PDF. The error is shown instead of the reference number text.
enter image description here
The text has reference type:
enter image description here

Nitinkumar
- 19
- 8
0
votes
0 answers
PowerShell: Turning/Printing Word Files into PDF using Bullzip
So I have a folder with a bunch of docx files and I want to
turn them into PDFs. I could use the following method in a loop
$Word=NEW-OBJECT –COMOBJECT…

Milan Patel
- 43
- 7
0
votes
1 answer
I was trying to convert my word document to PDF using Spire.Doc and always running into an exception "A generic error occurred in GDI+"
I was trying to fetch a word from different sources via url/shared link/shared drives and save it to memory stream. My memory stream gets the data everytime but while converting it to PDF via Spire.Doc it gives an error saying "A generic error…

Aryan
- 15
- 3
0
votes
1 answer
Could I change the save as destination from the document so I receive a pop-up to select the destination?
In the moment the following coding is working but it saves automatically in a folder which is defined in the code.
Private Sub CommandButton2_Click()
' Button PDF '
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
…
-5
votes
1 answer
How can i remove aspose logo from the backround
I tried to remove aspose logo from the backround from te converted pdf (attached file) but i am not able to do that.
I tried watermark removing but i was unsuccesfull.
Please give me hint to do that.
user20256782