Package system.windows.xps.packaging
Class XpsDocument
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.xps.packaging.XpsPartBase
-
- system.windows.xps.packaging.XpsDocument
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDisposable
public class XpsDocument extends XpsPartBase implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.Windows.Xps.Packaging.XpsDocument, ReachFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Xps.Packaging.XpsDocument
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: ReachFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: ReachFrameworkstatic java.lang.String
className
Qualified class name: System.Windows.Xps.Packaging.XpsDocumentstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description XpsDocument()
XpsDocument(java.lang.Object instance)
Internal constructor.XpsDocument(java.lang.String path, FileAccess packageAccess)
XpsDocument(java.lang.String path, FileAccess packageAccess, CompressionOption compressionOption)
XpsDocument(Package _package)
XpsDocument(Package _package, CompressionOption compressionOption)
XpsDocument(Package _package, CompressionOption compressionOption, java.lang.String path)
-
Method Summary
-
Methods inherited from class system.windows.xps.packaging.XpsPartBase
getUri, setUri
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IDisposable
Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: ReachFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: ReachFramework- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Xps.Packaging.XpsDocument- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XpsDocument
public XpsDocument(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
XpsDocument
public XpsDocument() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption, java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, UnreachableException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
CultureNotFoundException
UnreachableException
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, CultureNotFoundException, UnreachableException
-
XpsDocument
public XpsDocument(Package _package) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, FormatException, CultureNotFoundException, UnreachableException, OutOfMemoryException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess, CompressionOption compressionOption) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, UnreachableException, OutOfMemoryException, UriFormatException, ObjectDisposedException, IOException, InvalidDataException, XmlException, FileFormatException, RankException, ArrayTypeMismatchException, KeyNotFoundException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
CultureNotFoundException
UnreachableException
OutOfMemoryException
UriFormatException
ObjectDisposedException
IOException
InvalidDataException
XmlException
FileFormatException
RankException
ArrayTypeMismatchException
KeyNotFoundException
UnauthorizedAccessException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, CultureNotFoundException, UnreachableException, OutOfMemoryException, NotSupportedException, InvalidDataException, ObjectDisposedException, XmlException, FileFormatException, IOException, KeyNotFoundException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
FormatException
CultureNotFoundException
UnreachableException
OutOfMemoryException
NotSupportedException
InvalidDataException
ObjectDisposedException
XmlException
FileFormatException
IOException
KeyNotFoundException
UnauthorizedAccessException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDisposable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classXpsPartBase
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDisposable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classXpsPartBase
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDisposable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classXpsPartBase
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDisposable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classXpsPartBase
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classXpsPartBase
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDisposable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classXpsPartBase
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static XpsDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoXpsDocument
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
XpsDocument
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetFixedDocumentSequence
public FixedDocumentSequence GetFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XpsPackagingException, IOException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, XamlSchemaException, NotImplementedException, XamlException, XamlParseException, InvalidEnumArgumentException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XpsPackagingException
IOException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
UnreachableException
XamlSchemaException
NotImplementedException
XamlException
XamlParseException
InvalidEnumArgumentException
InvalidCastException
-
AddFixedDocumentSequence
public IXpsFixedDocumentSequenceWriter AddFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, XpsPackagingException, IOException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, FormatException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
XpsPackagingException
IOException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
UnreachableException
FormatException
KeyNotFoundException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id, boolean testIsSignable) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, FormatException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
OutOfMemoryException
FormatException
IOException
InvalidDataException
KeyNotFoundException
XpsPackagingException
FileFormatException
XmlException
CryptographicException
CryptographicUnexpectedOperationException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, FormatException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
OutOfMemoryException
FormatException
IOException
InvalidDataException
KeyNotFoundException
XpsPackagingException
FileFormatException
XmlException
CryptographicException
CryptographicUnexpectedOperationException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, FormatException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
IOException
InvalidDataException
KeyNotFoundException
XpsPackagingException
FileFormatException
XmlException
CryptographicException
FormatException
CryptographicUnexpectedOperationException
-
AddThumbnail
public XpsThumbnail AddThumbnail(XpsImageType imageType) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, InvalidDataException, OutOfMemoryException, XpsPackagingException, KeyNotFoundException, FormatException, XmlException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
IOException
InvalidDataException
OutOfMemoryException
XpsPackagingException
KeyNotFoundException
FormatException
XmlException
-
CreateXpsDocumentWriter
public static XpsDocumentWriter CreateXpsDocumentWriter(XpsDocument xpsDocument) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, IOException, ArgumentNullException, FileFormatException, ArgumentOutOfRangeException, InvalidOperationException, XmlException, NotSupportedException, KeyNotFoundException, PlatformNotSupportedException, IndexOutOfRangeException
-
RemoveSignature
public void RemoveSignature(XpsDigitalSignature signature) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NullReferenceException, IOException, FileFormatException, OutOfMemoryException, XmlException, KeyNotFoundException, InvalidDataException, XpsPackagingException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
NullReferenceException
IOException
FileFormatException
OutOfMemoryException
XmlException
KeyNotFoundException
InvalidDataException
XpsPackagingException
CryptographicException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
getIsReader
public boolean getIsReader() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getIsSignable
public boolean getIsSignable() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, KeyNotFoundException, XpsPackagingException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
IOException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
KeyNotFoundException
XpsPackagingException
-
getIsWriter
public boolean getIsWriter() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
getCoreDocumentProperties
public PackageProperties getCoreDocumentProperties() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, FileFormatException, OutOfMemoryException, XmlException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
IOException
FileFormatException
OutOfMemoryException
XmlException
-
getFixedDocumentSequenceReader
public IXpsFixedDocumentSequenceReader getFixedDocumentSequenceReader() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
IOException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
UnreachableException
-
getThumbnail
public XpsThumbnail getThumbnail() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, IOException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
IOException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
-
setThumbnail
public void setThumbnail(XpsThumbnail Thumbnail) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
-