Print Page | Close Window

PDF displaying

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=3393
Printed Date: 04 Apr 26 at 3:10PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDF displaying
Posted By: coborhc
Subject: PDF displaying
Date Posted: 04 Oct 16 at 9:51PM
Hi all.
Could somebody tell me why Quick PDF does not display the following PDF (just one horizontal line): https://drive.google.com/open?id=0B6Y6LNzVr4n9empXa0k2UENpRUU
All PDF readers display that PDF ok, but Quick PDF doesn't.

I use the following code:
var
  AJpg: TJpegImage;
  AMemStream: Tmemorystream;
  APDF: TQuickPDF;
begin
  AJpg  := TJpegImage.create;
  AMemStream := Tmemorystream.Create;

  APDF  := TQuickPDF.Create;
  try
    APDF.UnlockKey('...');
    APDF.SetGDIPlusOptions(9, 1); //EnhanceThinLines
    APDF.LoadFromFile('Line1-FOP.pdf','');
    APDF.RenderPageToStream(100,1,1,AMemStream);

    AMemStream.Seek(0,0);
    Ajpg.LoadFromStream (AMemStream);

    image1.Top :=0;
    image1.Left:=0;
    image1.Height := Ajpg.Height ;
    image1.Width := Ajpg.Width;
    image1.Picture.Assign(Ajpg);
  finally
    APDF.Free;
    Ajpg.Free;
    AMemStream.Free;
  end;
end;




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