Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api-reference/barcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ using ZXing.Rendering;
var writer = new QRCodeWriter();
var qrCode = writer.encode(url, BarcodeFormat.QR_CODE, (int)size.Width, (int)size.Height);
var renderer = new SvgRenderer { FontName = "Lato" };
return renderer.Render(qrCode, BarcodeFormat.EAN_13, null).Content;
return renderer.Render(qrCode, BarcodeFormat.QR_CODE, null).Content;
});
});
```
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/image/svg.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The same setting is also available via the GUI in your preferred IDE.
:::

:::tip
SVG content supports the same scaling options as raster images. [Learn more](/api-reference/image/basics.html#image-scaling)
SVG content supports the `FitWidth`, `FitHeight` and `FitArea` scaling options and always keeps its aspect ratio. `FitUnproportionally` is available only for raster images. [Learn more](/api-reference/image/basics.html#image-scaling)

For example:
```csharp{4}
Expand Down
10 changes: 5 additions & 5 deletions docs/api-reference/rotate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

Constrained rotation enables you to rotate an element by exactly 90 degrees, either clockwise or counterclockwise, while maintaining the content within the same space and size constraints.

| Method | Description |
|----------------------------|--------------------------------------------------|
| **RotateCounterclockwise** | Rotates its content 90 degrees counterclockwise. |
| **RotateClockwise** | Rotates its content 90 degrees clockwise. |
| Method | Description |
|----------------------------------|--------------------------------------------------|
| **RotateLayoutCounterclockwise** | Rotates its content 90 degrees counterclockwise. |
| **RotateLayoutClockwise** | Rotates its content 90 degrees clockwise. |

::: warning
When applying rotation, be aware that it changes the dimensional behavior of your elements.
Expand All @@ -19,7 +19,7 @@ This affects how other properties like alignment and padding work on the rotated
container.Row(row =>
{
row.AutoItem()
.RotateCounterclockwise()
.RotateLayoutCounterclockwise()
.AlignCenter()
.Text("Definition")
.Bold().FontColor(Colors.Blue.Darken2);
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/table/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Here’s an example showcasing a confusion matrix layout where cells are placed
.Text("Predicted condition").Bold();

table.Cell().Row(3).Column(1).RowSpan(2)
.Element(HeaderCellStyle).RotateLeft()
.Element(HeaderCellStyle).RotateLayoutCounterclockwise()
.Text("Actual\ncondition").Bold().AlignCenter();

table.Cell().Row(2).Column(3)
Expand Down
26 changes: 13 additions & 13 deletions docs/concepts/document-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ A simple overlay example:
```csharp
DocumentOperation
.LoadFile("input.pdf")
.OverlayFile(new LayerConfiguration
.OverlayFile(new DocumentOperation.LayerConfiguration
{
FilePath = "watermark.pdf"
})
Expand All @@ -133,7 +133,7 @@ More complex overlay example with specific page selections:
```csharp
DocumentOperation
.LoadFile("input.pdf")
.OverlayFile(new LayerConfiguration
.OverlayFile(new DocumentOperation.LayerConfiguration
{
FilePath = "watermak.pdf",
TargetPages = "1-z", // Apply to all pages
Expand Down Expand Up @@ -171,7 +171,7 @@ Starting with the 2026.7.2 version, the `AllowModification` permission is also s
```csharp
DocumentOperation
.LoadFile("input.pdf")
.Encrypt(new Encryption40Bit
.Encrypt(new DocumentOperation.Encryption40Bit
{
UserPassword = "user123",
OwnerPassword = "owner456",
Expand All @@ -188,7 +188,7 @@ DocumentOperation
```csharp
DocumentOperation
.LoadFile("input.pdf")
.Encrypt(new Encryption128Bit
.Encrypt(new DocumentOperation.Encryption128Bit
{
UserPassword = "user123",
OwnerPassword = "owner456",
Expand All @@ -208,7 +208,7 @@ DocumentOperation
```csharp
DocumentOperation
.LoadFile("input.pdf")
.Encrypt(new Encryption256Bit
.Encrypt(new DocumentOperation.Encryption256Bit
{
UserPassword = "user123",
OwnerPassword = "owner456",
Expand Down Expand Up @@ -245,7 +245,7 @@ A simple attachment example:
```csharp
DocumentOperation
.LoadFile("input.pdf")
.AddAttachment(new DocumentAttachment
.AddAttachment(new DocumentOperation.DocumentAttachment
{
FilePath = "data.csv",
Description = "Supporting data table",
Expand Down Expand Up @@ -286,12 +286,12 @@ The PDF/A-3b standard requires that all attachments provide more information abo
```csharp
DocumentOperation
.LoadFile("input.pdf")
.AddAttachment(new DocumentAttachment
.AddAttachment(new DocumentOperation.DocumentAttachment
{
FilePath = "invoice-data.xml",
Description = "Invoice XML data",
MimeType = "application/xml",
Relationship = DocumentAttachmentRelationship.Alternative,
Relationship = DocumentOperation.DocumentAttachmentRelationship.Alternative,
CreationDate = DateTime.UtcNow,
ModificationDate = DateTime.UtcNow,
Replace = true
Expand Down Expand Up @@ -319,7 +319,7 @@ Document
page.Content().Text("Your invoice content");
});
})
.WithSettings(new DocumentSettings() { PdfA = true }) // important
.WithSettings(new DocumentSettings() { PDFA_Conformance = PDFA_Conformance.PDFA_3B }) // important
.GeneratePdf(path);

// step 2: extend the metadata of the PDF document
Expand All @@ -342,17 +342,17 @@ DocumentOperation
.LoadFile("input.pdf")
.TakePages("1-10") // Select first 10 pages
.MergeFile("appendix.pdf", "1-z") // Append all pages from appendix
.OverlayFile(new LayerConfiguration
.OverlayFile(new DocumentOperation.LayerConfiguration
{
FilePath = "watermark.pdf",
TargetPages = "1-z"
})
.AddAttachment(new DocumentAttachment
.AddAttachment(new DocumentOperation.DocumentAttachment
{
FilePath = "metadata.xml",
Relationship = DocumentAttachmentRelationship.Supplement
Relationship = DocumentOperation.DocumentAttachmentRelationship.Supplement
})
.Encrypt(new Encryption256Bit
.Encrypt(new DocumentOperation.Encryption256Bit
{
OwnerPassword = "owner456",
AllowPrinting = true,
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/zugferd.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Document
Subject = "ZUGFeRD Test Document",
Language = "en-US"
})
.WithSettings(new DocumentSettings { PdfA = true }) // PDF/A-3b
.WithSettings(new DocumentSettings { PDFA_Conformance = PDFA_Conformance.PDFA_3B }) // PDF/A-3b
.GeneratePdf("invoice-bbb.pdf");

DocumentOperation
Expand Down
Loading