Skip to content

Instantly share code, notes, and snippets.

View mako-team's full-sized avatar

Mako Team mako-team

View GitHub Profile
@mako-team
mako-team / RenderSeparationsToFrameBuffersComparison.cs
Created September 23, 2025 16:37
See this gist for a comparison of renderSeparations() and renderSeparationsToFrameBuffers. The same image is rendered to tiff files using the two different methods for you to see how to achieve the same output with the new API.
/* --------------------------------------------------------------------------------
* <copyright file="RenderSeparationsToFrameBuffersComparison.cs" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>
* ---------------------------------------------------------------------------------
@mako-team
mako-team / RenderSeparationsToFrameBuffersComparison.cpp
Created September 16, 2025 08:33
See this code snippet for a comparison of renderSeparations() and renderSeparationsToFrameBuffers. The same image is rendered to tiff files using the two different methods for you to see how to achieve the same output with the new API.
/* -----------------------------------------------------------------------
* <copyright file="RenderSeparationsToFrameBuffersComparison.cpp" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>
@mako-team
mako-team / ProgressEventHandling.cpp
Last active August 27, 2025 13:10
Mako now reports page and node events when saving a file, which can be used for progress reporting. Here is a command-line example that shows how to use this new feature. It uses makoconverterparams.h which is also included.
/*
* Copyright (C) 2013-2025 Global Graphics Software Ltd. All rights reserved
*
* Simple sample application for conversions using the JawsMako APIs.
*/
#include <iostream>
#include <memory>
#include <jawsmako/jawsmako.h>
@mako-team
mako-team / ProgressMonitoringCS.cs
Created August 27, 2025 09:59
To help you understand how to implement progress monitoring in your development, we have created sample code, attached, that does the following: Demonstrates the Use of IProgressMonitor, IProgressTick, and IAbort; Multiple Progress Monitors for Different Stages; Encapsulation of Progress Handling (ProgressHandler Class).
/* -----------------------------------------------------------------------
* <copyright file="ProgressMonitoringCS.cs" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>
* -----------------------------------------------------------------------
@mako-team
mako-team / ProgressMonitoring.cpp
Created August 27, 2025 09:58
To help you understand how to implement progress monitoring in your development, we have created sample code, attached, that does the following: Demonstrates the Use of IProgressMonitor, IProgressTick, and IAbort; Multiple Progress Monitors for Different Stages; Encapsulation of Progress Handling (ProgressHandler Class).
/* -----------------------------------------------------------------------
* <copyright file="ProgressMonitoring.cpp" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>
* -----------------------------------------------------------------------
@mako-team
mako-team / MakoRecolorImageWithSpot.cs
Created August 26, 2025 16:28
A Mako example that shows how to recolor an image with a spot color. Useful for rendering a logo or similar in a precise color.
/* -----------------------------------------------------------------------
* <copyright file="MakoRecolorImageWithSpot.cs" company="Global Graphics Software Ltd">
* Copyright (c) 2025 Global Graphics Software Ltd. All rights reserved.
* </copyright>
*
* <summary>
* Recolor Image With Spot Example
* Demonstrates how to paint an image with a spot color
*
* This example is provided on an "as is" basis and without warranty of any kind.
@mako-team
mako-team / CreateShapes.cpp
Created August 18, 2025 14:22
This sample demonstrates how to draw shapes, then either stroke or fill them with a solid colour. To learn how to draw lines, you should look at the createTarget() method at line 274. This draws a kind of star figure.
/* -----------------------------------------------------------------------
* <copyright file="CreateShapes.cpp" company="Global Graphics Software Ltd">
* Copyright (c) 2024 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>
* -----------------------------------------------------------------------
@mako-team
mako-team / MakoPDFMetadata.cpp
Last active July 31, 2025 09:51
This example makes use of the IDOMMetadata get and set APIs, and also shows how to retrieve and edit the XMP data. To parse the XML in the XMP packet, you will need an XML library. This example uses pugixml as it is lightweight and easy to use. You can get it from here: pugixml.org.
/* -----------------------------------------------------------------------
* <copyright file="MakoPDFMetadata.cpp" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>
* -----------------------------------------------------------------------
@mako-team
mako-team / OverprintMethods.cs
Last active June 13, 2025 10:52
Here's an example demonstrating how to use simplified methods for setting overprint directly on DOM elements like IDOMPath and IDOMGlyphs.
/* --------------------------------------------------------------------------------
* <copyright file="OverprintMethods.cs" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>
* ---------------------------------------------------------------------------------
@mako-team
mako-team / OverprintMethods.cpp
Created June 10, 2025 15:33
Here's an example demonstrating how to use simplified methods for setting overprint directly on DOM elements like IDOMPath and IDOMGlyphs.
/* -----------------------------------------------------------------------
* <copyright file="OverprintMethods.cpp" company="Global Graphics Software Ltd">
* Copyright (c) 2025 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>