[xep-support] Filetypes for Background Images

From: Mark Gabriel <markg@limehouse.co.uk>
Date: Thu Jan 13 2005 - 04:02:31 PST

I am trying to add a background image to a block with a coloured background
with XEP 4.1

I want the image to have a part which is 50% white (semitransparent) so that
the background colour of the block will show through.

 

When using an SVG the semitransparent white just appears as white.

 

If I try a PDF I get an error:

 

    (sequence [master-reference two-col-landscape]

      (flow [11])

      (static-content
[11]|right-edge||right-header|java.lang.ClassCastException

        at
com.renderx.util.SeekableByteArrayInputStream.getFilePointer(Unknown Source)

        at com.renderx.pdflib.parser.Lexer.skipEndl(Unknown Source)

        at com.renderx.pdflib.parser.Lexer.readTillTerminal(Unknown Source)

        at com.renderx.pdflib.parser.Lexer.nextToken(Unknown Source)

        at com.renderx.pdflib.parser.ElementParser.parse(Unknown Source)

        at com.renderx.pdflib.parser.XRefTable.readCrossTables(Unknown
Source)

        at com.renderx.pdflib.parser.XRefTable.<init>(Unknown Source)

        at com.renderx.pdflib.parser.PDFInstance.init(Unknown Source)

        at com.renderx.pdflib.parser.PDFInstance.parse(Unknown Source)

        at com.renderx.pdflib.parser.PDFInstance.parse(Unknown Source)

        at com.renderx.graphics.ImageFactory.makeImage(Unknown Source)

        at com.renderx.xep.cmp.ImageFactory.makeImage(Unknown Source)

        at com.renderx.xep.cmp.ImageFactory.makeImage(Unknown Source)

        at com.renderx.xep.fmt.BPB.<init>(Unknown Source)

        at com.renderx.xep.fmt.BPB$Block.<init>(Unknown Source)

        at com.renderx.xep.fmt.MTF.newBpb(Unknown Source)

        at com.renderx.xep.fmt.MTF.bArea(Unknown Source)

        at com.renderx.xep.fmt.MTF.ibArea(Unknown Source)

        at com.renderx.xep.fmt.MTF.process(Unknown Source)

        at com.renderx.xep.cmp.Item$Block.pass(Unknown Source)

        at com.renderx.xep.fmt.MTF.fmt(Unknown Source)

        at com.renderx.xep.fmt.BkMaker.mkStream(Unknown Source)

        at com.renderx.xep.fmt.BkMaker.mkStatic(Unknown Source)

        at com.renderx.xep.fmt.BkMaker.mkBook(Unknown Source)

        at
com.renderx.xep.FormatterCore$ContentHandlerDriver.endDocument(Unknown
Source)

        at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
Source)

        at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
Source)

        at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)

        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)

        at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown
Source)

        at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatc
h(Unknown Source)

        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)

        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)

        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

        at com.renderx.xep.FormatterCore.render(Unknown Source)

        at com.renderx.xep.FormatterImpl.render(Unknown Source)

        at com.renderx.xep.FormatterImpl.render(Unknown Source)

        at com.renderx.xep.FormatterImpl.render(Unknown Source)

        at
uk.co.client.class.publish.PDFWriter.writeXEP41PDF(PDFWriter.java:482
)

        at
uk.co.client.class.publish.PDFWriter.write(PDFWriter.java:124)

        at
uk.co.client.class.publish.PDFProcessor.publishReport(PDFProcessor.ja
va:116)

        at
uk.co.client.class.publish.AbstractProcessor.run(AbstractProcessor.ja
va:116)

 

        [error] Failed to create image
http://localhost:8080/publisherv2/templates/template_2/template_settings_5/r
esour

ces/top.pdf of type application/pdf

        [error] java.io.IOException: Broken PDF file!

      ))

 

But the same PDF in XEP 3.5.1 which we have just upgraded from it does not
error.

 

Many thanks

Mark

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Thu Jan 13 04:25:24 2005

This archive was generated by hypermail 2.1.8 : Thu Jan 13 2005 - 04:25:24 PST