Class PDFInfo (0.3.0)

public final class PDFInfo extends GeneratedMessage implements PDFInfoOrBuilder

Information about the PDF file structure. See https://developers.virustotal.com/reference/pdf_info

Protobuf type google.backstory.PDFInfo

Implements

PDFInfoOrBuilder

Static Fields

ACROFORM_FIELD_NUMBER

public static final int ACROFORM_FIELD_NUMBER
Field Value
Type Description
int

AUTOACTION_FIELD_NUMBER

public static final int AUTOACTION_FIELD_NUMBER
Field Value
Type Description
int

EMBEDDED_FILE_FIELD_NUMBER

public static final int EMBEDDED_FILE_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTED_FIELD_NUMBER

public static final int ENCRYPTED_FIELD_NUMBER
Field Value
Type Description
int

ENDOBJ_COUNT_FIELD_NUMBER

public static final int ENDOBJ_COUNT_FIELD_NUMBER
Field Value
Type Description
int

ENDSTREAM_COUNT_FIELD_NUMBER

public static final int ENDSTREAM_COUNT_FIELD_NUMBER
Field Value
Type Description
int

FLASH_FIELD_NUMBER

public static final int FLASH_FIELD_NUMBER
Field Value
Type Description
int

HEADER_FIELD_NUMBER

public static final int HEADER_FIELD_NUMBER
Field Value
Type Description
int

JAVASCRIPT_FIELD_NUMBER

public static final int JAVASCRIPT_FIELD_NUMBER
Field Value
Type Description
int

JBIG2_COMPRESSION_FIELD_NUMBER

public static final int JBIG2_COMPRESSION_FIELD_NUMBER
Field Value
Type Description
int

JS_FIELD_NUMBER

public static final int JS_FIELD_NUMBER
Field Value
Type Description
int

LAUNCH_ACTION_COUNT_FIELD_NUMBER

public static final int LAUNCH_ACTION_COUNT_FIELD_NUMBER
Field Value
Type Description
int

OBJECT_STREAM_COUNT_FIELD_NUMBER

public static final int OBJECT_STREAM_COUNT_FIELD_NUMBER
Field Value
Type Description
int

OBJ_COUNT_FIELD_NUMBER

public static final int OBJ_COUNT_FIELD_NUMBER
Field Value
Type Description
int

OPENACTION_FIELD_NUMBER

public static final int OPENACTION_FIELD_NUMBER
Field Value
Type Description
int

PAGE_COUNT_FIELD_NUMBER

public static final int PAGE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

STARTXREF_FIELD_NUMBER

public static final int STARTXREF_FIELD_NUMBER
Field Value
Type Description
int

STREAM_COUNT_FIELD_NUMBER

public static final int STREAM_COUNT_FIELD_NUMBER
Field Value
Type Description
int

SUSPICIOUS_COLORS_FIELD_NUMBER

public static final int SUSPICIOUS_COLORS_FIELD_NUMBER
Field Value
Type Description
int

TRAILER_FIELD_NUMBER

public static final int TRAILER_FIELD_NUMBER
Field Value
Type Description
int

XFA_FIELD_NUMBER

public static final int XFA_FIELD_NUMBER
Field Value
Type Description
int

XREF_FIELD_NUMBER

public static final int XREF_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PDFInfo getDefaultInstance()
Returns
Type Description
PDFInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PDFInfo.Builder newBuilder()
Returns
Type Description
PDFInfo.Builder

newBuilder(PDFInfo prototype)

public static PDFInfo.Builder newBuilder(PDFInfo prototype)
Parameter
Name Description
prototype PDFInfo
Returns
Type Description
PDFInfo.Builder

parseDelimitedFrom(InputStream input)

public static PDFInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PDFInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PDFInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PDFInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PDFInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PDFInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PDFInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PDFInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PDFInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PDFInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PDFInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PDFInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PDFInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PDFInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PDFInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PDFInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PDFInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PDFInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PDFInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PDFInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PDFInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PDFInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PDFInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PDFInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PDFInfo> parser()
Returns
Type Description
Parser<PDFInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAcroform()

public long getAcroform()

Number of /AcroForm tags found in the PDF.

int64 acroform = 7;

Returns
Type Description
long

The acroform.

getAutoaction()

public long getAutoaction()

Number of /AA tags found in the PDF.

int64 autoaction = 8;

Returns
Type Description
long

The autoaction.

getDefaultInstanceForType()

public PDFInfo getDefaultInstanceForType()
Returns
Type Description
PDFInfo

getEmbeddedFile()

public long getEmbeddedFile()

Number of /EmbeddedFile tags found in the PDF.

int64 embedded_file = 9;

Returns
Type Description
long

The embeddedFile.

getEncrypted()

public long getEncrypted()

Whether the document is encrypted or not. This is defined by the /Encrypt tag.

int64 encrypted = 10;

Returns
Type Description
long

The encrypted.

getEndobjCount()

public long getEndobjCount()

Number of object definitions (endobj keyword).

int64 endobj_count = 5;

Returns
Type Description
long

The endobjCount.

getEndstreamCount()

public long getEndstreamCount()

Number of defined stream objects (stream keyword).

int64 endstream_count = 14;

Returns
Type Description
long

The endstreamCount.

getFlash()

public long getFlash()

Number of /RichMedia tags found in the PDF.

int64 flash = 11;

Returns
Type Description
long

The flash.

getHeader()

public String getHeader()

PDF version.

string header = 6;

Returns
Type Description
String

The header.

getHeaderBytes()

public ByteString getHeaderBytes()

PDF version.

string header = 6;

Returns
Type Description
ByteString

The bytes for header.

getJavascript()

public long getJavascript()

Number of /JavaScript tags found in the PDF file. Should be the same as the js field in normal scenarios.

int64 javascript = 2;

Returns
Type Description
long

The javascript.

getJbig2Compression()

public long getJbig2Compression()

Number of /JBIG2Decode tags found in the PDF.

int64 jbig2_compression = 12;

Returns
Type Description
long

The jbig2Compression.

getJs()

public long getJs()

Number of /JS tags found in the PDF file. Should be the same as javascript field in normal scenarios.

int64 js = 1;

Returns
Type Description
long

The js.

getLaunchActionCount()

public long getLaunchActionCount()

Number of /Launch tags found in the PDF file.

int64 launch_action_count = 3;

Returns
Type Description
long

The launchActionCount.

getObjCount()

public long getObjCount()

Number of objects definitions (obj keyword).

int64 obj_count = 13;

Returns
Type Description
long

The objCount.

getObjectStreamCount()

public long getObjectStreamCount()

Number of object streams.

int64 object_stream_count = 4;

Returns
Type Description
long

The objectStreamCount.

getOpenaction()

public long getOpenaction()

Number of /OpenAction tags found in the PDF.

int64 openaction = 17;

Returns
Type Description
long

The openaction.

getPageCount()

public long getPageCount()

Number of pages in the PDF.

int64 page_count = 15;

Returns
Type Description
long

The pageCount.

getParserForType()

public Parser<PDFInfo> getParserForType()
Returns
Type Description
Parser<PDFInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartxref()

public long getStartxref()

Number of startxref keywords in the PDF.

int64 startxref = 18;

Returns
Type Description
long

The startxref.

getStreamCount()

public long getStreamCount()

Number of defined stream objects (stream keyword).

int64 stream_count = 16;

Returns
Type Description
long

The streamCount.

getSuspiciousColors()

public long getSuspiciousColors()

Number of colors expressed with more than 3 bytes (CVE-2009-3459).

int64 suspicious_colors = 19;

Returns
Type Description
long

The suspiciousColors.

getTrailer()

public long getTrailer()

Number of trailer keywords in the PDF.

int64 trailer = 20;

Returns
Type Description
long

The trailer.

getXfa()

public long getXfa()

Number of \XFA tags found in the PDF.

int64 xfa = 21;

Returns
Type Description
long

The xfa.

getXref()

public long getXref()

Number of xref keywords in the PDF.

int64 xref = 22;

Returns
Type Description
long

The xref.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PDFInfo.Builder newBuilderForType()
Returns
Type Description
PDFInfo.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected PDFInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PDFInfo.Builder
Overrides

toBuilder()

public PDFInfo.Builder toBuilder()
Returns
Type Description
PDFInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException