You are not logged in.
Pages: 1
10x man, but same result here...
I can send you result as pdf ...
edit:
I forget to describe - no mater what color is text (i check it with green and red) - on Windows colors are correct, but on wine - still white.
Hello again!
I downloaded the new version of Commons and now compilation is ok.
Unfortunately the result under wine is the same. White paper/white fonts.
Here is the code of generating procedure:
procedure ReportExport(aReport: TQuickRep; const aFileName: TFileName);
var Pdf: TPdfDocumentGDI;
aMeta: TMetaFile;
i: integer;
begin
Pdf := TPdfDocumentGDI.Create;
try
aReport.Prepare;
for i := 1 to aReport.QRPrinter.PageCount do
begin
aMeta := aReport.QRPrinter.GetPage(i);
try
Pdf.DefaultPageWidth := MulDiv(aMeta.Width,72,Pdf.ScreenLogPixels);
Pdf.DefaultPageHeight := MulDiv(aMeta.Height,72,Pdf.ScreenLogPixels);
Pdf.AddPage;
// draw the page content
// Pdf.Canvas.re
//Pdf.Canvas.RenderMetaFile(aMeta);
Pdf.DisableMetaFileTextClipping:=true;
Pdf.Canvas.RenderMetaFile(aMeta,1,0,0);
finally
aMeta.Free;
end;
end;
Pdf.SaveToFile(aFileName);
finally
Pdf.free;
end;
end;
If there any ideas - please, let me know!
Tank you again for your time!
Hello!
10x for the patch!
I downloaded the new version of SynPDF.pas
But unfortunately, when I'm trying to build the project there are error on the code:
procedure DoHash(bits: pointer; size: Integer);
begin // "4 algorithms to rule them all": all SynCommons hashers to the rescue!
Hash[0] := crc32c(Hash[0],bits,size);
Hash[1] := kr32(Hash[1],bits,size);
Hash[2] := fnv32(Hash[2],bits,size);
Hash[3] := Hash[3] xor Hash32(bits,size);
end;
[Pascal Error] SynPdf.pas(5908): E2003 Undeclared identifier: 'crc32c'
What I'm doing wrong?
Hello!
1-st sorry for my bad English....
So, we use SynPDF lib in our apps. It works great on Windows!
As we have customers that using our apps on linux (via wine) we discover that when SynPDF render metafile - resulted pdf is blank (except lines...).
I don't know why but after last night i realize that text is here - but the color is also white... Testing with different fonts and colors did not affect on situation.
Please if anyone have idea hot to resolve the problem - let me know!
10x in advance!
Pages: 1