Pular para o conteúdo principal

PdfMarker

Namespace: Lacuna.RestPki.Client
Assembly: Lacuna.RestPki.Client
Class

public class PdfMarker

Hierarquia: object → PdfMarker

Construtores​

PdfMarker(RestPkiClient)​

public PdfMarker(RestPkiClient client)

Parâmetros

NomeTipoDescrição
clientRestPkiClient

Propriedades​

AbortIfSigned​

public bool AbortIfSigned { get; set; }

Retorno

bool


ForceBlobResult​

public bool ForceBlobResult { get; set; }

Retorno

bool


Marks​

public List<PdfMark> Marks { get; set; }

Retorno

List<PdfMark>


MeasurementUnits​

public PadesMeasurementUnits MeasurementUnits { get; set; }

Retorno

PadesMeasurementUnits


PageOptimization​

public PadesPageOptimization PageOptimization { get; set; }

Retorno

PadesPageOptimization


PreserveSignaturesVisualRepresentation​

public bool PreserveSignaturesVisualRepresentation { get; set; }

Retorno

bool


Métodos​

Apply()​

public FileResult Apply()

Retorno

FileResult


ApplyAsync()​

public Task<FileResult> ApplyAsync()

Retorno

Task<FileResult>


SetFile(BlobReference)​

Sets the PDf from a file previously uploaded with one of the RestPkiClient.UploadFile methods

public void SetFile(BlobReference fileBlob)

Parâmetros

NomeTipoDescrição
fileBlobBlobReference

SetFile(byte[])​

Sets the PDF via a byte array

public void SetFile(byte[] content)

Parâmetros

NomeTipoDescrição
contentbyte[]The byte array representing the PDF file

SetFile(FileResult)​

Sets the PDf from a file result from a previous call to Rest PKI

public void SetFile(FileResult fileResult)

Parâmetros

NomeTipoDescrição
fileResultFileResult

SetFile(Stream)​

Sets the PDF via a stream object

public void SetFile(Stream stream)

Parâmetros

NomeTipoDescrição
streamStreamThe stream representing the PDF

SetFile(string)​

Sets the PDF via a file path string

public void SetFile(string path)

Parâmetros

NomeTipoDescrição
pathstringThe path where the file will be found

Exceções

TipoCondição
FileNotFoundExceptionIn case a file cannot be found with the given path string

Membros herdados​

GetType(), MemberwiseClone(), ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode()

Ver em Markdown