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

Free Support Forum - aspose.com

Java - Pttx to Tiff - missing text in the drawings

Hi Team,


I am evaluating the product for one of our requirement. During the evaluation i found conversion of the presentation to TIFF and thumbnail is missing the text in the drawing. Please find attached the screen shot of the presentation and generated TIFF.

I am using Java 6 on windows platform. Any help will be highly appreciated.

Thanks,
Bala

Hi Balla,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

<o:p> </o:p>

I have checked your issue with the latest version of
Aspose.Slides for .NET v8.4.0 and I am unable to notice any problem. I have
attached both Tiff and Jpg output files for your reference. Please share your
environment details with us i.e. OS, complete JDK version etc. with us. We will
check it and get back to you soon.<o:p></o:p>

<o:p> </o:p>

P.S. I checked your
issue with JDK 1.6.0_43 on Windows 7 x64.<o:p></o:p>

<o:p> </o:p>

Thanks & Regards,<o:p></o:p>

Hi,

Thanks for your quick reply.

Please find below the details of the environment

ASPOSE Lib : aspose-slides-8.4.0-java

Java

: Java 1.6.45 (64Bit)<o:p></o:p>

<span style=“font-size:11.0pt;font-family:“Calibri”,“sans-serif”;
color:#1F497D”>
OS
: Windows 7 64 Bit<o:p></o:p>

<span style=“font-size:11.0pt;font-family:“Calibri”,“sans-serif”;
color:#1F497D”>

<span style=“font-size:11.0pt;font-family:“Calibri”,“sans-serif”;
color:#1F497D”>I have attached the pptx file which I have tested along with the
tiff and thumbnails. Please let me know if you need any further information.<o:p></o:p>

<span style=“font-size:11.0pt;font-family:“Calibri”,“sans-serif”;
mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:
“Times New Roman”;mso-bidi-theme-font:minor-bidi;color:#1F497D;mso-themecolor:
dark2”>

Code :

<span style=“font-size:11.0pt;font-family:“Calibri”,“sans-serif”;
mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:
“Times New Roman”;mso-bidi-theme-font:minor-bidi;color:#1F497D;mso-themecolor:
dark2”>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>public
<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>class

ConvertPPTXWithNotesToTiff
<span style=“font-size:10.0pt;font-family:
Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

{<span style=“font-size:10.0pt;font-family:Consolas;
mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>public
<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>static
<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>void
main(String[] <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#6A3E3E”>args) <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>throws
Exception<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

{<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#3F7F5F”>// The path to the documents directory.<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

String <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#6A3E3E”>dataDir = System.getProperty(<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#2A00FF”>“user.dir”);<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#3F7F5F”>// Instantiate a PresentationEx object that represents a PPTX
file<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:
“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

PresentationEx <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#6A3E3E”>pres = <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#7F0055”>new
PresentationEx(<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#6A3E3E”>dataDir + <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#2A00FF”>"/IpFiltering.pptx");<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#3F7F5F”>// Saving the presentation to TIFF notes<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#6A3E3E”>pres.save(<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#6A3E3E”>dataDir + <span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#2A00FF”>"/IpFilteringNotes.tiff",<span style=“font-size:10.0pt;font-family:Consolas;
mso-fareast-font-family:“Times New Roman””><o:p></o:p>

com.aspose.slides.SaveFormat.<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#0000C0”>Tiff
);<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#3F7F5F”>// Status<span style=“font-size:10.0pt;font-family:Consolas;
mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

System.<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#0000C0”>out
<span style=“font-size:10.0pt;font-family:
Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

.println(<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman”;
color:#2A00FF”>“PPTX with notes to TIFF conversion has been performed
successfully.”);<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

}<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””><o:p></o:p>

<span style=“font-size:10.0pt;font-family:Consolas;mso-fareast-font-family:“Times New Roman””>

}

Hi Bala,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the details.

I again tested your issue with the latest version of Aspose.Slides for Java v8.5.0 and JDK 1.6.0_45 and I am unable to reproduce your mentioned issue. I would suggest you to download and try the latest version and let us know if you are still facing the same issue.

Thanks & Regards,

Hi,

thanks for your reply.

I downloaded the latest java slide 8.50 and found the same issue with the Java-1.6.0.45 64 bit. But if found the tiff and thumbnail creation are working fine wen i try with Java 1-7.0.51 64 bit. As i my currently application is running on the Java 1.6 64 bit, i dont think i can upgrade to Java 1.7 right now. I have attached the file generated for both 1.6 and 1.7

Thanks,

Bala

Hi Bala,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

<o:p> </o:p>

Thank
you for the details.<o:p></o:p>

<o:p> </o:p>

The Calibri font bug exists in JDK 1.6_45 and JDK 1.7_21
which might be causing this issue at your end. Please check the details here
and here. I would
suggest you to try with JDK 1.6_43 at your end and see if the issue still
persists. <o:p></o:p>

<o:p> </o:p>

Thanks
& Regards,<o:p></o:p>