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 #28

Merged
merged 21 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
86aa76c
Add QRCode sample.
datalogics-josepha Mar 11, 2024
ab91637
Merge pull request #27 from datalogics-josepha/qr
datalogics-robl Mar 12, 2024
779f309
Add initial GitHub Actions workflow file
datalogics-saharay Mar 19, 2024
64cc95c
Merge pull request #29 from datalogics-saharay/add-initial-workflow
datalogics-aarroyo Mar 19, 2024
95051c8
Build .NET Framework samples in Github Actions CI
datalogics-saharay Mar 19, 2024
4759e3e
Change GitHub runner to windows-2019
datalogics-saharay Mar 19, 2024
e4f859b
Add steps to install NuGet and necessary NuGet packages
datalogics-saharay Mar 20, 2024
76d1f00
Build samples with .csproj files instead of .sln files
datalogics-saharay Mar 20, 2024
9254ff4
Add x64 as platform for msbuild command
datalogics-saharay Mar 20, 2024
cd8807a
Build DotNETViewerComponent dependency with DotNETViewer sample
datalogics-saharay Mar 20, 2024
8c71097
Add workflow step to run sample executables
datalogics-saharay Mar 21, 2024
8b696fe
Disable running the Printing samples in CI
datalogics-saharay Mar 21, 2024
26208da
Disable running the Display samples in CI
datalogics-saharay Mar 21, 2024
d86e90e
Rename Factur-XConverter exe to match .csproj file
datalogics-saharay Mar 21, 2024
6e847d9
Call DocToImages sample with necessary command line arguments
datalogics-saharay Mar 22, 2024
6f82c1a
Save sample output files resulting from a CI build
datalogics-saharay Mar 22, 2024
8a8050c
Correct the sample output paths so CI can find them
datalogics-saharay Mar 26, 2024
5e4fc8a
Correct issues with quotes in sample descriptions
datalogics-saharay Mar 27, 2024
7637212
Merge pull request #30 from datalogics-saharay/APDFL-5453-add-CI-for-…
datalogics-robl Mar 28, 2024
39689f1
Fix render flag setting.
datalogics-josepha Apr 2, 2024
b3bf46e
Merge pull request #31 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
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);
}
}
}
}
}
59 changes: 59 additions & 0 deletions ContentModification/AddQRCode/AddQRCode.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
<ProjectGuid>{C5493EAE-45F6-4502-9D26-5BFEC574729F}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>AddQRCode</RootNamespace>
<AssemblyName>AddQRCode</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
<PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
<PlatformTarget>x64</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AddQRCode.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Adobe.PDF.Library.LM.NETFramework">
<Version>18.*</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
6 changes: 6 additions & 0 deletions ContentModification/AddQRCode/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
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