Im creating PDF's with Debenu and saving them. Then AcroPDF.LoadFile loads the PDF. If I start my app and load a file, all is well. I can even resize with this PDF after loading. However, if I have resized my app in any way (doesn matter if it is back to the size i started) and then load, the PDF loses resolution.
The AcroPDF doesnt align and isnt anchored (doesnt matter if it is). And when I open the generated PDF with Arcobat Reader the resolution is great.
This problem only seems to occur with the generated PDF's. Not with any other
Here is my code:
procedure TForm1.Button1Click(Sender: TObject);
var
PDF: TDebenuPDFLibraryDLL0915;
begin
PDF := TDebenuPDFLibraryDLL0915.Create('DebenuPDFLibraryDLL0915.dll');
try
PDF.UnlockKey(Key);
PDF.SelectPage(1);
PDF.SetPageSize('a4');
PDF.AddImageFromFile('c:\Tool\Picture.jpg', 0);
PDF.DrawImage(0,842,595,842);
PDF.SaveToFile('C:\Tool\Test.pdf');
AcroPDF.LoadFile('C:\Tool\Test.pdf');
finally
PDF.Free;
end;
end;
Software: Win7 64, Delphi XE5