Click here to Skip to main content
15,881,204 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.LoadFromFile(Files);
    doc.ConvertOptions.SetPdfToDocOptions(true, true);

    doc.SaveToFile(wordFile, FileFormat.DOCX);

    InvokeAsync(StateHasChanged);

}
Posted
Updated 22-Sep-22 5:06am
v3
Comments
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