View pdfuacreation.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2022 Global Graphics Software Ltd. All rights reserved. | |
* | |
* A simple, but growing, selection of examples for certain JawsMako functionality. | |
* | |
* A simple example of generating content and tagging to create a PDF/UA (Accessible) PDF. | |
*/ | |
#include <iostream> | |
#include <jawsmako/jawsmako.h> |
View PageLabelExample.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------- | |
// <copyright file="PageLabelExample.cpp" company="Global Graphics Software Ltd"> | |
// Copyright (c) 2022 Global Graphics Software Ltd. All rights reserved. | |
// </copyright> | |
// <summary> | |
// This example is provided on an "as is" basis and without warranty of any kind. | |
// Global Graphics Software Ltd. does not warrant or make any representations regarding the use or | |
// results of use of this example. | |
// | |
// Simple sample application for converting text to outlines using the JawsMako APIs. |
View MakoImage2PDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ----------------------------------------------------------------------------------- | |
* <copyright file="MakoImage2PDF.cpp" company="Global Graphics Software Ltd"> | |
* Copyright (c) 2022 Global Graphics Software Ltd. All rights reserved. | |
* </copyright> | |
* <summary> | |
* This example is provided on an "as is" basis and without warranty of any kind. | |
* Global Graphics Software Ltd. does not warrant or make any representations | |
* regarding the use or results of use of this example. | |
* | |
* Simple sample application to load an image into a new PDF using the Mako APIs. |
View MakoImageExtract.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ----------------------------------------------------------------------- | |
* <copyright file="makoimageextract.cs" company="Global Graphics Software Ltd"> | |
* Copyright (c) 2021 Global Graphics Software Ltd. All rights reserved. | |
* </copyright> | |
* <summary> | |
* This example is provided on an "as is" basis and without warranty of any kind. | |
* Global Graphics Software Ltd. does not warrant or make any representations | |
* regarding the use or results of use of this example. | |
* </summary> | |
* ----------------------------------------------------------------------- |
View 1_XamlToMakoDom.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* -------------------------------------------------------------------------------- | |
* <copyright file="XamlToMakoDom.cs" company="Global Graphics Software Ltd"> | |
* Copyright (c) 2021 Global Graphics Software Ltd. All rights reserved. | |
* </copyright> | |
* <summary> | |
* This example is provided on an "as is" basis and without warranty of any kind. | |
* Global Graphics Software Ltd. does not warrant or make any representations | |
* regarding the use or results of use of this example. | |
* </summary> | |
* --------------------------------------------------------------------------------- |
View StreamingExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using JawsMako; | |
namespace StreamingExamples | |
{ | |
static class Program | |
{ |
View RetargetRenderingIntent.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <copyright file="RetargetRenderingIntent.cpp" company="Global Graphics Software Ltd"> | |
// Copyright (c) 2021 Global Graphics Software Ltd. All rights reserved. | |
// </copyright> | |
// <summary> | |
// This example is provided on an "as is" basis and without warranty of any kind. | |
// Global Graphics Software Ltd. does not warrant or make any representations | |
// regarding the use or results of use of this example. | |
// </summary> | |
// ----------------------------------------------------------------------- |
View applyPageRotation.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a IDOMFixedPage from an IPage, rotating content and cropbox as needed | |
static bool applyPageRotation(IJawsMakoPtr jawsMako, IPagePtr page, IDOMFixedPagePtr& fixedPage, FRect& cropBox) | |
{ | |
if (!page) | |
return false; | |
// Does the page have crop margins? | |
// Note: page->getCropBox() will return the cropbox dimensions if set, or the mediabox (absolute page size) dimensions if not | |
// A fixedPage() does not offer this guarantee, so fixedPage->getCropBox() may return an empty FRect() (ie one or more values < 0) | |
cropBox = page->getCropBox(); |
View TestFrameWriter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------- | |
// <copyright file="TestFrameWriter.cpp" company="Global Graphics Software Ltd"> | |
// Copyright (c) 2021 Global Graphics Software Ltd. All rights reserved. | |
// </copyright> | |
// <summary> | |
// This example is provided on an "as is" basis and without warranty of any kind. | |
// Global Graphics Software Ltd. does not warrant or make any representations regarding the use or | |
// results of use of this example. | |
// </summary> | |
// ----------------------------------------------------------------------- |
View makoobjsep.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2013-2021 Global Graphics Software Ltd. All rights reserved | |
* | |
* Simple sample application for object-based separations using the JawsMako APIs. | |
*/ | |
#include <algorithm> | |
#include <exception> | |
#include <iostream> | |
#include <stdexcept> |
NewerOlder