I also tried to save directly to file (without stream), but it’s not faster at all.
What am I doing wrong? This is supposed to be fast, right? How long should it take to save a 2MB file.
What’s the best way to write the file to disk?
EDIT:
I’m working on a PHP extension so I’m calling this from PHP. However, just for testing purposes, I tried to create a native executable as well, which saves a minimal presentation like this:
#include “./include/aspose.h”
using namespace Aspose::Slides;
using namespace System;
using namespace Export;
int main() {
const System::String outPath = u"./out.pptx";
What do you mean by “presentation sample”?
Can you try to compile the minimal code segment above? I’m using g++ as compiler and linker and compiled it like this:
@gtamas,
Our development team investigated the issue. The slowdown occurred due to the fact that some fonts are missing on your machine. An empty presentation requires the Arial font family to be available in your environment. Your presentation uses the Century Gothic font that is also missing from Linux by default. So you should install all fonts that are used in the presentation. The simplest way to install Arial fonts is sudo apt install ttf-mscorefonts-installer on Ubuntu.
Also, you can try to use font replacement if you cannot install the fonts. For example: