Hi.
In an application embedding MS OLE, we fail to save too large embedded OLE PDFs into our files (IPersistStorage::Save), exceeding some threshold. From what it seems, this occurs due to the default allocation size set of the particular software we are trying to embed (Adobe), as can be seen in IBM’s article:
http://www-01.ibm.com/support/docview.wss?uid=swg1HD72791
A workaround, which slightly improves the situation, as the below two links suggest is to add/set "MaximumAllowedAllocationSize" reg key as DWORD under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole to 0x01e00000
http://www-01.ibm.com/support/docview.wss?uid=swg1HD72791
http://www.edstechnologies.com/Mailer/feb13/tips1.html
This allows us to embed slightly larger PDFs (~10% improvement). We are looking for a way to push this limit further and get a bigger memory allocation for such objects.
Thanks,
Esti