-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting getting disturb while opening file using base64(Alignment,Font Colour,FontSize etc.) #4441
Comments
@Jayshiv1408Dev Please add details about what you mean when you say that the formatting is disturbed. It is a security risk to open a zip file, so I'm reluctant to do that. Could you add a screen shot of the disturbed formatting? |
@Jayshiv1408Dev - Can you confirm how you're getting the original slides as base64? I think that may be the issue vs. the inserting part. We recently released an api into preview that exports the slide as Base64. Can you try using that one to generate the Base 64 string? |
@EsterBergen |
can you please provide CDN for preview. I use beta version CDN but its throw exception at exportAsBase64(). |
hi @Jayshiv1408Dev - As it's a preview API you'll need to refer to the Beta reference https://appsforoffice.microsoft.com/lib/beta/hosted/office.js Try that and let us know if you still have an error. Before using the preview API for exportAsBase64(), how were you converting your slides to base64? |
Using C# File.ReadAllBytes("mypath"); I'm taking bytes from path and after that I'm using this code to convert byte into base64.
|
Is there any updates on this? |
Hi @Jayshiv1408Dev -were you able to try the preview API to see if the base64 generated provides the expected content? |
My Environment
Platform : PC desktop
Host: Power Point
Office version number: Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2404 Build 16.0.17531.20140) 64-bit
Operating System: Windows 11 pro
Hi Team,
Here is my code snippet which is I used to open PPT using base64.
After Opening my PPT file using code its alignment getting disturb I'm attaching file here for reference.
SamplePPT.zip
The text was updated successfully, but these errors were encountered: