AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

FastReports PDF Größe

Ein Thema von TurboMagic · begonnen am 8. Dez 2023 · letzter Beitrag vom 12. Dez 2023
Antwort Antwort
mytbo

Registriert seit: 8. Jan 2007
483 Beiträge
 
#1

AW: FastReports PDF Größe

  Alt 9. Dez 2023, 22:27
Wie würde das mit SynPDF ggf. aussehen?
In der FR3-Datei steht die Version. Informationen zu FastReport mit SynPDF findest du hier folgend.

Bis bald...
Thomas
  Mit Zitat antworten Zitat
TurboMagic

Registriert seit: 28. Feb 2016
Ort: Nordost Baden-Württemberg
3.094 Beiträge
 
Delphi 12 Athens
 
#2

AW: FastReports PDF Größe

  Alt 10. Dez 2023, 12:03
Hallo,

ich lese in meiner FR3 Datei Version="2022.2.7".
Danke für den Link.

Grüße
TurboMagic
  Mit Zitat antworten Zitat
Kas Ob.
Online

Registriert seit: 3. Sep 2023
455 Beiträge
 
#3

AW: FastReports PDF Größe

  Alt 10. Dez 2023, 12:33
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

Anyway if you visit https://en.wikipedia.org/wiki/List_of_PDF_software there is punch of software (none reminded me too), and there is one from that list https://blog.didierstevens.com/programs/pdf-tools/ , here an example what parsing the objects should like with GUI from that page
20100902-225943.png

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.
Kas
  Mit Zitat antworten Zitat
Kas Ob.
Online

Registriert seit: 3. Sep 2023
455 Beiträge
 
#4

AW: FastReports PDF Größe

  Alt 10. Dez 2023, 12:37
I forgot one thing, (damm't ), 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 !
Kas
  Mit Zitat antworten Zitat
mytbo

Registriert seit: 8. Jan 2007
483 Beiträge
 
#5

AW: FastReports PDF Größe

  Alt 10. Dez 2023, 13:13
ich lese in meiner FR3 Datei Version="2022.2.7".
In dieser Version ist ein ordentlicher PDF-Export vorhanden. Im Quelltext-Verzeichnis ist die alte Version der Unit unter dem Namen frxExportPDF_old noch zu finden. Die Umsetzung im neuen umfasst ca. 220KB, die alte Version wurde mit ca. 15KB realisiert. Was in der Embarcadero Edition zum Einsatz kommt, ist mir nicht bekannt. Du kannst aber einen PDF-Editor, z.B. FlexiPDF oder PDF-XChange, nehmen und selbst nachschauen. Die Unterschiede sind nicht zu übersehen.

Bis bald...
Thomas
  Mit Zitat antworten Zitat
TurboMagic

Registriert seit: 28. Feb 2016
Ort: Nordost Baden-Württemberg
3.094 Beiträge
 
Delphi 12 Athens
 
#6

AW: FastReports PDF Größe

  Alt 12. Dez 2023, 17:36
Hallo,

habe das SynPDF jetzt mal ausprobiert, für mich ist es jedoch problematisch:

1. es scheint Din A4 zu drucken, obwohl ich den Report zur Laufzeit auf 80 mm
Breite einstelle (oder 69 mm, je nach Einstellung im Programm)

2. Die PDF des Logos kommt invertiert raus. Keine AHnung warum.

Die Dateigröße wäre aber schon viel kleiner und damit passend.
Ich hab' es auch mal mit Flexi PDF geöffnet (hab' allerdings nur Version 21.0 von 2019)
und da noch nicht so recht gesehen wo ich das erkennen könnte. Es ist PDF V1.7
und es ist getaggt. AUßerdem sind 2 Schriftarten teilweise eingebettet.

Grüße
TurboMagic
  Mit Zitat antworten Zitat
mytbo

Registriert seit: 8. Jan 2007
483 Beiträge
 
#7

AW: FastReports PDF Größe

  Alt 12. Dez 2023, 18:33
Das Einzige, was ich dir noch anbieten könnte, ist, dass du deinen Bericht als Projekt in dieser Demo-Anwendung anlegst. Einfach die FR3-Datei in das Projekt-Verzeichnis kopieren und die DataSets als JSON-Datei nachbilden. Das ganze Projekt-Verzeichnis als ZIP-Datei hier einstellen.

Bis bald...
Thomas
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:06 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-2025 by Thomas Breitkreuz