We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving to PDF does not keep justify meduim

Hello,

When I save as docx file, the result keeps the justify medium i am using in my template file. But when convert it to PDF its all gone.

here is my Code

string template = "C:\Users\USERNAME\Documents\template.docx";
Document doc = new Document(template);
DocumentBuilder builder = new DocumentBuilder(doc);
// saving as docx is working, it keeps the justify medium
// doc.Save(template.Replace(".docx", "2.docx")); //=> comment this line to be pass to pdf conversion
// saving as pdf is NOT working, it DOES NOT keep the justify medium at all
doc.Save(template.Replace(".docx", ".pdf"));//=> comment if above line not commented
Console.WriteLine("saved");
Console.ReadLine();

Hi there,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15011. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.