You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDFsharpCore is a .NET library for creating and modifying Adobe PDF documents programmatically. It is written in C# and can be used from any .NET language.
8
+
PdfSharpCore is a .NET library for creating and modifying Adobe PDF documents programmatically. It is written in C# and can be used from any .NET language.
9
9
10
10
11
-
## Is PDFsharpCore based on or does it require other libraries or tools?
11
+
## Is PdfSharpCore based on or does it require other libraries or tools?
12
12
13
-
PDFsharpCore is newly designed and built from scratch in C#. Neither Adobe's PDF Library nor Acrobat are required.
13
+
PdfSharpCore is newly designed and built from scratch in C#. Neither Adobe's PDF Library nor Acrobat are required.
14
14
15
15
16
-
## What is the license of PDFsharpCore?
16
+
## What is the license of PdfSharpCore?
17
17
18
-
PDFsharpCore is Open Source. You can copy, modify and integrate the source code of PDFsharpCore in your application without restrictions at all.
18
+
PdfSharpCore is Open Source. You can copy, modify and integrate the source code of PdfSharpCore in your application without restrictions at all.
19
19
20
-
See also: PDFsharpCore[license](../../LICENCE.md)
20
+
See also: PdfSharpCore[license](../../LICENCE.md)
21
21
22
22
23
-
## Can PDFsharpCore show PDF files? Print PDF files? Create images from PDF files?
23
+
## Can PdfSharpCore show PDF files? Print PDF files? Create images from PDF files?
24
24
25
-
PDFsharpCore comes with a preview control designed to visualize drawing operations of the XGraphics object, but it cannot render PDF files.
25
+
PdfSharpCore comes with a preview control designed to visualize drawing operations of the XGraphics object, but it cannot render PDF files.
26
26
27
27
Further the DrawImage function can be used to draw so called form XObjects in PDF pages. If you try to render such an object in the preview, only the bounding box is drawn to show that it cannot be rendered.
28
28
29
-
The PDFsharpCore[samples](samples/index.md) show how to invoke Adobe Reader or Acrobat to view or print PDF files and how to invoke GhostScript to create images from PDF pages.
29
+
The PdfSharpCore[samples](samples/index.md) show how to invoke Adobe Reader or Acrobat to view or print PDF files and how to invoke GhostScript to create images from PDF pages.
30
30
31
31
32
-
## Can I use PostScript fonts with PDFsharpCore?
32
+
## Can I use PostScript fonts with PdfSharpCore?
33
33
34
-
PDFsharpCore cannot work with PostScript fonts. Only TrueType fonts and OpenType fonts with TrueType outlines can be used with PDFsharpCore. Read more...
34
+
PdfSharpCore cannot work with PostScript fonts. Only TrueType fonts and OpenType fonts with TrueType outlines can be used with PdfSharpCore. Read more...
35
35
36
36
37
-
## Can PDFsharpCore run on Web Servers under Medium Trust?
37
+
## Can PdfSharpCore run on Web Servers under Medium Trust?
38
38
39
-
You can run applications on web servers without full trust provided you only use fonts that are serviced by your own FontResolver. See the PDFsharpCore sample: [Font Resolver](samples/FontResolver.md) for further information.
39
+
You can run applications on web servers without full trust provided you only use fonts that are serviced by your own FontResolver. See the PdfSharpCore sample: [Font Resolver](samples/FontResolver.md) for further information.
40
40
41
41
42
-
## Does PDFsharpCore support for Arabic, Hebrew, CJK (Chinese, Japanese, Korean)?
42
+
## Does PdfSharpCore support for Arabic, Hebrew, CJK (Chinese, Japanese, Korean)?
43
43
44
44
Not yet. Right-to-left languages are not yet supported. Only simple languages like English or German are supported, with an easy one-to-one relationship between characters and glyphs.
45
45
@@ -49,35 +49,35 @@ It seems that Hebrew works if you reverse the strings and set all paragraphs to
49
49
50
50
Japanese characters will be displayed, but left to right and not top to bottom. We cannot read Japanese and cannot verify they are shown correctly. Make sure you select a font that contains Japanese characters.
51
51
52
-
Arabic characters have different shapes (glyphs), depending on their position (beginning, end, middle, isolated). PDFsharpCore does not support the selection of the correct glyphs. Arabic text may work if you reverse the string and if you make sure to select the correct Unicode characters for beginning, end, middle, or isolated display. Make sure you select a font that contains Arabic characters.
52
+
Arabic characters have different shapes (glyphs), depending on their position (beginning, end, middle, isolated). PdfSharpCore does not support the selection of the correct glyphs. Arabic text may work if you reverse the string and if you make sure to select the correct Unicode characters for beginning, end, middle, or isolated display. Make sure you select a font that contains Arabic characters.
53
53
54
54
55
-
## Which PDF versions are supported by PDFsharpCore?
55
+
## Which PDF versions are supported by PdfSharpCore?
56
56
57
-
With PDFsharpCore you can create files with PDF versions from 1.2 (Adobe Acrobat Reader 3.0) through 1.7 (Adobe Reader 8.0).
58
-
PDFsharpCore fully supports PDF 1.4 (Adobe Reader 5.0) including the transparency features introduced with this version.
59
-
Some features of PDF 1.5 (Adobe Reader 6.0) are not yet implemented. Therefore PDFsharpCore cannot yet open all files marked for PDF 1.5 or higher. Since not all compression features of PDF 1.5 are implemented, with some files the file size may increase when they are processed with PDFsharpCore.
57
+
With PdfSharpCore you can create files with PDF versions from 1.2 (Adobe Acrobat Reader 3.0) through 1.7 (Adobe Reader 8.0).
58
+
PdfSharpCore fully supports PDF 1.4 (Adobe Reader 5.0) including the transparency features introduced with this version.
59
+
Some features of PDF 1.5 (Adobe Reader 6.0) are not yet implemented. Therefore PdfSharpCore cannot yet open all files marked for PDF 1.5 or higher. Since not all compression features of PDF 1.5 are implemented, with some files the file size may increase when they are processed with PdfSharpCore.
60
60
61
61
62
-
## Does PDFsharpCore support PDF/A?
62
+
## Does PdfSharpCore support PDF/A?
63
63
64
64
Not yet.
65
65
66
66
67
-
## Does PDFsharpCore support AcroForms?
67
+
## Does PdfSharpCore support AcroForms?
68
68
69
69
There is limited support for AcroForms included.
70
70
71
71
72
-
## Can I use PDFsharpCore to convert HTML or RTF to PDF?
72
+
## Can I use PdfSharpCore to convert HTML or RTF to PDF?
73
73
74
74
No, not "out of the box", and we do not plan to write such a converter in the near future.
75
75
76
-
Yes, PDFsharpCore with some extra code can do it. But we do not supply that extra code.
76
+
Yes, PdfSharpCore with some extra code can do it. But we do not supply that extra code.
77
77
On NuGet and other sources you can find a third party library "HTML Renderer for PDF using PdfSharpCore" that converts HTML to PDF. And there may be other libraries for the same or similar purposes, too. Maybe they work for you, maybe they get you started.
78
78
79
79
80
-
## Can I use PDFsharpCore to convert PDF to Word, RTF, HTML?
80
+
## Can I use PdfSharpCore to convert PDF to Word, RTF, HTML?
81
81
82
82
No, and we do not plan to write such a converter in the near future.
83
83
@@ -87,15 +87,15 @@ No, and we do not plan to write such a converter in the near future.
87
87
There is an issue with the PDFs created by SQL Server 2008 Reporting Services. We are working on it.
88
88
As a workaround, create reports with SQL Server 2005 Reporting Services. Workaround for SQL Server 2008 Reporting Services: For the DeviceSettings parameter for the Render method on the ReportExecutionService object, pass this value:
This disables PDF file compression for SSRS 2008. Then, PDFSharpCore is able to handle the resulting uncompressed PDF file. (Note: SSRS 2005 ignores this setting so it can be passed to both SSRS versions.)
90
+
This disables PDF file compression for SSRS 2008. Then, PdfSharpCore is able to handle the resulting uncompressed PDF file. (Note: SSRS 2005 ignores this setting so it can be passed to both SSRS versions.)
91
91
92
92
93
-
## Can I use PDFsharpCore to extract text from PDF?
93
+
## Can I use PdfSharpCore to extract text from PDF?
94
94
95
95
This can be done at a low level. You can get at the characters in the order they are drawn - and most applications draw them from top-left to bottom-right. There are no high-level functions that return words, paragraphs, or whole pages.
96
96
97
97
98
-
## Can PDFsharpCore simulate Bold or Italics?
98
+
## Can PdfSharpCore simulate Bold or Italics?
99
99
100
100
Not yet.
101
101
@@ -104,4 +104,4 @@ Not yet.
104
104
105
105
PDF is a vector format, so there are no DPI. Raster images used in a PDF file do have DPI, but DPI is determined by the usage.
106
106
Consider an image with 300 DPI. This image can be embedded once in the PDF file, but can be drawn several times. There could be a thumbnail on page 1, a full size reproduction on page 2, and a double size reproduction on page 3. Thus the image is drawn with 600 DPI on page 1, 300 DPI on page 2, and 150 DPI on page 3. But when you watch the PDF file in Adobe Reader with a Zoom factor of 1000%, the DPI value will be much lower than that.
107
-
PDF is vector. There is no DPI. PDFsharpCore uses Points as the unit for coordinates. There are 72 Points per Inch. For ease of use, units can be converted from Inch, Centimeter, Millimeter and other units.
107
+
PDF is vector. There is no DPI. PdfSharpCore uses Points as the unit for coordinates. There are 72 Points per Inch. For ease of use, units can be converted from Inch, Centimeter, Millimeter and other units.
Copy file name to clipboardExpand all lines: docs/PdfSharpCore/samples/ExportImages.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
This sample shows how to export JPEG images from a PDF file.
4
4
5
-
Note: This snippet shows how to export JPEG images from a PDF file. PDFsharpCore cannot convert PDF pages to JPEG files. This sample does not handle non-JPEG images. It does not (yet) handle JPEG images that have been flate-encoded.
5
+
Note: This snippet shows how to export JPEG images from a PDF file. PdfSharpCore cannot convert PDF pages to JPEG files. This sample does not handle non-JPEG images. It does not (yet) handle JPEG images that have been flate-encoded.
6
6
7
7
There are several different formats for non-JPEG images in PDF. Those are not supported by this simple sample and require several hours of coding, but this is left as an exercise to the reader.
8
8
9
-
PDFsharpCore cannot render PDF pages - not to printers, not to bitmaps, not to JPEG files.
9
+
PdfSharpCore cannot render PDF pages - not to printers, not to bitmaps, not to JPEG files.
0 commit comments