LEADTOOLS Support
Document
Document SDK Questions
how to determine if pdf is raster or vector/raster?
#1
Posted
:
Monday, March 2, 2015 10:49:23 PM(UTC)
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?
#2
Posted
:
Wednesday, March 4, 2015 3:35:46 AM(UTC)
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.
#3
Posted
:
Wednesday, March 4, 2015 4:46:50 AM(UTC)
Groups: Registered
Posts: 40
Thanks: 5 times
LEADTOOLS Support
Document
Document SDK Questions
how to determine if pdf is raster or vector/raster?
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.