#1 Re: PDF Engine » Vector based Background » 2013-07-05 12:56:02

Hi,

thanks for your awnser.

ab wrote:

If you want a vectorial background, you can just write it just after each AddPage.

Can you give me another hint here? This means it is possible to handle vectorial backgrounds by page, how?

ab wrote:

You can add a feature request in http://synopse.info/fossil/reportlist if you need to add TMetaFile support in addition to bitmap background pictures.

We could work with a per page solution right now.

Daniel.

#2 PDF Engine » Vector based Background » 2013-07-05 11:39:00

dschuch
Replies: 2

Is there is a way, to put a vector based Backgroundimage (e.g. another pdf) into the pages of a generated pdf?

I found several posts pointing out that its nescesarry to handle it via Canvas, but if i would do that i need to convert my PDF to an image first, right?

http://synopse.info/forum/viewtopic.php?id=1145

Daniel.

#3 Re: PDF Engine » FastReport PDF export using SynPDF » 2013-05-22 11:52:30

Hy,

@ad - got your email. fine. (found in spam today. wink )

-

@ All:
The problem with the cutted text-fields seems to evolve from the "wysiwyg" - property. It depends of the content of the memo: if it is a macro - eg [IIF ...] sometimes the text is cutted in the pdf.
Best results i still get with KerningFromAverage.

I solved it temporarily by changeing the ExportObject-Procedure:

procedure TfrxSynPDFExport.ExportObject(Obj: TfrxComponent);
Var ...
     frxCheckWysiWyg, old_wysiwyg: Boolean;
...
      frxCheckWysiWyg:=Obj IS TfrxMemoView;
      if frxCheckWysiWyg then begin
         old_wysiwyg:=TfrxMemoView(Obj).Wysiwyg;
         TfrxMemoView(Obj).Wysiwyg:=False;
      end;

      TfrxView(Obj).Draw(PdfDocument.VCLCanvas , FDiv, FDiv, 0, FYOffset);

      if frxCheckWysiWyg then
         TfrxMemoView(Obj).Wysiwyg:=old_wysiwyg;
    end;
end;

#4 Re: PDF Engine » FastReport PDF export using SynPDF » 2013-05-17 19:14:07

Thanks a lot. With this new Version things changed. Results are better in all cases. But only KerningFromAverage is out of mistakes. I checked out all options - you can see the result-Screens.

Interesting is the filesize too: 237kb in my example for "SetTextJustification", 47kb the other two.

http://prodat-sql.de/tmp/SynPDF-KerningFromAverage.jpg *perfect

http://prodat-sql.de/tmp/SynPDF-SetText … cation.jpg    *minor mistakes

http://prodat-sql.de/tmp/SynPDF-ExactTextChar.jpg        *minor mistakes

absolutely great. We will check out this now with some more reports from our customers.

Thanks very much. Is there is a hidden Donate function on your site? wink

Daniel.

#5 Re: PDF Engine » FastReport PDF export using SynPDF » 2013-05-17 11:23:56

Hey,

thank you very very much for this code. We spend tons of money/time trying to get a usefull solution for FastReport PDF-Export - this is the first one *nearly* working (we did not know SynopsePDF before). Perhpas someone can give us a hint with the last problems:

1) Synopse seems to have a bit more Space-Char, so some Words become longer, than in FR-Preview and so cutted in the PDF.

http://prodat-sql.de/tmp/PreviewFastReport.jpg
http://prodat-sql.de/tmp/SynPDF-Export.jpg
http://prodat-sql.de/tmp/FastReport-DesignView.jpg

2) See Picture: "Vor-Ort" seems to be interpreted as some kind of special code? The element is a TfrxRichView

http://prodat-sql.de/tmp/Synopse-BugVorOrt.jpg


I have checked out different Fonts, but this doesn't seem to solve the problem.

Anyone can help?

It is possible to pay for the time, if it becomes more intensive to solve this problem. We do not want to spend to much time ourself in the internals of SynopsePDF if we can avoid it, so it would be nice to hire the KnowHow for that last but major problem.

Daniel.

Board footer

Powered by FluxBB