We used to build PDF document using QuickReport for years. Now we have the customer who uses uncommon font for print layouts and we have to embed this font inside PDF so it can be opened with this font on any device.
This can be achieved when we add this line of code:
pdfFilter.FontHandling := fhAutoembed;
We've got access violation error now...
Debugging ... and we can see we write to uninitialized TStream. After changes in qrpdffilt.pas all working as expected. Changes are:
#1 add new function
#2 and in line 1810
Hope it will help some other devs