Recent

Author Topic: Fortes report - PDF export produces large files.  (Read 6030 times)

grandehombre

  • New Member
  • *
  • Posts: 42
Fortes report - PDF export produces large files.
« on: August 01, 2013, 01:55:27 am »
I am generating a single-page invoice, using Lazarus 1.0.10 and FortesReports 3.24LCLR2 on a Win7-64 PC.
It contains a small bitmap (logo) and text.
When I save it using the Fortes PDFFilter, it generates a 12MB PDF file.
When I print it to CutePDF, I get a 31KB PDF file.

I'd rather stay with the PDFFilter than ask people to install 'PDF' printer drivers.
I am just curious to know if anyone has done any work on this filter and would like to share his/her experiences.
« Last Edit: August 01, 2013, 02:05:03 am by grandehombre »
Lazarus v1.2RC2  i386-win32-win32/win64,  FPC v2.6.2, svn43696 on Win7-64 and win8.1

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Fortes report - PDF export produces large files.
« Reply #1 on: August 01, 2013, 02:07:45 am »
No idea but you could postprocess with ps2pdf which is quite good at decreasing PDF size. Don't know if it's available on Windows - it probably is.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

grandehombre

  • New Member
  • *
  • Posts: 42
Re: Fortes report - PDF export produces large files.
« Reply #2 on: August 01, 2013, 02:22:39 am »
Thanks BigChimp,

I'll give that a shot.
Lazarus v1.2RC2  i386-win32-win32/win64,  FPC v2.6.2, svn43696 on Win7-64 and win8.1

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Fortes report - PDF export produces large files.
« Reply #3 on: August 01, 2013, 02:25:31 am »
my assumption is that the filter saves the contents as an image inside the pdf while the driver adds them as text instead. I haven't worked with fortesreport at all but I will bet it would be almost impossible to change that behavior not with out a lot of work.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: Fortes report - PDF export produces large files.
« Reply #4 on: August 01, 2013, 05:29:45 am »
hello,

i have tested Fortes vs Lazreport for PDF export  :
Tfrreport + TfrTNPDFExport  vs TRLReport + TRLPDFFilter

the report contains one jpeg picture of 22kb + one Text Font Arial 22  'This is my test'

pdf file size for lazreport : 24 kb.
pdf file size for fortes : 1353 kb.
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

grandehombre

  • New Member
  • *
  • Posts: 42
Re: Fortes report - PDF export produces large files.
« Reply #5 on: August 05, 2013, 02:03:21 am »
Hi JP,

That's similar to what I get when comparing FR vs print-to-CutePDF.
It would've been nice if there was a way to port the LazReport PDF exporter to Fortes
Lazarus v1.2RC2  i386-win32-win32/win64,  FPC v2.6.2, svn43696 on Win7-64 and win8.1

grandehombre

  • New Member
  • *
  • Posts: 42
Re: Fortes report - PDF export produces large files.
« Reply #6 on: August 05, 2013, 02:30:10 am »
I have now opened a feature-request ticket with the authors.
https://sourceforge.net/p/fortes4lazarus/feature-requests/3/
Lazarus v1.2RC2  i386-win32-win32/win64,  FPC v2.6.2, svn43696 on Win7-64 and win8.1

 

TinyPortal © 2005-2018