Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert from pdf to word with chart #23

Open
saeedAliakbary opened this issue Jul 11, 2017 · 6 comments
Open

convert from pdf to word with chart #23

saeedAliakbary opened this issue Jul 11, 2017 · 6 comments

Comments

@saeedAliakbary
Copy link

saeedAliakbary commented Jul 11, 2017

I decided to convert excel to word but , I was suggested that I have to convert exccel to pdf , after this ok ,I convert pdf to word But Excel has a chart that correctly is in pdf Unfortunately, it does not come in Word.

import com.aspose.cells.FileFormatType;
import com.aspose.cells.Workbook;
import com.aspose.pdf.Document;
import com.aspose.pdf.SaveFormat;

public class Test {
    public static void main(String[] args) throws Exception {

        String dir="D:/Test/";

        Workbook workbook = new Workbook(dir+"test.xlsx");

        workbook.save(dir+"testexcel.pdf", FileFormatType.PDF);

        Document document = new Document(dir+"testexcel.pdf");

        document.save(dir+"testexcel1.docx", SaveFormat.DocX);

    }
}

@aspose-pdf
Copy link
Collaborator

@Saeedbaba,
Can you please share the PDF file generated from Excel workbook, so that we can test the conversion in our environment.

My name is Nayyer and I am developer evangelist at Aspose.

@saeedAliakbary
Copy link
Author

saeedAliakbary commented Jul 11, 2017

@saeedAliakbary
Copy link
Author

@aspose-pdf

Did you get a result? I am in a hurry

@imranrafique
Copy link

imranrafique commented Jul 12, 2017

@Saeedbaba ,
I have replied to your query in a Stack Overflow thread. The latest version 17.6 of Aspose.Pdf for Java API works fine. Please download and try the latest version 17.6 of Aspose.Pdf for Java API, and use a valid Aspose license. Each Aspose assembly has a License class and developers can call setLicense method of this class as below:

Java

com.aspose.pdf.License license = new com.aspose.pdf.License();
license.setLicense("c:\\temp\\Aspose.Pdf.Java.lic");

You can get a 30 day temporary license from the purchase portal.

I work with Aspose as Developer evangelist.

@LemjidMohamed
Copy link

Hello,
When talking about the pdf file, I got a bad word with the Aspose library:

image

Our client does not accept blocks, he sees a word document like that of the original office.
Do you have an idea please?

@asadalikhan90
Copy link
Collaborator

Please use Aspose.PDF for Java 22.4 for PDF to Word Conversion as we have improved this feature lately. Furthermore, please create a post in our official support forum in case you notice any issues. We will further proceed to assist you accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants