You are not logged in.
Pages: 1
I try TPdfDestination but it's not work
Offline
Pdf := TPdfDocumentGDI.Create;
pdf.NewDoc;
try
Pdf.Info.Author := 'Tester';
Pdf.Info.CreationDate := Now;
Pdf.Info.Creator := 'Tester';
Pdf.ScreenLogPixels:=120;
//pdf.PDFA1:=true;
Pdf.ForceJPEGCompression:=90;
Pdf.DefaultPaperSize := psA4;
Page := PDF.AddPage;
....
Canvas Draw
....
Pdf.SaveToFile('test.pdf');
finally
Pdf.Free;
-----------------------------
PDF created fine, but when watching it fit to height in Acrobat Viewer.
When I open the document in Openoffice I can specify when you export the initial appearance - "fit to width" or "100%"
How to set it in synpdf?
Last edited by Gregos (2012-05-24 12:59:10)
Offline
Page layout is defined by a TPdfPageLayout constant.
You can use a Pdf.Root.PageLayout := plSinglePage.
Or the TPdfDestinationType kind of constant (more difficult).
In this case, use something like:
Pdf.Root.OpenAction := Pdf.CreateDestination;
+ set Pdf.Root.OpenAction properties.
Offline
Pages: 1