Skip to content

Commit 3374a7d

Browse files
lkalka-berlinLucas-C
authored
fix: some typos (#1385)
* fix: some typos * Update docs/Tutorial.md Co-authored-by: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> * Update docs/Tutorial.md Co-authored-by: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> * chore: you are right --------- Co-authored-by: lka <herbert@lischka-berlin.de> Co-authored-by: Lucas Cimon <925560+Lucas-C@users.noreply.github.com>
1 parent e2b9354 commit 3374a7d

File tree

2 files changed

+17
-29
lines changed

2 files changed

+17
-29
lines changed

docs/Tutorial-de.md

+10-16
Original file line numberDiff line numberDiff line change
@@ -189,45 +189,39 @@ Um einen externen Link mit Hilfe eines Bildes zu erstellen, verwenden wir [`imag
189189

190190
Eine weitere Möglichkeit, den Schriftstil zu ändern und Links hinzuzufügen, stellt die Verwendung der Methode `write_html()` dar. Sie ist ein HTML-Parser, der das Hinzufügen von Text, Änderung des Schriftstils und Erstellen von Links mittels HTML ermöglicht.
191191

192-
## Tuto 7 - Ein PDF/A Dokument erstellen ##
192+
## Lektion 7 - Ein PDF/A Dokument erstellen ##
193193

194194
### PDF/A Standards ###
195195

196-
<b>PDF/A-1</b> basiert auf der PDF-Version 1.4. Alle Ressourcen (Bilder, Grafiken, Fonts) müssen im Document eingebettet werden. Erforderlich sind präzise und Plattform unabhängig kodierte Farbangaben mittels ICC-Profilen sowie die Verwendung von XMP für die Dokument-Metadata.
196+
<b>PDF/A-1</b> basiert auf der PDF-Version 1.4. Alle Ressourcen (Bilder, Grafiken, Fonts) müssen im Document eingebettet werden. Erforderlich sind präzise und Plattform unabhängig kodierte Farbangaben mittels ICC-Profilen sowie die Verwendung von XMP für die Dokumenten-Metadaten.
197197

198-
<b>PDF/A-2</b> basiert auf PDF-Version 1.7. Es erlaubt die Kompression mit JPEG2000, transparente Elemente, OpenType Fonts and digitale Signaturen.
198+
<b>PDF/A-2</b> basiert auf PDF-Version 1.7. Es erlaubt die Komprimierung mit JPEG2000, transparente Elemente, OpenType Fonts and digitale Signaturen.
199199

200200
Die einzige Erweiterung für <b>PDF/A-3</b> besteht aus der Möglichkeit, beliebige Dateien einzubetten.
201201

202202
### Conformance Classes ###
203203

204-
Stufe A (Zugänglichkeit) umfasst sämtliche Anforderungen des Standards inklusive Abbildung der inhaltlichen Struktur und korrekter Lesereihenfolge des Dokumentinhalts. Textinhalte müssen extrahierbar sein und die Struktur muss die natürliche Leseabfolge abbilden.
204+
Stufe A (Zugänglichkeit) umfasst sämtliche Anforderungen des Standards inklusive der Abbildung der inhaltlichen Struktur und korrekter Lesereihenfolge des Dokumenteninhalts. Textinhalte müssen extrahierbar sein und die Struktur muss die natürliche Leseabfolge abbilden.
205205

206-
Stufe B (Basic) garantiert eine eindeutige visuelle Reproduzierbarkeit der Inhalte. Stufe B lässt sich meist einfacher generieren als Stufe A, gewährleistet aber nicht zu 100 Prozent Textextraktion oder -durchsuchbarkeit. Eine problemlose Wiederverwendung des Inhalts ist nicht unbedingt gegeben.
206+
Stufe B (Basic) garantiert eine eindeutige visuelle Reproduzierbarkeit der Inhalte. Stufe B lässt sich meist einfacher generieren als Stufe A, gewährleistet aber nicht zu 100 Prozent Textextraktion oder -Durchsuchbarkeit. Eine problemlose Wiederverwendung des Inhalts ist nicht unbedingt gegeben.
207207

208-
Hier ein kleines Beispiel um das zu erreichen:
208+
Hier ein Beispiel um das zu erreichen:
209209

210210
```python
211211
{% include "../tutorial/tuto7.py" %}
212212
```
213213

214214
[Resulting PDF](https://github.com/py-pdf/fpdf2/raw/master/tutorial/tuto7.pdf) -
215-
[fpdf2-logo](https://raw.githubusercontent.com/py-pdf/fpdf2/master/docs/fpdf2-logo.png)
216-
217-
218-
```python
219-
pdf = PDF()
220-
```
221215

222-
Die Klasse PDF fügt die benötigten Fonts mit Hilfe der Funktion
223-
[add_font()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.add_font)
216+
Wir fügen die benötigten Fonts mit Hilfe der Funktion
217+
[add_font()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.add_output_intent)
224218
in das Dokument ein.
225219

226-
Dann fügt es ein ICC Profil ein und erstellt mit Hilfe der Funktion
220+
Dann fügen wir ein ICC Profil ein und erstellen mit Hilfe der Funktion
227221
[add_output_intent()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.output_intent)
228222
das Output Intents Verzeichnis.
229223

230-
Nachdem wir eine erste Seite einegfüllt, den eingebetteten Font ausgewählt, und etwas Text erzeugt haben, erstellen wir das PDF mit der Funktion:
224+
Nachdem wir eine erste Seite erstellt, den eingebetteten Font ausgewählt, und etwas Text erzeugt haben, generieren wir das PDF mit der Funktion:
231225
```python
232226
pdf.create_pdf_with_metadata(
233227
filename="tuto7.pdf",

docs/Tutorial.md

+7-13
Original file line numberDiff line numberDiff line change
@@ -257,22 +257,16 @@ To achieve this, here a little example:
257257
```
258258

259259
[Resulting PDF](https://github.com/py-pdf/fpdf2/raw/master/tutorial/tuto7.pdf) -
260-
[fpdf2-logo](https://raw.githubusercontent.com/py-pdf/fpdf2/master/docs/fpdf2-logo.png)
261-
262-
263-
```python
264-
pdf = PDF()
265-
```
266260

267-
The class PDF adds the needed embedded fonts using the
261+
First, we add the needed embedded fonts using the
268262
[add_font()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.add_font)
269263
method for each style.
270264

271-
Then it adds the ICC profile object to the output intents array using the
272-
[add_output_intent()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.output_intent)
265+
Then, we add the ICC profile object to the output intents array using the
266+
[add_output_intent()](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.add_output_intent)
273267
method.
274268

275-
After adding first page, using the embedded font, writing some text, we create the pdf:
269+
After adding first page, using the embedded font, writing some text, we'll create the pdf:
276270
```python
277271
pdf.create_pdf_with_metadata(
278272
filename="tuto7.pdf",
@@ -282,11 +276,11 @@ pdf.create_pdf_with_metadata(
282276
creator=["John Dow", "Jane Dow"],
283277
description="this is my description of this file",
284278
keywords="Example Tutorial7"
285-
)
279+
)
286280
```
287281

288-
Here we use pikepdf to create the needed metadata and set the type to PDF/A-3B.
282+
Here, we use pikepdf to create the necessary metadata and set the type to PDF/A-3B.
289283

290-
In the function `create_pdf_with_metadata` we need to set 'language' and 'subject' outside the metadata before we use pikepdf to achieve conformance.
284+
In the function `create_pdf_with_metadata`, we need to set 'language' and 'subject' outside the metadata before using `pikepdf` to achieve conformance.
291285

292286
Please use something like verapdf to check conformance of resulting PDF.

0 commit comments

Comments
 (0)