Print Page | Close Window

GDI/GDI+ rendering and transformations

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=3544
Printed Date: 20 Apr 24 at 7:57AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: GDI/GDI+ rendering and transformations
Posted By: pdfuserxx
Subject: GDI/GDI+ rendering and transformations
Date Posted: 06 Feb 18 at 7:43AM
Are there any known limitations when using using GDI/GDI+ to draw on pdf canvas obtained by calling GetCanvasDC.

 

I’m using GDI to generate PDF document, the code is as follows:

 

pdfLibrary.GetCanvasDC(..

 

..Paint on the canvas with GDI

 

 pdfLibrary.NewPageFromCanvasDC

 

int capturedPage = pdfLibrary.CapturePageEx(..produce vector graphics

 

pdfLibrary.SelectPage(currentPage + 1);

 

pdfLibrary.DrawCapturedPage(capturedPage,...

 

This works fine when all the elements have rotation 0 or. no transformations applied, but the output will be incorrect when elements are rotated or. GDI transformation is applied.

 




Replies:
Posted By: kevindebenu
Date Posted: 24 May 18 at 8:41AM
Hello pdfuserxx,

The EMF to PDF conversion code in Quick PDF Library is quite complex as there are many differences in the graphics APIs of GDI and the PDF side of things.

In general, only a subset of the GDI API is available. GDI+ is not supported.

It's sometimes difficult to make changes to the code as we don't want to negatively affect existing software using this functionality.

However the QPL team might be able to support changes to support transformations in a future version of QPL. Please post a few example commands that you use and we will run some tests to analyse the EMF commands and work out the corresponding PDF commands.

Regards,
Kevin




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