PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: TrackerSupp-Daniel, Tracker Support, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
 
louw222
User
Topic Author
Posts: 5
Joined: Thu Jul 05, 2018 5:46 pm

Extract PNG File

Mon Jul 09, 2018 1:07 pm

How do I extract a PNG file from the PDF file using PDF-XChange Core API?
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 3701
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Extract PNG File

Mon Jul 09, 2018 1:44 pm

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
 
louw222
User
Topic Author
Posts: 5
Joined: Thu Jul 05, 2018 5:46 pm

Re: Extract PNG File

Tue Jul 10, 2018 1:57 pm

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
 
louw222
User
Topic Author
Posts: 5
Joined: Thu Jul 05, 2018 5:46 pm

Re: Extract PNG File

Tue Jul 10, 2018 3:49 pm

I was confused. PNG a raster format. I guess I'm looking for an SVG file.
 
User avatar
Sasha - Tracker Dev Team
User
Posts: 3701
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Extract PNG File

Wed Jul 11, 2018 6:36 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Who is online

Users browsing this forum: No registered users and 1 guest