Print Page | Close Window

Problem with Brushes being printed black

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2183
Printed Date: 26 Jun 25 at 12:45PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem with Brushes being printed black
Posted By: pli
Subject: Problem with Brushes being printed black
Date Posted: 08 Mar 12 at 9:50AM
We had an old Printer-Interface where we had to replace the underlying "print-engine", but had to preserve the interface in order to not change all the places where we printet. In this proces we wrote a new "print-engine" where each "print-command" ("printing" text or graphics) simply draws directly to a Metafile, and once we finish printing a "page" this page is added to a PDF generated by Quick PDF Library (QPL). In effect our new print engine is (thanks to QPL) gennerating a PDF-file which we send to the physical printer (also using QPL). All this is working like a charm.
 
One of our "commands" is able to draw a rectangle filled with a brush. Using version 8.13 we would get an error in Acrobat reader when we tried to open the file generate by QPL (saying something along the lines that the PDF contained some errors, and we should contact those who generated the PDF). I then updated to the beta version of 8.14 and now our rectangle filled with the brush showed fine on the screen (when previewing the print in Acrobat), and if we printet it using Acrobat it also printet fine. However if we printed it using QPL (simply using: "qPDF.PrintDocument(PrinterNavn, 0, 0, 0);") the rectangle is printet fully black (not using the brush as it shoud).
 
If you print the following Test-Print PDF (generated by QPL 8.14 beta) using Acrobat, the square will print just fine (using the brush as it should), however if you use QPL to print it using the PrintDocument command the square will be pitch black:
http://www.liljendal.dk/files/tmp2012/LG_4A44.zip - www.liljendal.dk/files/tmp2012/LG_4A44.zip
 
Pelle



Replies:
Posted By: AndrewC
Date Posted: 12 Mar 12 at 1:09PM

The metafile causes QPL to generate a PDF pattern which is correct.  Unfortunately the QPL renderer doens't support the rendering of PDF Patterns.  It is a feature we are in the process of adding to the QPL 8.14 renderer.  Firstly we are adding transparency and shading support and then pattern support is next.

Andrew.


Posted By: pli
Date Posted: 12 Mar 12 at 1:14PM
Good to hear it is expected, somewhere down the (hopefully not too long) pipeline Smile



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk