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 - RenderDocumentToFile not working??
  FAQ FAQ  Forum Search   Register Register  Login Login

RenderDocumentToFile not working??

 Post Reply Post Reply
Author
Message
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Topic: RenderDocumentToFile not working??
    Posted: 21 Jun 12 at 6:28AM
  ToFileName := RemoveBackSlashChar(DstDirName) + '\TmpPng%p.bmp';
  PDFLibrary := TQuickPDF0719.Create;
  Try
    UnlockResult := PDFLibrary.UnlockKey(edtLicenseKey);
    IF UnlockResult <> 1 then
      Exit;

    IF Not FileExists(Pdf_FileName) Then
      Exit;

    CurCursor := Screen.Cursor;
    Try
      Screen.Cursor := crHourGlass;
      PDFLibrary.LoadFromFile(Pdf_FileName);

//      PDFLibrary.SetOrigin(1);
//      PDFLibrary.SetMeasurementUnits(1);
//      PDFLibrary.SetPageSize('A4');


      PDFLibrary.RenderDocumentToFile(72,1,1,0{BMP},ToFileName);

    Finally
      Screen.Cursor := CurCursor;
    End;
  Finally
    FreeAndNil(PDFLibrary);
  End;

Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jun 12 at 10:20AM
i figer out that if the ToFileName is in Document And Setting it fail.

C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\MzSc\20120621181251\TmpPng%p.png

if i change it to
c:\aa\TmpPng%p.png

it work.

is it bug in quickpdf??
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jun 12 at 10:53PM
Hi!

The To-filename is yours ;-)
There are many functions making long paths from short ones.
Please ask Google for it and then do something like
ToFileName := MakeLongPath(ToFileName)
before using it  ;-)

Cheers and welcome here,
Ingo



Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 21 Jun 12 at 11:30PM
thanks for the replay.
i will test your idia.
will back to you with Tongue   or Confused
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 22 Jun 12 at 12:18PM
Hi!

Here's a link to relevant convertion functions:
http://www.delphidabbler.com/tips/6
Taking this samples this could work for you:
ToFileName := GetLongName(ToFileName);

Cheers, Ingo

Back to Top
mazluta View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Jun 12
Location: Israel
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mazluta Quote  Post ReplyReply Direct Link To This Post Posted: 22 Jun 12 at 4:02PM
Well Ingo.
i test it. and it work fine.
i steel think it's QuickPdf responsbilty to work with any (good) DIRECTORY i send it.
but, it work, so let go on
thanks again for your help.
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