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

Notification

Icon
Error

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

Groups: Registered
Posts: 40

Thanks: 5 times

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:
https://www.leadtools.com/help/leadtools/v19/dh/pdf/leadtools.pdf~leadtools.pdf.pdfobjecttype.html

You can find an example code from here:
https://www.leadtools.com/help/leadtools/v19/dh/pdf/leadtools.pdf~leadtools.pdf.pdfobject.html

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.

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

Groups: Registered
Posts: 40

Thanks: 5 times

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-2024, Yet Another Forum.NET
This page was generated in 0.047 seconds.