java.lang.Object
com.lowagie.text.xml.xmp.XmpWriter
- All Implemented Interfaces:
AutoCloseable
Deprecated.
With this class you can create an Xmp Stream that can be used for adding Metadata to a PDF Dictionary. Remark that
this class doesn't cover the complete XMP specification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.The about string that goes into the rdf:Description tags.protected charDeprecated.The end attribute.protected intDeprecated.You can add some extra space in the XMP packet; 1 unit in this variable represents 100 spaces and a newline.static final StringDeprecated.String used to fill the extra space.static final StringDeprecated.A possible charset for the XMP.static final StringDeprecated.A possible charset for the XMP.static final StringDeprecated.A possible charset for the XMP.static final StringDeprecated.A possible charset for the XMP.protected OutputStreamWriterDeprecated.The writer to which you can write bytes for the XMP stream.static final StringDeprecated.Processing Instruction required at the start of an XMP streamstatic final StringDeprecated.Processing Instruction required at the end of an XMP stream for XMP streams that are read onlystatic final StringDeprecated.Processing Instruction required at the end of an XMP stream for XMP streams that can be updated -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates an XmpWriter.XmpWriter(OutputStream os, PdfDictionary info, int PdfXConformance) Deprecated.XmpWriter(OutputStream os, String utfEncoding, int extraSpace) Deprecated.Creates an XmpWriter.XmpWriter(OutputStream os, Map info) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds an rdf:Description.voidaddRdfDescription(String xmlns, String content) Deprecated.Adds an rdf:Description.voidclose()Deprecated.Flushes and closes the XmpWriter.voidDeprecated.voidDeprecated.Sets the XMP to read-only
-
Field Details
-
UTF8
Deprecated.A possible charset for the XMP.- See Also:
-
UTF16
Deprecated.A possible charset for the XMP.- See Also:
-
UTF16BE
Deprecated.A possible charset for the XMP.- See Also:
-
UTF16LE
Deprecated.A possible charset for the XMP.- See Also:
-
EXTRASPACE
Deprecated.String used to fill the extra space.- See Also:
-
XPACKET_PI_BEGIN
Deprecated.Processing Instruction required at the start of an XMP stream- Since:
- iText 2.1.6
- See Also:
-
XPACKET_PI_END_W
Deprecated.Processing Instruction required at the end of an XMP stream for XMP streams that can be updated- Since:
- iText 2.1.6
- See Also:
-
XPACKET_PI_END_R
Deprecated.Processing Instruction required at the end of an XMP stream for XMP streams that are read only- Since:
- iText 2.1.6
- See Also:
-
extraSpace
protected int extraSpaceDeprecated.You can add some extra space in the XMP packet; 1 unit in this variable represents 100 spaces and a newline. -
writer
Deprecated.The writer to which you can write bytes for the XMP stream. -
about
Deprecated.The about string that goes into the rdf:Description tags. -
end
protected char endDeprecated.The end attribute.
-
-
Constructor Details
-
XmpWriter
Deprecated.Creates an XmpWriter.- Parameters:
os- output streamutfEncoding- utf encoding to be usedextraSpace- extra space- Throws:
IOException- on error
-
XmpWriter
Deprecated.Creates an XmpWriter.- Parameters:
os- output stream- Throws:
IOException- on error
-
XmpWriter
Deprecated.- Parameters:
os- output streaminfo-PdfDictionaryPdfXConformance- pdf conformance eg. valuesPdfWriter.PDFA1A,PdfWriter.PDFA1B- Throws:
IOException- on error
-
XmpWriter
Deprecated.- Parameters:
os- output streaminfo- map of info- Throws:
IOException- on error
-
-
Method Details
-
setReadOnly
public void setReadOnly()Deprecated.Sets the XMP to read-only -
setAbout
Deprecated.- Parameters:
about- The about to set.
-
addRdfDescription
Deprecated.Adds an rdf:Description.- Parameters:
xmlns- xml namespacecontent- content- Throws:
IOException- on error
-
addRdfDescription
Deprecated.Adds an rdf:Description.- Parameters:
s- xmp schema- Throws:
IOException- on error
-
close
Deprecated.Flushes and closes the XmpWriter.- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- on error
-