Click here to Skip to main content
15,843,145 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i can able to convert and save the word file in the project folder without image pdf but i cannot able to download it from google chrome

i asked to devexpress support centre but they replied that they didn't have that facilities

What I have tried:

void ConPdfDocument(FileUploadEventArgs e)

    Files = "wwwroot/Files/" + e.FileInfo.Name;
    FileName = Path.ChangeExtension(e.FileInfo.Name, "docx");
    string wordFile = "Downloads/"+FileName;
    PdfDocument doc = new PdfDocument();
    doc.ConvertOptions.SetPdfToDocOptions(true, true);

    doc.SaveToFile(wordFile, FileFormat.DOCX);


Updated 22-Sep-22 6:06am
Richard MacCutchan 22-Sep-22 10:22am    
Which version of the PdfDocument class does your code use? And have you checked that it includes ConvertOptions.SetPdfToDocOptions (I could not find that in the DevExpress documentation)?
Venila Ice 22-Sep-22 11:00am    
i used spire.pdf version 8.9.2
and ofcourse i check devexpress documentation they had word to pdf and excel to pdf and these two works to me
is they have pdf to word conversion method
and is there is any other way to get output
Richard MacCutchan 22-Sep-22 11:08am    
See the answer in your previous question on this very subject: Converting pdf to word document[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900