Table of Contents

Class GS1

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Reads GS1 data as people write it, each Application Identifier in parentheses and its data after it, for the barcodes that carry it: GS1 DataMatrix and GS1-128, and makes its GS1 Digital Link.

public static class GS1
Inheritance
GS1
Inherited Members

Methods

Returns the GS1 Digital Link of the GS1 data, the web address an ordinary QR code carries, at the domain: a brand's own, or GS1's resolver, https://id.gs1.org. DigitalLink("https://id.gs1.org", "(01)09506000134352(10)ABC123(17)261231") is "https://id.gs1.org/01/09506000134352/10/ABC123?17=261231". The primary key, such as a GTIN (01), an SSCC (00) or a GLN (414), is first in the path, then its qualifiers in the order of the standard, such as (22), the batch (10) and the serial (21) of a GTIN, and the other fields are in the query, in their order. A value is percent-encoded where a web address needs it. Throws an ArgumentException if the domain does not start with https:// or http://; if the data is not GS1, as for DataMatrix.FromGS1; or if it has no primary key or two, or both (254) and (7040) of a GLN.

public static string DigitalLink(string domain, string data)

Parameters

domain string
data string

Returns

string