Detect Blank Page

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for COM/ActiveX (v4)  /  Detect Blank Page

DynamicPDF Merger for COM/ActiveX (v4) Forum

 Jul 30 2007 9:58 AM
I add to some blank page for duplex print reasons.
After I add for every page a logo image and the page number, but this does not have to happen in the blank pages.
How I can find if a page is blank, that is does not contain no elements?
 Jul 30 2007 10:02 AM
Posted by a ceTe Software moderator
Hello,

It is not possible to find out whether a page has any elements or not using our product. It is not possible to read the contents of a an existing PDF page.

Thanks,
ceTe Software Support Team.
 Jul 30 2007 10:09 AM
You could add the feature for only knowing if a page is empty or not?
 Jul 30 2007 10:40 AM
Posted by a ceTe Software moderator
Hello,

You may use the GetContents method which returns the byte array and then check the size of the array to know whether the page is empty or not. But using this method is not recommended as the results may not be consistant because the page may contain some invisible data or elements in the page may return different values.

Also the number of bytes returned for the blank PDF page created by different PDF creators varies in size depending on the way the PDF page is structured.

Thanks,
ceTe Software Support Team.
 Jul 30 2007 10:46 AM
Posted by a ceTe Software moderator
Hello,

I just realized that you are using our COM product. The GetContents() method is not available in the COM product. The method is included in our .NET product. Sorry for the confusion.

Thanks,
ceTe Software Support Team
 Jul 30 2007 10:50 AM
I dont find the GetContents method, however I have made a workaround with a boolean array in order to trace the added one of new pages.
Too bad for the lacking feature... :-)
Thx for your attention.

All times are US Eastern Standard time. The time now is 5:08 AM.