We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DrawImage Crashing for metafile

Hi, I need help! I am trying to open a meta file and insert it into a PDF file. I am using VC++ to do it. Problem is, it crashes on calling "pPDF->LastPage->Graphics->DrawImage". I am attaching the source and the sample emf file. Can you please help me out? thanks Vijay meta_error_2712.zip

2 Replies

VP Vijay P June 16, 2005 01:59 PM

Oh I forgot to add. This code saves the PDF if I use the bit map instead of the metafile. But the BMP resolution is very poor. >Hi, > >I need help! I am trying to open a meta file and insert it into a PDF file. I am using VC++ to do it. Problem is, it crashes on calling >"pPDF->LastPage->Graphics->DrawImage". I am attaching the source and the sample emf file. > >Can you please help me out? > >thanks >Vijay > > >meta_error_2712.zip > >


AD Administrator Syncfusion Team June 21, 2005 07:42 AM

Hi Vijay, Sorry for the delay in getting back to you. I am afraid, the current version of Essential PDF does not have support for embedding Metafiles. The current metafiles support is limited to extracting text in metafiles and rendering it in PDF, but the remaining portion is just converted to a bitmap image and inserted into the PDF document. However, we are working on adding support to insert vector graphic images and it will be available in the next release [3 weeks time]. Thank you for your patience. Best regards, Stephen. >Oh I forgot to add. This code saves the PDF if I use the bit map instead of the metafile. But the BMP resolution is very poor. > >>Hi, >> >>I need help! I am trying to open a meta file and insert it into a PDF file. I am using VC++ to do it. Problem is, it crashes on calling >>"pPDF->LastPage->Graphics->DrawImage". I am attaching the source and the sample emf file. >> >>Can you please help me out? >> >>thanks >>Vijay >> >> >>meta_error_2712.zip >> >>

Loader.
Live Chat Icon For mobile
Up arrow icon