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=4.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=4.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=4.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) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, SecurityException, UriFormatException, OutOfMemoryException
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
FormatException
SecurityException
MemberAccessException
NullReferenceException
UriFormatException
OutOfMemoryException
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption, java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, SecurityException, MemberAccessException, NullReferenceException, ConfigurationException, UriFormatException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
SecurityException
MemberAccessException
NullReferenceException
ConfigurationException
UriFormatException
OutOfMemoryException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, SecurityException, UriFormatException, OutOfMemoryException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidCastException, NotSupportedException, FileFormatException, FormatException, XmlException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
IndexOutOfRangeException
SecurityException
UriFormatException
OutOfMemoryException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
InvalidCastException
NotSupportedException
FileFormatException
FormatException
XmlException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, InvalidCastException, FileFormatException, KeyNotFoundException, XmlException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
ArgumentOutOfRangeException
FormatException
SecurityException
MemberAccessException
NullReferenceException
UriFormatException
OutOfMemoryException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
InvalidCastException
FileFormatException
KeyNotFoundException
XmlException
-
-
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, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XpsPackagingException, IOException, FileFormatException, XmlException, InvalidDataException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, NullReferenceException, XamlException, XamlParseException, OverflowException, InvalidCastException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XpsPackagingException
IOException
FileFormatException
XmlException
InvalidDataException
UriFormatException
IndexOutOfRangeException
OutOfMemoryException
NotSupportedException
NullReferenceException
XamlException
XamlParseException
OverflowException
InvalidCastException
-
AddFixedDocumentSequence
public IXpsFixedDocumentSequenceWriter AddFixedDocumentSequence() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XpsPackagingException, IOException, FileFormatException, XmlException, InvalidDataException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, KeyNotFoundException, NotSupportedException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
XpsPackagingException
IOException
FileFormatException
XmlException
InvalidDataException
UriFormatException
IndexOutOfRangeException
OutOfMemoryException
KeyNotFoundException
NotSupportedException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, NotSupportedException, FileFormatException, XmlException, CryptographicException, AccessViolationException, SecurityException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
FormatException
MissingManifestResourceException
NotImplementedException
InvalidOperationException
ArgumentOutOfRangeException
IOException
InvalidDataException
KeyNotFoundException
XpsPackagingException
NotSupportedException
FileFormatException
XmlException
CryptographicException
AccessViolationException
SecurityException
CryptographicUnexpectedOperationException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, FormatException, AccessViolationException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
OutOfMemoryException
IndexOutOfRangeException
MissingManifestResourceException
NotSupportedException
SecurityException
IOException
InvalidDataException
KeyNotFoundException
XpsPackagingException
FileFormatException
XmlException
CryptographicException
FormatException
AccessViolationException
CryptographicUnexpectedOperationException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id, boolean testIsSignable) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, FormatException, AccessViolationException, CryptographicUnexpectedOperationException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
InvalidOperationException
OutOfMemoryException
IndexOutOfRangeException
MissingManifestResourceException
NotSupportedException
SecurityException
IOException
InvalidDataException
KeyNotFoundException
XpsPackagingException
FileFormatException
XmlException
CryptographicException
FormatException
AccessViolationException
CryptographicUnexpectedOperationException
-
AddThumbnail
public XpsThumbnail AddThumbnail(XpsImageType imageType) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, IOException, InvalidDataException, IndexOutOfRangeException, XpsPackagingException, NotSupportedException, KeyNotFoundException, XmlException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
ArgumentOutOfRangeException
FormatException
MissingManifestResourceException
NotImplementedException
AbandonedMutexException
IOException
InvalidDataException
IndexOutOfRangeException
XpsPackagingException
NotSupportedException
KeyNotFoundException
XmlException
-
CreateXpsDocumentWriter
public static XpsDocumentWriter CreateXpsDocumentWriter(XpsDocument xpsDocument) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ObjectDisposedException, IOException, ArgumentException, FileFormatException, ArgumentOutOfRangeException, FormatException, KeyNotFoundException, AbandonedMutexException
-
RemoveSignature
public void RemoveSignature(XpsDigitalSignature signature) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, NullReferenceException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, IOException, FileFormatException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, XmlException, KeyNotFoundException, InvalidDataException, XpsPackagingException, CryptographicException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
NullReferenceException
FormatException
MissingManifestResourceException
NotImplementedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
IOException
FileFormatException
IndexOutOfRangeException
CultureNotFoundException
NotSupportedException
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, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, InvalidOperationException
-
getIsSignable
public boolean getIsSignable() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, IOException, ArgumentException, FileFormatException, XmlException, InvalidDataException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException, KeyNotFoundException, XpsPackagingException, NotSupportedException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
IOException
ArgumentException
FileFormatException
XmlException
InvalidDataException
ArgumentOutOfRangeException
IndexOutOfRangeException
OutOfMemoryException
KeyNotFoundException
XpsPackagingException
NotSupportedException
-
getIsWriter
public boolean getIsWriter() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ArgumentException, InvalidOperationException
-
getCoreDocumentProperties
public PackageProperties getCoreDocumentProperties() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, FileFormatException, KeyNotFoundException, NotSupportedException, XmlException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
FormatException
MissingManifestResourceException
NotImplementedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
SecurityException
UnauthorizedAccessException
IOException
FileFormatException
KeyNotFoundException
NotSupportedException
XmlException
-
getFixedDocumentSequenceReader
public IXpsFixedDocumentSequenceReader getFixedDocumentSequenceReader() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, IOException, ArgumentException, ArgumentOutOfRangeException, FileFormatException, XmlException, InvalidDataException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException
- Throws:
java.lang.Throwable
ObjectDisposedException
ArgumentNullException
MissingManifestResourceException
InvalidOperationException
IOException
ArgumentException
ArgumentOutOfRangeException
FileFormatException
XmlException
InvalidDataException
UriFormatException
IndexOutOfRangeException
OutOfMemoryException
-
getThumbnail
public XpsThumbnail getThumbnail() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, IOException, ArgumentException, FileFormatException, XmlException, InvalidDataException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException
-
setThumbnail
public void setThumbnail(XpsThumbnail Thumbnail) throws java.lang.Throwable, ObjectDisposedException
- Throws:
java.lang.Throwable
ObjectDisposedException
-
-