Page 1 of 1

Extract PNG File

Posted: Mon Jul 09, 2018 1:07 pm
by louw222
How do I extract a PNG file from the PDF file using PDF-XChange Core API?

Re: Extract PNG File

Posted: Mon Jul 09, 2018 1:44 pm
by Sasha - Tracker Dev Team
Hello louw222,

Please use the Images Test utility available from here to see the PNG format parameters in the encoders list:
viewtopic.php?f=67&t=25944
Also, there is a link there for the code snippet where the PDF pages are being converted into TIFF.

Cheers,
Alex

Re: Extract PNG File

Posted: Tue Jul 10, 2018 1:57 pm
by louw222
Hi Alex,
Thanks for your reply.
I need to explain our need better. I am processing a PDF file that was generated using Adobe Illustrator and the embedded picture is a vector-defined graphic.
What I need is a method to extract the original vector graphic data to a PNG file (which is a vector graphic file).
I know that I can draw the page into a raster image and then vectorize the image into a PNG file, but I don't want to lose resolution.

What I need is a way to extract the original vector graphic directly into a vector-based PNG file.
I appreciate your help.
Lou

Re: Extract PNG File

Posted: Tue Jul 10, 2018 3:49 pm
by louw222
I was confused. PNG a raster format. I guess I'm looking for an SVG file.

Re: Extract PNG File

Posted: Wed Jul 11, 2018 6:36 am
by Sasha - Tracker Dev Team
Hello Lou,

We do not provide the conversion to the SVG format, but you can write your own converter by yourself by using the SDK - we give all of the needed information about the PDF file content items that you can require.

Cheers,
Alex

Re: Extract PNG File

Posted: Tue Feb 19, 2019 3:07 pm
by kevin-b
Hi Sasha,
Just curious if there is any change regarding import/export of .SVG files? If not planned, is using that SDK a simple exercise for a non-coder or only for pros? I imagine it's for a pro coder.

Thanks & Regards,
Kevin in Barcelona

Re: Extract PNG File

Posted: Wed Feb 20, 2019 8:43 am
by Sasha - Tracker Dev Team
Hello Kevin ,

Well, if you are writing in the SDK thread that means that you are a programmer. The converter should be written as we do not provide it.

Cheers,
Alex