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=9.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=9.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=9.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, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, UnreachableException, UriFormatException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
NullReferenceException
OutOfMemoryException
ExternalException
InvalidOperationException
CultureNotFoundException
UnreachableException
UriFormatException
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, FormatException, NotSupportedException, UnreachableException, OutOfMemoryException, UriFormatException
-
XpsDocument
public XpsDocument(Package _package) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, FormatException, NotSupportedException, CultureNotFoundException, UnreachableException, OutOfMemoryException, UriFormatException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess, CompressionOption compressionOption) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, UnreachableException, UriFormatException, OutOfMemoryException, ObjectDisposedException, IOException, InvalidDataException, FormatException, XmlException, FileFormatException, RankException, ArrayTypeMismatchException, UnauthorizedAccessException, KeyNotFoundException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
CultureNotFoundException
InvalidOperationException
UnreachableException
UriFormatException
OutOfMemoryException
ObjectDisposedException
IOException
InvalidDataException
FormatException
XmlException
FileFormatException
RankException
ArrayTypeMismatchException
UnauthorizedAccessException
KeyNotFoundException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException, CultureNotFoundException, UnreachableException, OutOfMemoryException, InvalidOperationException, UriFormatException, InvalidDataException, ObjectDisposedException, XmlException, FileFormatException, IOException, KeyNotFoundException, UnauthorizedAccessException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
NotSupportedException
CultureNotFoundException
UnreachableException
OutOfMemoryException
InvalidOperationException
UriFormatException
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, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XpsPackagingException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, UriFormatException, UnreachableException, IOException, FileFormatException, XmlException, InvalidDataException, XamlSchemaException, NotImplementedException, XamlException, XamlParseException, InvalidEnumArgumentException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
XpsPackagingException
PlatformNotSupportedException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
ArgumentNullException
UriFormatException
UnreachableException
IOException
FileFormatException
XmlException
InvalidDataException
XamlSchemaException
NotImplementedException
XamlException
XamlParseException
InvalidEnumArgumentException
InvalidCastException
-
AddFixedDocumentSequence
public IXpsFixedDocumentSequenceWriter AddFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XpsPackagingException, IOException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, NullReferenceException, FormatException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
XpsPackagingException
IOException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
UnreachableException
NullReferenceException
FormatException
KeyNotFoundException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id, boolean testIsSignable) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
IndexOutOfRangeException
ArrayTypeMismatchException
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, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
PlatformNotSupportedException
ArgumentNullException
IndexOutOfRangeException
ArrayTypeMismatchException
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, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, InvalidDataException, IndexOutOfRangeException, KeyNotFoundException, XpsPackagingException, PlatformNotSupportedException, FileFormatException, XmlException, CryptographicException, FormatException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
IOException
ArgumentNullException
InvalidDataException
IndexOutOfRangeException
KeyNotFoundException
XpsPackagingException
PlatformNotSupportedException
FileFormatException
XmlException
CryptographicException
FormatException
CryptographicUnexpectedOperationException
-
AddThumbnail
public XpsThumbnail AddThumbnail(XpsImageType imageType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, InvalidDataException, OutOfMemoryException, XpsPackagingException, PlatformNotSupportedException, KeyNotFoundException, FormatException, XmlException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
IOException
ArgumentNullException
IndexOutOfRangeException
InvalidDataException
OutOfMemoryException
XpsPackagingException
PlatformNotSupportedException
KeyNotFoundException
FormatException
XmlException
-
CreateXpsDocumentWriter
public static XpsDocumentWriter CreateXpsDocumentWriter(XpsDocument xpsDocument) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, IOException, ArgumentNullException, FileFormatException, ArgumentOutOfRangeException, InvalidOperationException, XmlException, NotSupportedException, PlatformNotSupportedException, KeyNotFoundException, IndexOutOfRangeException
-
RemoveSignature
public void RemoveSignature(XpsDigitalSignature signature) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, NullReferenceException, PlatformNotSupportedException, IndexOutOfRangeException, IOException, ArgumentNullException, FileFormatException, OutOfMemoryException, XmlException, KeyNotFoundException, InvalidDataException, XpsPackagingException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
NullReferenceException
PlatformNotSupportedException
IndexOutOfRangeException
IOException
ArgumentNullException
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, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
getIsSignable
public boolean getIsSignable() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, PlatformNotSupportedException, KeyNotFoundException, XpsPackagingException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
IOException
ArgumentNullException
IndexOutOfRangeException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
PlatformNotSupportedException
KeyNotFoundException
XpsPackagingException
-
getIsWriter
public boolean getIsWriter() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
getCoreDocumentProperties
public PackageProperties getCoreDocumentProperties() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, IOException, ArgumentNullException, FileFormatException, OutOfMemoryException, XmlException
-
getFixedDocumentSequenceReader
public IXpsFixedDocumentSequenceReader getFixedDocumentSequenceReader() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
IOException
ArgumentNullException
IndexOutOfRangeException
PlatformNotSupportedException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
UnreachableException
NullReferenceException
-
getThumbnail
public XpsThumbnail getThumbnail() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
IOException
ArgumentNullException
IndexOutOfRangeException
FileFormatException
XmlException
InvalidDataException
OutOfMemoryException
PlatformNotSupportedException
-
setThumbnail
public void setThumbnail(XpsThumbnail Thumbnail) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ObjectDisposedException
-
-