Extract the data from raster

Michael Sweet msweet at apple.com
Thu Mar 18 07:07:45 PDT 2010


You can use pre-filters (*cupsPreFilter: "mime/type cost filter") to look at the original document data, however keep in mind that won't guarantee that your pre-filter will always be run and there is no standard way to communicate between filters at this time.

On Mar 17, 2010, at 9:57 PM, kavin wrote:

> Hi,
>   is there any way to read original data from raster data which i am printing in the filters.
> 
> REGARDS
> sIVAkUMAR
> 
> 
> 
>> On Mar 17, 2010, at 9:09 PM, kavin wrote:
>>> Hi,
>>> =20
>>>    I have to extract mine data from raster file how do we do that =
>> one. and also i seen the raster format there 0-63 bytes contains the =
>> Media class string likewise where will be my data available in =
>> raster.And in struct cups_page_header2_s structure i seen the one =
>> element char cupsString[16][64]; what is the use of that one. suppose i =
>> am reading what will be there inside the cupsString;
>> 
>> 
>> See:
>> 
>>    http://localhost:631/help/api-raster.html
>>    http://localhost:631/help/raster-driver.html
>> 
>> Basically, you read the page header using the cupsRasterReadHeader2 =
>> function. You control what goes into the page header using the =
>> appropriate invocation code in your PPD file.  The above documents =
>> should help you get started.
>> 
>> ________________________________________________________________________
>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>> 
>> 
>> 
>> 
> 
> _______________________________________________
> cups-ddk mailing list
> cups-ddk at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-ddk

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair








More information about the cups mailing list