#1 2011-11-19 08:32:54

fkaynakli
Member
Registered: 2011-06-14
Posts: 12

Extra Color Separations

Hi there;
I want to add some extra color separations beside RGB and CMYK like PANTONE 151C. I found that fpdf.php can do this. I inspected the PDF file generated by fpdf and there is an object like below:

...
5 0 obj
[/Separation /PANTONE#20151#20C
/DeviceCMYK <<
/Range [0 1 0 1 0 1 0 1] /C0 [0 0 0 0] 
/C1 [0.000 0.650 1.000 0.000] 
/FunctionType 2 /Domain [0 1] /N 1>>]
endobj
...

I made some modifications in synpdf.pas and I could generate the result below:

...
10 0 obj
<<
/Length 0
/Separation PANTONE#20151#20C
/DeviceCMYK <<
/Range [0 1 0 1 0 1 0 1] /C0 [0 0 0 0] 
/C1 [0.000 0.650 1.000 0.000 ]
/FunctionType 2 /Domain [0 1] /N 1>>]
>>
stream

endstream
endobj
...

As you can see I have some problems to choise correct functions to produce exactly same object. For example I can not add bracket ([) before (/Separation). Also I have some garbage fields like << and stream. If some one can help, I will be very pleased. Best Regards...

Offline

#2 2012-01-23 07:36:28

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,658
Website

Re: Extra Color Separations

Perhaps could you post your code which produces the pdf content here.

The [ and << signs are generated depending on the class you are using to create you properties.
So we'll definitively need to see the code.

Offline

Board footer

Powered by FluxBB