Hello, I would like to programmatically view and set the cropping settings of Picture shapes in a PowerPoint presentation. However, it doesn't look like these are made available by the Syncfusion.Presentation.IPicture interface. Can you confirm whether this is possible, and if not, is this something that could be considered as a future feature?
Thanks,
Ian
Hi Ian,
At present Syncfusion Presentation library does not have API to
crop the picture in the PowerPoint Presentation document. Could you please let
us know whether your end requirements are saving the PowerPoint Presentation as
PPTX or PDF/Image?
It will help us to analyze the feasibility to provide API for crop the image in
Presentation library.
Regards,
Anto Nihil S
Hello, we are using the library for the PowerPoint Presentation to PDF conversion. Our requirement is to be able to programmatically manipulate pictures in the PowerPoint Presentation - sometimes there can be very large pictures which are cropped to only show a small section on PowerPoint surface. We would like to programmatically replace that large picture with just the portion of the picture that is visible... but because we do not have any cropping details in the API, we don't know if the image is cropped, or the coordinates/width/height used.
The underlying reason we want to do the above is because we believe that the resulting PDF is much larger than it needs to be, because it holds the full image, and not just the cropped part of it? Can you explain how the PDF conversion deals with cropped images in the Presentation? Does it only take the cropped image data?
Regards,
Ian
Hi Ian,
Please find the details below
Regarding
picture crop feature request:
As
we mentioned earlier, at present Syncfusion Presentation library doesn’t provide
API to crop a picture of PowerPoint Presentation. We have logged this as a
feature request in our database and don’t have any immediate plans to implement
this feature. We will implement this feature in any of our upcoming releases.
We usually have an interval of at least three months between releases. The
feature implementation would also greatly depend on the factors such as product
design, code compatibility and complexity. We will update you when this feature
has been implemented.
Please use the below feedback link to track a status of the feature.
https://www.syncfusion.com/feedback/36766/provide-api-to-crop-a-picture-of-powerpoint-presentation
Regarding cropped image processing in PPTX to PDF conversion:
Yes, we are using cropping image data only during PPTX to PDF conversion
instead of original image data, so that file size of resultant PDF will be
small.
Regards,
Anto Nihil S