GetObjectPathNumber

Propriedades do documento, Extração de conteúdo

Descrição

Resolve um object path como pages[0]/MediaBox[2] e retorna a folha numérica como double, com um flag dizendo se a folha foi encontrada e é numérica

Sintaxe

Delphi

Function GetObjectPathNumber(Const Path: WideString; Out Found: Boolean): Double;

ActiveX

Function PDFlib::GetObjectPathNumber(Path As String, ByRef Found As Long) As Double

DLL

double DLGetObjectPathNumber(int InstanceID, const wchar_t* Path, int Var Found);
double DLGetObjectPathNumberA(int InstanceID, const char* Path, int Var Found);

Parâmetros

PathObject path na sintaxe aceita por GetObjectByPath
FoundTrue quando a folha resolvida é um número

Valores retornados

O valor numérico; 0 com Found False quando o path não existe ou não é numérico

Observações

Consultas a dicionários de página herdam atributos como MediaBox ou Resources dos nós /Parent de páginas quando a página em si não os carrega

Veja também

GetObjectByPath, GetObjectPathStream, GetObjectPathStreamLength