HRESULT AddContentGroup ( LONG groupIndex ) |
// PDF object is supposed to be created // Create 1st content group size_t backgroungGroup = PDF.CreateContentGroup(L"Background"); PDF.BeginMarkedContent(backgroungGroup); PDF.EndMarkedContent(); // Create 2nd content group size_t textGroupIndex = PDF.CreateContentGroup(L"Text Optional Content Group"); PDF.BeginMarkedContent(textGroupIndex); PDF.EndMarkedContent(); // Create 3rd content group size_t imageGroupIndex = PDF.CreateContentGroup(L"Logo (Two Pilots)"); PDF.BeginMarkedContent(imageGroupIndex ); PDF.EndMarkedContent(); // Create 4th content group size_t copyrightGroupIndex = PDF.CreateContentGroup(L"Copyright"); PDF.BeginMarkedContent(copyrightGroupIndex); PDF.EndMarkedContent(); // Create order with embedded groups doc.BeginOrder(L"Order 1"); PDF.AddContentGroup(backgroungGroup); PDF.AddContentGroup(textGroupIndex); PDF.BeginOrder(L"Order 2"); PDF.AddContentGroup(imageGroupIndex); PDF.AddContentGroup(copyrightGroupIndex); PDF.EndOrder(); PDF.EndOrder();
{ PDF object is supposed to be created } { Create 1st content group } size_t backgroungGroup := PDF.CreateContentGroup('Background'); PDF.BeginMarkedContent(backgroungGroup); PDF.EndMarkedContent(); { Create 2nd content group } size_t textGroupIndex := PDF.CreateContentGroup('Text Optional Content Group'); PDF.BeginMarkedContent(textGroupIndex); PDF.EndMarkedContent(); { Create 3rd content group } size_t imageGroupIndex := PDF.CreateContentGroup('Logo (Two Pilots)'); PDF.BeginMarkedContent(imageGroupIndex ); PDF.EndMarkedContent(); { Create 4th content group } size_t copyrightGroupIndex := PDF.CreateContentGroup('Copyright'); PDF.BeginMarkedContent(copyrightGroupIndex); PDF.EndMarkedContent(); { Create order with embedded groups } doc.BeginOrder('Order 1'); PDF.AddContentGroup(backgroungGroup); PDF.AddContentGroup(textGroupIndex); PDF.BeginOrder('Order 2'); PDF.AddContentGroup(imageGroupIndex); PDF.AddContentGroup(copyrightGroupIndex); PDF.EndOrder(); PDF.EndOrder();
// PDF object is supposed to be created // Create 1st content group size_t backgroungGroup = PDF.CreateContentGroup("Background"); PDF.BeginMarkedContent(backgroungGroup); PDF.EndMarkedContent(); // Create 2nd content group size_t textGroupIndex = PDF.CreateContentGroup("Text Optional Content Group"); PDF.BeginMarkedContent(textGroupIndex); PDF.EndMarkedContent(); // Create 3rd content group size_t imageGroupIndex = PDF.CreateContentGroup("Logo (Two Pilots)"); PDF.BeginMarkedContent(imageGroupIndex ); PDF.EndMarkedContent(); // Create 4th content group size_t copyrightGroupIndex = PDF.CreateContentGroup("Copyright"); PDF.BeginMarkedContent(copyrightGroupIndex); PDF.EndMarkedContent(); // Create order with embedded groups doc.BeginOrder("Order 1"); PDF.AddContentGroup(backgroungGroup); PDF.AddContentGroup(textGroupIndex); PDF.BeginOrder("Order 2"); PDF.AddContentGroup(imageGroupIndex); PDF.AddContentGroup(copyrightGroupIndex); PDF.EndOrder(); PDF.EndOrder();
' PDF object is supposed to be created ' Create 1st content group size_t backgroungGroup = PDF.CreateContentGroup("Background") PDF.BeginMarkedContent backgroungGroup PDF.EndMarkedContent ' Create 2nd content group size_t textGroupIndex = PDF.CreateContentGroup("Text Optional Content Group") PDF.BeginMarkedContent textGroupIndex PDF.EndMarkedContent ' Create 3rd content group size_t imageGroupIndex = PDF.CreateContentGroup("Logo (Two Pilots)") PDF.BeginMarkedContent imageGroupIndex PDF.EndMarkedContent ' Create 4th content group size_t copyrightGroupIndex = PDF.CreateContentGroup("Copyright") PDF.BeginMarkedContent copyrightGroupIndex PDF.EndMarkedContent ' Create order with embedded groups doc.BeginOrder("Order 1") PDF.AddContentGroup backgroungGroup PDF.AddContentGroup textGroupIndex PDF.BeginOrder("Order 2") PDF.AddContentGroup imageGroupIndex PDF.AddContentGroup copyrightGroupIndex PDF.EndOrder PDF.EndOrder