My margins are set to 1 inch in the rtf file. When I print the rtf from WPTools everything is fine. When I export to pdf my margins are roughly 1.2 inches. Below is a snip of code I'm using...
WPPDFExport1.Filename := sPath + sFile;
WPPDFExport1.BeginDoc;
while not EOF(f) do
begin
Readln(f, sTmp);
if FileExists(sTmp) then
begin
RichText.LoadFromFile(sTmp, True, 'RTF');
RichText.ReformatAll(false,false);
WPPDFExport1.Print;
end
else
begin
sError := 'ERROR_Printing_File_not_found_' + sTmp;
break;
end;
end;
WPPDFExport1.EndDoc;
Note I have the same problem when using the demo project PDFConverter. My CanvasReference is set to wprefPrinter. I have tried 3 different printers but no luck.
WPTools5, wPDF3, D2006