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 » 2017-12-01T09:52:04-07:00

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: 22479
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Count pdf's nodes

Post by fmw42 » 2017-12-01T10:53:42-07:00

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 » 2017-12-01T11:57:35-07:00

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