While converting from PDF to word or PPTX we are getting the following issue:
The "vs Pervious"
portion is not aligned properly in Word or Power Point exports, but looks fine in PDF exports. We are using the following Aspose versions
- name: ‘aspose-words’, version: ‘22.12’
- name: ‘aspose-cells’, version: ‘22.12’
- name: ‘aspose-pdf’, version: ‘22.9’
- name: ‘aspose-slides’, version: ‘23.2’
Could you look into this issue. I have posted the following PDF document Cost And Utilization Variance-04-04-2023-1680623697910.pdf (174.1 KB)
@AyushCG can you please post the base document (.pdf) file that you are using as input in order to review it and be able to detect the problem?
@AyushCG As I can see you are using Java. Aspose.Words for Java does not support loading PDF documents, so I suppose your question is related to Aspose.PDF. I will move your request into the dedicated forum. My colleagues from Aspose.PDF team will help you shortly.
@AyushCG,
I trying to do the conversion using the latest Aspose.Pdf API for java, version 23.3.
This is the code:
public void Logic() throws Exception
{
var doc = new com.aspose.pdf.Document(PartialPath + "_input.pdf");
doc.save(PartialPath + "_output.pptx", SaveFormat.Pptx);
}
And this is the output:
ConvertToPptx_3_output.zip (344.3 KB)
I do not see the alignment problem, but if it is, can you check it, please?
If you see the problem is gone. I will suggest you to upgrade your version to the latest 23.3 version.