Working with MCID's and PDFTron.

191 views
Skip to first unread message

Electrawinds

unread,
Nov 23, 2010, 11:16:13 AM11/23/10
to PDFTron PDFNet SDK
Short question:

Retrieving the MCID's is easy using PDFTron.
But is it possible to attribute MCID to content ?
(eg. changing a marked content ID ?

Thnx,

Support

unread,
Dec 3, 2010, 7:26:48 PM12/3/10
to PDFTron PDFNet SDK

You can surround existing PDF content with your own marked content
block. You may want to start from ElementEdit sample (http://
www.pdftron.com/pdfnet/samplecode.html#ElementEdit). In your case you
will pass-through all elements but you would inject some marked
content. For example:

// Surround an image element with some marked content.
...
element_writer.Flush();
element_writer.WriteString("/Figure <</MCID 0 >> BDC");
element_writer.WriteElement(image_element);
element_writer.WriteString("EMC");
...

For a relevent discussion please see http://groups.google.com/group/pdfnet-sdk/t/995caad66163d272
Reply all
Reply to author
Forward
0 new messages