Print Page | Close Window

Draw Text Get Flipped

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=3508
Printed Date: 07 May 24 at 1:39PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Draw Text Get Flipped
Posted By: SalmaBegum
Subject: Draw Text Get Flipped
Date Posted: 30 Sep 17 at 7:10AM
Please, have a look at the 2 pdf file (link below), one is source another is output, when i use objPDF.DrawText(450.584, 43.453, "I love to test"), and check the output file, the text get vertically flipped? i don't found any function that can change the text orientation and also why by default text get flipped?

Not only text, even when i tried to use draw image, it also flipped.

Here is the links for the files:

https://www.dropbox.com/s/d5i0ekn91zq7frd/Source.pdf?dl=0
https://www.dropbox.com/s/ycp16e7tgp6u6o9/Output.pdf?dl=0
https://www.dropbox.com/s/9stmnuycajg5wnr/Output.png?dl=0

please sir, leave a reply asap

thanks in advance



Replies:
Posted By: Ingo
Date Posted: 30 Sep 17 at 7:53PM
Hi Salma,

this will have to do with rotated syntax in the pdf source.
Before you're using the drawing functionalities.
You should set a "CombineContentStreams":
http://www.debenu.com/docs/pdf_library_reference/CombineContentStreams.php
and a "NormalizePage":
http://www.debenu.com/docs/pdf_library_reference/NormalizePage.php
Then you'll get what you want ;-)

Cheers and welcome here,
Ingo

BTW: Here's nothing ASAP 'cause this is a user-user-forum but here are friendly, helpful users ;-)  


-------------
Cheers,
Ingo



Posted By: SalmaBegum
Date Posted: 01 Oct 17 at 7:11AM
Originally posted by Ingo Ingo wrote:

Hi Salma,
BTW: Here's nothing ASAP 'cause this is a user-user-forum but here are friendly, helpful users ;-)  



hi, first of all thanks a lot for being so helpful and reply. And Then i am very sorry for the "ASAP" words, as i was stuck and on hold that's why i used that term.

btw. sir, i have another question how do i know in prior to processing a PDF file that it has something wrong in it? so, i can call the combine and normalize command before processing? or is it safe to run that command on all PDF before any kind of processing?

once again thanks

best regards


Posted By: Ingo
Date Posted: 01 Oct 17 at 10:31PM
If you want to draw anything onto a pdf-page you should do at least the NormalizePage first.
If you want to extract anything from a pdf-page you should  do at least the CombineContentStreams first.



-------------
Cheers,
Ingo




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