Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Draw Text Get Flipped
  FAQ FAQ  Forum Search   Register Register  Login Login

Draw Text Get Flipped

 Post Reply Post Reply
Author
Message
SalmaBegum View Drop Down
Team Player
Team Player
Avatar

Joined: 30 Sep 17
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote SalmaBegum Quote  Post ReplyReply Direct Link To This Post Topic: Draw Text Get Flipped
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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 ;-)  


Edited by Ingo - 30 Sep 17 at 7:55PM
Cheers,
Ingo

Back to Top
SalmaBegum View Drop Down
Team Player
Team Player
Avatar

Joined: 30 Sep 17
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote SalmaBegum Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store