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 - Font gets lost with CapturePage
  FAQ FAQ  Forum Search   Register Register  Login Login

Font gets lost with CapturePage

 Post Reply Post Reply
Author
Message
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Topic: Font gets lost with CapturePage
    Posted: 14 Nov 05 at 8:41AM
Hi,

I have a pdf file generated by ghostscript. When opening and saving that file with quickpdf everything is fine.

The problem occurs when I capture and draw that page before saving. When opening that modified file with Adobe Reader, I get an error: "Font not found in resource dictionary - using helvetica" (translated from german). That happens also with multipage files.

I have no clue. Does anyone?

Sample file:

http://www.upload24.de/download/test.pdf


Sample function:

procedure DoSomething;
var
  pdf: TiSEDQuickPdf;
  i,c,r: integer;
  w,h: double;
begin
  pdf := TiSEDQuickPDF.Create;
  pdf.UnlockKey('license key');

  pdf.LoadFromFile('c:\temp\test.pdf');
  pdf.SetMeasurementUnits(1);
  pdf.SetOrigin(1);

  pdf.SelectPage(1);
  w := pdf.PageWidth;
  h := pdf.PageHeight;
  r := pdf.PageRotation;

  pdf.NewPage;
  pdf.SetPageDimensions(w, h);
  pdf.RotatePage(r);

  c := pdf.CapturePage(1);
  pdf.SelectPage(1);
  pdf.NewLayer;
  pdf.DrawCapturedPage(c, 0, 0, w, h);

  pdf.SaveToFile('c:\temp\out.pdf');

  FreeAndNil(pdf);
end;
      
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: 14 Nov 05 at 3:58PM
Hi Jan!
Please look here: http://www.quickpdf.org/forum/forum_posts.asp?TID=177&PN=1
I think it's the same problem.
Cheers,
Ingo

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 15 Nov 05 at 3:46AM
Ingo,

Thanks for your suggestion. I saved the document once and then worked with that file. But unfortunately that didn't work.

Other ideas?
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