Top Deprecated By Reference
Openhtmltopdf 1.0.10

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

Map of CSS property names to CSSValue instance assigned to it.
com.openhtmltopdf.context.StyleReference.getCascadedPropertiesMap
(Element
The DOM Element for which to find properties
e
)

com.openhtmltopdf.css.constants.ValueConstants.isNumber(short cssPrimitiveType)

Only used by the broken DOMInspector.

com.openhtmltopdf.extend.HttpStreamFactory

Use FSStreamFactory instead.

Returns:

the list of inverse transforms to undo the effect of this transform
com.openhtmltopdf.extend.OutputDevice.pushTransforms
(List<AffineTransform> transforms)

com.openhtmltopdf.extend.TextRenderer.setSmoothingLevel(int
no-op
level
)

no-op, will be removed in a future release. Anti-aliasing is now controlled via the smoothing threshhold.

com.openhtmltopdf.layout.Layer.find(CssContext cssCtx, int absX, int absY, List<Layer> layers, boolean findAnonymous)

com.openhtmltopdf.layout.Layer.find(CssContext cssCtx, int absX, int absY, boolean findAnonymous)

Returns:

The uac value (user agent).
com.openhtmltopdf.layout.SharedContext.getUac
()

Use getUserAgentCallback instead for clearer code.

com.openhtmltopdf.layout.SharedContext.setFontMapping(String
The new font name
name
,
Font
The actual Font to map
font
)

Definitely shouldn't use this method as it only applies for Java2D font resolver. Instead call getFontResolver, cast and use font adding methods on that.

com.openhtmltopdf.pdfboxout.PdfBoxFontResolver.addFont(File fontFile, final String fontFamilyNameOverride, final Integer fontWeightOverride, final IdentValue fontStyleOverride, final boolean subset)

Use addFont(File, String, Integer, IdentValue, boolean, FontGroup)

com.openhtmltopdf.pdfboxout.PdfBoxFontResolver.addFontCollection(FSSupplier<InputStream> supplier, final String fontFamilyNameOverride, final Integer fontWeightOverride, final IdentValue fontStyleOverride, final boolean subset)

Use addFontCollection(FSSupplier, String, Integer, IdentValue, boolean, FontGroup)

com.openhtmltopdf.pdfboxout.PdfBoxFontResolver.addFontCollection(File file, final String fontFamilyNameOverride, final Integer fontWeightOverride, final IdentValue fontStyleOverride, final boolean subset)

Use addFontCollection(File, String, Integer, IdentValue, boolean, FontGroup)

com.openhtmltopdf.pdfboxout.PdfBoxLinkManager

Use fast link manager instead.

com.openhtmltopdf.pdfboxout.PdfBoxRenderer.createPDF(OutputStream os, boolean finish)

Use builder to set output stream.

com.openhtmltopdf.pdfboxout.PdfBoxRenderer.createPDF(OutputStream os, boolean finish, int initialPageNo)

Use builder to set output stream. NOTE: Caller is responsible for cleaning up the OutputStream.

com.openhtmltopdf.pdfboxout.PdfBoxRenderer.writeNextDocument(int initialPageNo)

Doubt this still works as untested.

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description
com.openhtmltopdf.pdfboxout.PdfBoxSlowOutputDevice._linkManager

PdfBoxLinkManager is deprecated or references (maybe indirectly) at least one deprecated element.