|
Rank: Member Groups: Member
Joined: 11/8/2021 Posts: 13
|
Hi all, is it possible to save a pdf page to a png or better emf? There are various external tools that do this but I would like a single solution.
Thanks Kind regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 23,680
|
Hi, You do not need external tools for this. The key is this is a two steps process: Step 1. Use our library to render a PDF page to a System.Drawing.Image object; Step 2. Use built-in .NET function to save the System.Drawing.Image object to the format you wanted; For example, if you search "C# save Image to EMF" you may come up this which contains code on how to do step 2. https://stackoverflow.com/questions/152729/gdi-c-how-to-save-an-image-as-emfYou can do the search for png file. Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/8/2021 Posts: 13
|
Thanks for the reply. I'm just starting to try out the PDF component and I didn't know the render object. For PNG, JPG, etc. it works but unfortunately in EMF I don't get an acceptable result (Huge files and not vector). Have you tried this solution? Can you include a native function for exporting pages to EMF? Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 23,680
|
Hi,
Unfortunately we do not have native support for EMF yet. It is technically possible because internally the rendering engine in fact does render to EMF format first, and then "flatten" it to bitmap format. However exposing this internal data structure would require signficant work. We will look into it to see if it is possible for us to add that feature.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/8/2021 Posts: 13
|
Thank you! For me it would be very important.
I hope it can be done Thanks again
|
|
Rank: Member Groups: Member
Joined: 11/8/2021 Posts: 13
|
I would add that I do not require the internal structure to be exposed. A function that allows a page to be saved directly to an eml file might also suffice.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 23,680
|
Yes. That's the goal.
|
|
Rank: Member Groups: Member
Joined: 11/8/2021 Posts: 13
|
Do you have any news? I would like to find out if it is possible to do this and in what timeframe so that I can give answers to my customers. Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 23,680
|
Hi,
We still have not full evaluated the scope of code changes needed yet. We should be able to give you a better picture on whether indeed it is possible and give you a more accurate time frame if we do proceed to implement in about two weeks.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/8/2021 Posts: 13
|
Ok Thanks
|
|