![]() |
FastReports PDF Größe
Hallo,
ich arbeite an einem Report. Vor Hinzufügen eines (zur Laufzeit geladenen) Logos war die erzeugte PDF immer ca. 360-400 KB groß. frxPDFExport.Compressed ist true. Jetzt habe ich ein TfrxPicture hinzugefügt (3x3 cm), Stretched, KeepAspectRatio. Dort lade ich eine Datei logo.jpg rein, die hat 500x155 Pixel Auflösung (96 DPI sagt Window Explorer). Gebe ich den Report mit ansonsten soweit identischen Daten aus, braucht er ca. 1,2 MB auf der Platte. Die jpg braucht ca. 22 KB, speichert man das als 24 bit BMP braucht es ca. 224 KB. Das würde aber nicht die Verdreifachung der PDF Größe erklären. Hat da irgendwer eine Idee dazu? Das Ändern von HighQuality der TfrxPicture Komponente machte übrigens keinen Unterschied! Grüße TurboMagic |
AW: FastReports PDF Größe
Zitat:
Bis bald... Thomas |
AW: FastReports PDF Größe
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo,
anbei die Grafik. Und hier der relevante Code mit meinen PDF Einstellungen:
Delphi-Quellcode:
Grüße
DMReceipt.frxPDFExport.Compressed := true;
DMReceipt.frxPDFExport.PrintOptimized := true; DMReceipt.frxPDFExport.OverwritePrompt := true; DMReceipt.frxPDFExport.PdfA := true; TurboMagic |
AW: FastReports PDF Größe
Zitat:
Bis bald... Thomas |
AW: FastReports PDF Größe
Ich benutze die damals in 11.3 über GetIt installierte Embarcadero Edition...
Wie würde das mit SynPDF ggf. aussehen? |
AW: FastReports PDF Größe
Zitat:
![]() Bis bald... Thomas |
AW: FastReports PDF Größe
Hallo,
ich lese in meiner FR3 Datei Version="2022.2.7". Danke für den Link. Grüße TurboMagic |
AW: FastReports PDF Größe
Liste der Anhänge anzeigen (Anzahl: 1)
Hi,
I wish i could be more precise about this, but my memory is failing me here. See, PDF format is complex yet the the structure is very simple, and you can build a parser for it in minutes, but the details for these objects are hard and very complex to parse and handle, sound silly, yes it is, but i think the best approach for such cases which will give you deeper understanding for the PDF, by not reading the format specification itself but by using any already parser there, and here my memory failure, i used a software few years back and couldn't find it or even remember its name or location on my disks !!! shame :oops: Anyway if you visit ![]() ![]() Anhang 56491 You can see the objects and paths ...., and their sizes ! There is in the Wikipedia page and punch of other software that can help you detect what have changed and in what size each. Hope that isn't wasting you time but give some insight. PS: i didn't used PDF parsing or handling in Delphi, except i added PDF Signature verification using SecureBlackBox with my own custom simplified PAdES as my license didn't cover that part, yet i can't find that project folder and the accessories tools with it on my drives, (may be i am losing it), anyway, i think there is an existing Delphi/Pascal libraries that will help you do what that parser/analyzer does, it is essential to add objects right, i mean getting list of the PDF objects, so if it is for me i would start with SynPDF and see what it offer in the matter of getting the PDF internal objects and their sizes. |
AW: FastReports PDF Größe
I forgot one thing, (damm't :wall: ), the image could be encoded or handled as readable string or an equivalent, simply and wrongfully went through few encoding process causing this size increase, as PDF specifications allow such stream encapsulation, so binary converted into base64 then binary again then base64 again !
|
AW: FastReports PDF Größe
Zitat:
Bis bald... Thomas |
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:04 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz