Free Support Forum - aspose.com

Save pdf to text abnormal

code:
Document pdfDocument = new Document("/data/temp/1.pdf");
pdfDocument.save(outFile, SaveFormat.TeX);

error info:

class com.aspose.pdf.internal.ms.System.I01: Specified node ‘com.aspose.pdf.internal.l154I.I11@4346808’ should has Pen or Brush for it wrapper node
com.aspose.pdf.internal.l1521.I7.lI(Unknown Source)
com.aspose.pdf.internal.l152I.I01.lif(Unknown Source)
com.aspose.pdf.internal.l1521.I7.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I1.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I1.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I1.ll(Unknown Source)
com.aspose.pdf.internal.l152I.II.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I1.ll(Unknown Source)
com.aspose.pdf.internal.l152I.II.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I1.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I0l.ll(Unknown Source)
com.aspose.pdf.internal.l152I.I1.ll(Unknown Source)
com.aspose.pdf.internal.l152l.Il.lif(Unknown Source)
com.aspose.pdf.internal.l152l.Il.lif(Unknown Source)
com.aspose.pdf.internal.l152l.Il.lif(Unknown Source)
com.aspose.pdf.I221.lif(Unknown Source)
com.aspose.pdf.I221.lif(Unknown Source)
com.aspose.pdf.ADocument.lI(Unknown Source)
com.aspose.pdf.ADocument.lI(Unknown Source)
com.aspose.pdf.ADocument.ll(Unknown Source)
com.aspose.pdf.Document.ll(Unknown Source)
com.aspose.pdf.ADocument.lif(Unknown Source)
com.aspose.pdf.ADocument.save(Unknown Source)
com.aspose.pdf.Document.save(Unknown Source)

@jcing

Thanks for contacting support.

Would you please try following code snippet in your environment and in case you issue still persists, please share your source PDF document with us. We will test the scenario in our environment and address it accordingly.

Document pdfDocument = new Document("/data/temp/1.pdf");
LaTeXSaveOptions saveOptions = new LaTeXSaveOptions();
pdfDocument.Save(outputFileName, saveOptions);

let me try
thank you very much!

@asad.ali :sob: