Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Monday, March 2, 2015 10:49:23 PM(UTC)

Groups: Registered
Posts: 30

Any idea how to determine if pdf file is raster only or vector (vector and images) using lt v19 on vb.net platform?

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, March 4, 2015 3:35:46 AM(UTC)
Faris Shahin

Groups: Registered, Tech Support
Posts: 26

As you probably know, all PDF files are actually documents and every page can contain zero or more objects such as raster images, vector drawings or formatted text.

What you can do is enumerate the objects of the PDF to determine their type. You can read more about the types from here:

You can find an example code from here:

If the PDF page contains one and only one object of type image, you can consider it to be raster.

If you mean you want to determine if the PDF file can be manipulated (append, delete, insert, etc.) using our RasterCodecs class, examine it using the GetRasterPdfInfo Method and verify that CodecsRasterPdfInfo.IsLeadPdf property is true.

Faris Shahin
Developer Support Engineer
LEAD Technologies, Inc.

#3 Posted : Wednesday, March 4, 2015 4:46:50 AM(UTC)

Groups: Registered
Posts: 30

It woks, thank you Faris
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.112 seconds.