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 - Mirrored text when add text to PDF 1.7
  FAQ FAQ  Forum Search   Register Register  Login Login

Mirrored text when add text to PDF 1.7

 Post Reply Post Reply
Author
Message
Quick PDF user_12 View Drop Down
Beginner
Beginner
Avatar

Joined: 14 Feb 17
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Quick PDF user_12 Quote  Post ReplyReply Direct Link To This Post Topic: Mirrored text when add text to PDF 1.7
    Posted: 14 Feb 17 at 10:59AM
Hello,

I have an issue with converting from PDF 1.7 saved in acrobat 8x.
I am user of Quick pdf ver 8, 10 and already 13 and the issue is the same in all of them. Text is mirrored so cannod be read.
When I convert PDF 1.4 saved in acrobat 5x everything is ok.
In ver 13 new PDF give 0 all the time. Cannot get proper value when page is rotated. This is a problem also.

Please find formula below:
procedure TForm1.Button12Click(Sender: TObject);
var wydawanie:boolean;
b:integer;
begin
wydawanie:=false;

pdflibrary1:=TDebenuPDFLibrary.Create;
if not boolean(pdflibrary1.UnlockKey(V13_Version_Key)) then showmessage('BAD Version QPDF');

pdflibrary1.LoadFromFile(extractfilepath(application.exename)+'PDF 1.7 (Acrobat 8.x).pdf','');
pdflibrary1.SetTextSize(12);
pdflibrary1.DrawRotatedText(20,60,90,rec.rITEM+', DATA WAZNOSCI: '+DOKWAZNYINFO.DATAW+', NUMER EGZ.:'+DOKWAZNYINFO.NUMERDOK_EGZEMP+', OBSZAR: '+DOKWAZNYINFO.LASTObszarprodukcyjny);
pdflibrary1.DrawRotatedText(32,60,90,'DATA ZATWIERDZENIA: '+DOKWAZNYINFO.DATAZAT+', ZATWIERDZONE PRZEZ: '+DOKWAZNYINFO.OSOBA+' .................');

label37.caption:=inttostr(pdflibrary1.PageRotation);    //WHY ALWAYS 0 for 1.5 and 1.7 PDF ?

if not WYDAWANIE then begin
pdflibrary1.SetTextSize(14);
pdflibrary1.DrawRotatedText(580,800,270,'SYMULACJA WYDRUKU ! DOKUMENT NIE PRZEZNACZONY NA PRODUKCJE !');
pdflibrary1.DrawText(10,10,'SYMULACJA WYDRUKU ! DOKUMENT NIE PRZEZNACZONY NA PRODUKCJE !');
pdflibrary1.DrawText(10,830,'SYMULACJA WYDRUKU ! DOKUMENT NIE PRZEZNACZONY NA PRODUKCJE !');
pdflibrary1.SetTextSize(12);
end;

for b:=1 to pdflibrary1.PageCount do begin
pdflibrary1.SelectPage(b);               
pdflibrary1.SetTextSize(12);
pdflibrary1.DrawRotatedText(20,60,90,rec.rITEM+', DATA WAZNOSCI: '+DOKWAZNYINFO.DATAW+', NUMER EGZ.:'+DOKWAZNYINFO.NUMERDOK_EGZEMP+', OBSZAR: '+DOKWAZNYINFO.LASTObszarprodukcyjny);
pdflibrary1.DrawRotatedText(32,60,90,'DATA ZATWIERDZENIA: '+DOKWAZNYINFO.DATAZAT+', ZATWIERDZONE PRZEZ: '+DOKWAZNYINFO.OSOBA+' .................');
if not WYDAWANIE then begin

pdflibrary1.SetTextSize(14);
pdflibrary1.DrawRotatedText(580,800,270,'SYMULACJA WYDRUKU ! DOKUMENT NIE PRZEZNACZONY NA PRODUKCJE !');
pdflibrary1.DrawText(10,10,'SYMULACJA WYDRUKU ! DOKUMENT NIE PRZEZNACZONY NA PRODUKCJE !');
pdflibrary1.DrawText(10,830,'SYMULACJA WYDRUKU ! DOKUMENT NIE PRZEZNACZONY NA PRODUKCJE !');
pdflibrary1.SetTextSize(12);
end;

end;

application.ProcessMessages;
if pdflibrary1.SaveToFile(extractfilepath(application.exename)+'PDF 1.7 (Acrobat 8.x).pdf') = 0 then begin
showmessage('Save error!');
end;

try
pdflibrary1.free;
except
end;


end;

Please tell me if I am doing smth wrong.
Regards

Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post Posted: 15 Feb 17 at 12:34AM
Have you checked the drawing origin (GetOrigin/SetOrigin) of the PDF? It is probably not what you are expecting.

Wheeley
Back to Top
Quick PDF user_12 View Drop Down
Beginner
Beginner
Avatar

Joined: 14 Feb 17
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Quick PDF user_12 Quote  Post ReplyReply Direct Link To This Post Posted: 15 Feb 17 at 6:26AM
Yes, it is ok, PDF itself is ok but mirrored is only text I want to add extra using quick PDF library on page sides. I use this in PDF 1.4 by years and everything was OK. I am not sure if it is bug or new functionality I am not aware of.
Back to Top
Quick PDF user_12 View Drop Down
Beginner
Beginner
Avatar

Joined: 14 Feb 17
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Quick PDF user_12 Quote  Post ReplyReply Direct Link To This Post Posted: 15 Feb 17 at 9:53AM
http://pl.tinypic.com/view.php?pic=206fvyg&s=9

Picture of faulty result linked above.
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: 15 Feb 17 at 7:24PM
Hi Number 12 ;-)

you should try combinecontentstreams and normalizepage.
Read about it in the online reference then you know what i mean.

Cheers and welcome here,
Ingo

Cheers,
Ingo

Back to Top
Quick PDF user_12 View Drop Down
Beginner
Beginner
Avatar

Joined: 14 Feb 17
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Quick PDF user_12 Quote  Post ReplyReply Direct Link To This Post Posted: 16 Feb 17 at 10:13AM
It looks like finction normalizepage have to be used in all versions >1.6. I didn't know about that. It for sure helps but I will check if all issues are solved using it.

Thank You very much for Your help.
Back to Top
HIolemis1 View Drop Down
Beginner
Beginner


Joined: 26 May 17
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote HIolemis1 Quote  Post ReplyReply Direct Link To This Post Posted: 26 May 17 at 9:38AM
Thanks for the sharing. unblocked game I have been looking for them for a long time.


Edited by HIolemis1 - 10 Sep 17 at 3:39AM
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