What is the unit of width or height? Is it possible to specify DPI value?

Hello.

Are the unit of the width and height float values in the properties such as shape and table unit in pixels?

If it’s pixel, it looks like the value at 72 dpi,
If you handle powerpoint normally, windows standard 96dpi seems to be convenient. Is it possible to specify DPI value?

Thanking you in advance.

@yuya,

I have observed your requirements and like to share that the default resolution for Aspose when working is 72 pixels per inch and it is fixed by design. However, when rendering the presentations to PDF or TIff, the API does allow you to set the custom resolution while exporting. I suggest you to please check following link for your convenience.

@mudassir.fayyaz
Thank you for your reply.

I’m sorry if it is difficult to read because it translates.
Looking at your answers, I understand that Aspose.Slides is fixed at 72 dpi.
Thank you for the reference URL.

But my problem seems to be unsolvable this way.
I created pptx from HTML, but I wanted to know the units for the width and height values.
Since the original is HTML, the problem was how to convert when px is specified.

For now, it’s about converting to centimeters at 72 dpi
I will do my best to convert it.

@yuya,

Yes, your understanding about Aspose.Slides using 72 DPI is correct. Please feel free to share with us if there is any issue incurring on your end.

1 Like