Count pdf's nodes

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
minus
Posts: 2
Joined: 2017-12-01T09:39:52-07:00
Authentication code: 1152

Count pdf's nodes

Post by minus »

I'm using IM to conversion and some pdf verification, now I need check if pdf have more than 1000 nodes. Reading the documentation I found few references about nodes like http://folk.uio.no/inf3330/scripting/do ... ntize.html but I didn' t find any method to return how many nodes pdf have. Is possible using imageMagick?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Count pdf's nodes

Post by fmw42 »

What is a node?

ImageMagick is a raster image processor. If you have a vector PDF, then ImageMagick will rasterize it and any information about vector data will be lost.
minus
Posts: 2
Joined: 2017-12-01T09:39:52-07:00
Authentication code: 1152

Re: Count pdf's nodes

Post by minus »

Thank you for your explanation

I don't know how define node but this is example of pdf file with 111 nodes identified in the image https://ibb.co/eW7RHw
The pdf file: http://docdro.id/DJ5SnVF

If vector data will be lost the node information was lost too.
Post Reply