View CheckLinearized.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
// CheckLinearized.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <iostream> | |
#include <jawsmako/jawsmako.h> | |
#include <jawsmako/pdfinput.h> | |
#include <edl/idommetadata.h> | |
using namespace JawsMako; | |
using namespace EDL; |
View 1-DownloadPrintJobPayload.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
var printDocument = job.Documents.First(); | |
var jobFile = new FileInfo("temp.oxps"); | |
await using (var documentStream = await client.Print.Printers[printerId].Jobs[jobId].Documents[printDocument.Id].Content.Request().GetAsync()) | |
{ | |
Console.WriteLine("Downloading..."); | |
await using var file = File.Create(jobFile.FullName); | |
await documentStream.CopyToAsync(file); | |
} |
View makodistiller.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) 2020-2021 Global Graphics Software Ltd. All rights reserved | |
* | |
* Simple sample application for converting PS to PDF using the JawsMako APIs. | |
*/ | |
#include <algorithm> | |
#include <exception> | |
#include <iostream> | |
#include <stdexcept> |
View makoshapetest
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 testing shapes using the JawsMako APIs. | |
*/ | |
#include <algorithm> | |
#include <exception> | |
#include <iostream> | |
#include <stdexcept> |
View makoOPIremover.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 conversions using the JawsMako APIs. | |
* with a custom transform to remove OPI comments | |
*/ | |
#include <algorithm> | |
#include <exception> | |
#include <iostream> |
View makoconverter.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 conversions using the JawsMako APIs. | |
*/ | |
#include <algorithm> | |
#include <exception> | |
#include <iostream> | |
#include <stdexcept> |
View makoalphachan.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="makoalphachan.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 makocolorcounter.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 color reporting using the JawsMako APIs. | |
*/ | |
#include <exception> | |
#include <iostream> | |
#include <jawsmako/jawsmako.h> | |
#include <jawsmako/pdfinput.h> |
View MakoFontReporter.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-2020 Global Graphics Software Ltd. All rights reserved | |
* | |
* Simple sample application for interrogating fonts using the JawsMako APIs. | |
*/ | |
#include <exception> | |
#include <iostream> | |
#include <jawsmako/jawsmako.h> | |
#include <jawsmako/pdfinput.h> | |
#include <set> |
View DrawEllipse.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
// Draw an ellipse inside a rectangle using Bézier curves. Specify a square to draw a circle | |
static void DrawEllipse(IJawsMako jawsMako, ref IDOMFixedPage fixedPage, FRect rect, | |
double strokeThickness, IDOMBrush solidBrush) | |
{ | |
// We can approximate a circle using four béziers. This is the parameter that is | |
// used for this purpose | |
double l = ((0.7071067812 - 0.5) * 8.0 / 3.0); | |
// And so we will offset the bézier control points by half that amount as the entire | |
// circle is one unit in diameter. |