dotnet / dotnet/docfx

Content of PDF files comes out scambled

Open
#9,868 2 comments 0 reactions 0 assignees View on GitHub
pdf
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Describe the bug**
I'm trying to generate a simple PDF of my API, without any styles/template. THe resulting pdf looks all scambled:
![Screenshot 2024-04-12 132934](https://github.com/dotnet/docfx/assets/130734351/00ca5147-d6c2-429f-a8b4-79368534e686)

**To Reproduce**
My docfx.json:
```
{
"metadata": [
{
"src": [
{
"src": "./..",
"files": [
"Assembly-CSharp.csproj"
]
}
],
"dest": "api",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"filter": "filterConfig.yml"
}
],
"build": {
"globalMetadata": {
"pdf": true,
"pdfTocPage": true
},
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"toc.yml",
"*.md"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
}
```

**Expected behavior**
A PDF file with readable content without any styling

**Context (please complete the following information):**
- OS: Windows 11
- Docfx version: 2.76.0

Is this a bug or is it mandetory, to add styling?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.