Does PDFNet support output intents?

36 views
Skip to first unread message

Aaron

unread,
Oct 21, 2014, 2:19:48 PM10/21/14
to pdfne...@googlegroups.com
Q:

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

A:

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:

http://xodo.com/view/#/c0c11968-ee14-478e-9b09-6dc5635c0915

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

http://www.pdftron.com/pdfnet/samplecode.html#SDF
http://www.pdftron.com/pdfnet/intro.html

Support

unread,
Oct 22, 2014, 3:23:11 PM10/22/14
to pdfne...@googlegroups.com

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

  https://groups.google.com/d/msg/pdfnet-sdk/mcMuCTUFyeQ/N2lAwhr-X2YJ

Reply all
Reply to author
Forward
0 new messages