Bilder werden auf Seitenbreite skaliert

20 views
Skip to first unread message

Andreas Brauchle

unread,
Jan 21, 2020, 8:57:04 AM1/21/20
to dompdf
Hallo, ich versuche einen Artikel mit Text und Bildern in ein PDF mit DOMPDF zu konvertieren. Das PDF wird auch erstellt, jedoch werden alle Bilder im PDF auf Seitenbreite skaliert. In der HTML-Datei werden die Bilder in der entsprechenden Grösse korrekt dargestellt. Ich habe versucht, im html.css von DOMPDF unter img zu ändern, dies hat jedoch keinen Effekt.

BrianS

unread,
Feb 1, 2020, 12:35:55 PM2/1/20
to dompdf
You shouldn't modify the Dompdf html.css file. That's the base stylesheet. Any styles you define in your document would override the Dompdf styles.

In order to help you we would need to see a sample of the HTML + CSS.

per Google Translate:

Sie sollten die Datei Dompdf html.css nicht ändern. Das ist das Basis-Stylesheet. Alle Stile, die Sie in Ihrem Dokument definieren, würden die Dompdf-Stile überschreiben.

Um Ihnen zu helfen, benötigen wir ein Beispiel für HTML + CSS.

Andreas Brauchle

unread,
Feb 12, 2020, 8:06:01 AM2/12/20
to dom...@googlegroups.com
Hi Brian

Thanks for your answer. The problem is that if the image is much more taller than wider. I solved the problem by rezizing the image.

Holen Sie sich Outlook für iOS

Von: dom...@googlegroups.com <dom...@googlegroups.com> im Auftrag von BrianS <eclect...@gmail.com>
Gesendet: Saturday, February 1, 2020 6:35:55 PM
An: dompdf <dom...@googlegroups.com>
Betreff: [dompdf] Re: Bilder werden auf Seitenbreite skaliert
 
--
You received this message because you are subscribed to a topic in the Google Groups "dompdf" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dompdf/h5jh3KE65nM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dompdf+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dompdf/912cf9a7-c330-48e6-82b7-1b2e7bc7eff3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages