Does PDFNet support output intents?


I need to add/use outputintents. How can I do so with PDFNet?


You should be able to simply an outputintent like any other SDF stream.

For example, to traverse the existing output intents, you could do something along the lines of:

Obj root = doc.GetRoot();
Obj output_intent = root.FindObj(“OutputIntents”);
if (output_intent != null) {
Obj *di = 0;
size_t i, sz = output_intent.Size();
for (i=0; i<sz; ++i) {
Obj intent = output_intent.GetAt(i);
if (intent.FindObj(“DestOutputProfileRef”)) {

Obj dest_intent_stm = intent.FindObj(“DestOutputProfile”);

You can find more information about output intents at section 14.11.5 of:

For more info on working directly with SDF objects, please see:

FYI: The following article includes some sample code showing how to set the OutputIntent: