Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main from develop #34

Merged
merged 59 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
0b94077
Add initial GitHub Actions workflow file to repo
datalogics-saharay Feb 27, 2024
0cadcb3
Merge pull request #31 from datalogics-saharay/add-initial-github-act…
datalogics-josepha Feb 27, 2024
3e78c00
Add QRCode sample.
datalogics-josepha Mar 11, 2024
b315590
Merge pull request #33 from datalogics-josepha/qr
datalogics-robl Mar 12, 2024
dc9bd09
Modify workflow to setup env and build Annotation sample
datalogics-saharay Feb 27, 2024
4553056
Remove macos-14 from os list
datalogics-saharay Feb 27, 2024
9d6294a
Try listing files
datalogics-saharay Feb 27, 2024
94a9d2e
List files in its own step
datalogics-saharay Feb 28, 2024
09b8a04
Use wildcard operator to find .csproj filesfor samples
datalogics-saharay Feb 28, 2024
a52c664
Fix dotnet build command
datalogics-saharay Feb 28, 2024
b98819f
Add step to run samples
datalogics-saharay Feb 28, 2024
b49b56d
Fix sample run commands
datalogics-saharay Feb 28, 2024
bdc288b
Add logic to run all Annotations samples
datalogics-saharay Feb 28, 2024
86ad47e
Modify logic for running samples
datalogics-saharay Feb 28, 2024
9ee3cd4
Add macos-14 runner to matrix.os
datalogics-saharay Feb 29, 2024
6ea7e67
Run the ContentCreation samples in CI
datalogics-saharay Feb 29, 2024
56711d1
Disable AddHeaderFooter sample in CI
datalogics-saharay Feb 29, 2024
efa1427
Rename MakeDocWithCalRGBColorSpace csproj to match the sample directo…
datalogics-saharay Feb 29, 2024
770232e
Run the ContentModification samples in CI
datalogics-saharay Mar 1, 2024
4317d9f
Run DocumentConversion samples in CI
datalogics-saharay Mar 1, 2024
817e4c8
Add logic to prevent running the ConvertToOffice sample on Mac
datalogics-saharay Mar 1, 2024
748837f
Add logic to prevent running the CreateDocFromXPS sample on Mac
datalogics-saharay Mar 1, 2024
9639920
Set the fail-fast key so other jobs keep running after failure
datalogics-saharay Mar 4, 2024
700dbf1
Run sample exe on Windows instead of DLL
datalogics-saharay Mar 5, 2024
6971b10
Run DocumentOptimization samples in CI
datalogics-saharay Mar 5, 2024
1a6d9a0
Run the Image samples in CI
datalogics-saharay Mar 5, 2024
10ed46c
Run InformationExtraction samples in CI
datalogics-saharay Mar 5, 2024
bbeb4cd
Run OpticalCharacterRecognition samples in CI
datalogics-saharay Mar 6, 2024
9c89a11
Run Other samples in CI
datalogics-saharay Mar 6, 2024
2748cac
Run Security samples in CI
datalogics-saharay Mar 6, 2024
8ae9b79
Run the Text samples in CI
datalogics-saharay Mar 6, 2024
c8d16b9
Install Microsoft Core fonts on Linux for samples that require it
datalogics-saharay Mar 6, 2024
9b7699c
Try setting DEBIAN_FRONTEND to get fonts installed
datalogics-saharay Mar 7, 2024
41a64a0
Set debconf frontend to be noninteractive
datalogics-saharay Mar 7, 2024
13b3a05
Set debconf to be noninteractive via dpkg-reconfigure
datalogics-saharay Mar 7, 2024
7eb7a85
List fonts on system for Linux
datalogics-saharay Mar 7, 2024
a78ca34
Try installing fonts another way
datalogics-saharay Mar 7, 2024
d302400
Only install fonts for Linux samples that require it
datalogics-saharay Mar 7, 2024
3697a92
Run the samples that don't work in CI yet
datalogics-saharay Mar 8, 2024
2b11ae3
Attempt to get DocToImages sample running in CI
datalogics-saharay Mar 8, 2024
10f0583
List files in HOME directory
datalogics-saharay Mar 8, 2024
50a5dd4
Correct input file path for DocToImages sample
datalogics-saharay Mar 8, 2024
0ee5f37
Remove debugging statement
datalogics-saharay Mar 8, 2024
2eccdb0
Disable Redactions sample on Ubuntu
datalogics-saharay Mar 11, 2024
db34e3e
Add step for archiving sample output
datalogics-saharay Mar 12, 2024
15c4801
List sample output files
datalogics-saharay Mar 12, 2024
795725f
Correct save artifacts step in workflow
datalogics-saharay Mar 12, 2024
815fe08
Specify save artifacts in a different way
datalogics-saharay Mar 12, 2024
51c22c4
Fix warnings about use of deprecated set-output function
datalogics-saharay Mar 13, 2024
3a1d23c
Fix the ImageExtraction sample's output file extension
datalogics-saharay Mar 13, 2024
3faa40a
Archive sample output that gets put in the parent directory
datalogics-saharay Mar 13, 2024
c4c3950
Try to add a workaround for archiving sample output in parent dir
datalogics-saharay Mar 13, 2024
36e2cf1
Modify output paths for samples
datalogics-saharay Mar 13, 2024
346423f
Refactor GitHub Actions workflow file
datalogics-saharay Mar 14, 2024
28aeff2
Merge pull request #32 from datalogics-saharay/APDFL-5452-add-CI-for-…
datalogics-aarroyo Mar 20, 2024
e96c50e
Fix sample warnings seen during workflow build.
datalogics-josepha Mar 20, 2024
81d810b
Merge pull request #35 from datalogics-josepha/fix-warnings
datalogics-saharay Mar 22, 2024
71f3510
Fix render flag setting.
datalogics-josepha Apr 2, 2024
b7061f3
Merge pull request #36 from datalogics-josepha/fix
datalogics-rgailiunas Apr 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/test-dotnet-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test-samples

on:
pull_request:
push:
branches: [ develop, main ]

env:
DOTNET_VERSION: '6.x'

jobs:
run-samples:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-14]
dir: []
40 changes: 40 additions & 0 deletions ContentModification/AddQRCode/AddQRCode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using Datalogics.PDFL;

/*
*
* This sample shows how to add a QR barcode to a PDF page
*
* Copyright (c) 2024, Datalogics, Inc. All rights reserved.
*
*/
namespace AddCollection
{
class AddQRCode
{
static void Main(string[] args)
{
Console.WriteLine("AddQRCode Sample:");

using (Library lib = new Library())
{
Console.WriteLine("Initialized the library.");

String sInput = Library.ResourceDirectory + "Sample_Input/sample_links.pdf";
String sOutput = "../AddQRCode-out.pdf";

if (args.Length > 0)
sInput = args[0];

using (Document doc = new Document(sInput))
{
Page page = doc.GetPage(0);

page.AddQRBarcode("Datalogics", 72.0, page.CropBox.Top - 1.5 * 72.0, 72.0, 72.0);

doc.Save(SaveFlags.Full, sOutput);
}
}
}
}
}
14 changes: 14 additions & 0 deletions ContentModification/AddQRCode/AddQRCode.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Adobe.PDF.Library.LM.NET" Version="18.*" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions ContentModification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Creates an action associated with a link annotation on a PDF page.
## ***AddCollection***
Adds a collection to a PDF document to turn that document into a PDF Portfolio.

## ***AddQRCode***
Adds a QR barcode to the Page of a PDF document.

## ***ChangeLayerConfiguration***
Sets the on/off states for Optional Content Groups (Layers) within a PDF document.

Expand Down