@Override public boolean newPage() { throw new ODFConverterException( "internal error - do not call newPage directly" ); }
public void setListSymbol( String content, Font font, float lineHeight, boolean lineHeightProportional ) { // adjust chunk attributes like text rise // use StylableParagraph mechanism Chunk symbol = StylableParagraph.createAdjustedChunk( content, font, lineHeight, lineHeightProportional ); super.setListSymbol( symbol ); }
private void flushTable() { if ( layoutTable != null ) { // force calculate height because it may be zero // and nothing will be flushed layoutTable.calculateHeights( true ); try { super.add( layoutTable ); } catch ( DocumentException e ) { throw new ODFConverterException( e ); } } } }
public ElementVisitorForIText( OdfDocument odfDocument, OutputStream out, StyleEngineForIText styleEngine, PdfOptions options, Integer forcedPageCount ) { super( odfDocument, options.getExtractor(), out, null ); this.styleEngine = styleEngine; this.forcedPageCount = forcedPageCount; // this.options = options != null ? options : PDFViaITextOptions.create(); // Create document try { document = new StylableDocument( out, options.getConfiguration(), styleEngine ); } catch ( DocumentException e ) { throw new ODFConverterException( e ); } }
private void simulateText() { int res = 0; try { res = text.go( true ); } catch ( DocumentException e ) { throw new ODFConverterException( e ); } if ( ColumnText.hasMoreText( res ) ) { // text does not fit into current column // split it to a new column columnBreak(); } }
protected void doConvert( OdfDocument document, OutputStream out, Writer writer, T options ) throws ODFConverterException, IOException { ElementVisitorConverter visitor = null; visitor = createElementVisitorConverter( document, out, writer, options ); if ( visitor != null ) { try { document.getContentRoot().accept( visitor ); } catch ( Exception e ) { throw new ODFConverterException( e ); } visitor.save(); } }
throw new ODFConverterException( e );
throw new ODFConverterException( e );
throw new ODFConverterException( e );