├── !ReadMe.txt ├── .gitignore ├── BuildLibs ├── Lakerfield.MigraDoc.1.32.4.nuspec ├── Lakerfield.PdfSharp.1.32.4.nuspec ├── MigraDoc.DocumentObjectModel-WPF.dll ├── MigraDoc.Rendering-WPF.dll ├── MigraDoc.RtfRendering-WPF.dll ├── PdfSharp-WPF.dll ├── PdfSharp.Charting-WPF.dll └── Update-From-Release.bat ├── MigraDoc └── code │ ├── BuildAll-MigraDoc-VS2010.sln │ ├── BuildAll-MigraDoc-WPF-VS2010.sln │ ├── MigraDoc.DocumentObjectModel │ ├── AssemblyInfo.cs │ ├── MigraDoc.DocumentObjectModel-WPF.csproj │ ├── MigraDoc.DocumentObjectModel.Fields │ │ ├── BookmarkField.cs │ │ ├── DateField.cs │ │ ├── InfoField.cs │ │ ├── NumPagesField.cs │ │ ├── NumericFieldBase.cs │ │ ├── PageField.cs │ │ ├── PageRefField.cs │ │ ├── SectionField.cs │ │ ├── SectionPagesField.cs │ │ └── enums │ │ │ └── InfoFieldType.cs │ ├── MigraDoc.DocumentObjectModel.IO │ │ ├── DdlParser.cs │ │ ├── DdlParserException.cs │ │ ├── DdlReader.cs │ │ ├── DdlReaderError.cs │ │ ├── DdlReaderErrors.cs │ │ ├── DdlScanner.cs │ │ ├── DdlWriter.cs │ │ ├── Symbols.cs │ │ └── enums │ │ │ ├── DdlErrorLevel.cs │ │ │ ├── Symbol.cs │ │ │ └── TokenType.cs │ ├── MigraDoc.DocumentObjectModel.Internals │ │ ├── DVAttribute.cs │ │ ├── DomValueDescriptorCollection.cs │ │ ├── INullableValue.cs │ │ ├── Meta.cs │ │ ├── NBool.cs │ │ ├── NDouble.cs │ │ ├── NEnum.cs │ │ ├── NInt.cs │ │ ├── NString.cs │ │ ├── ValueDescriptor.cs │ │ └── enums │ │ │ ├── GV.cs │ │ │ └── VDFlags.cs │ ├── MigraDoc.DocumentObjectModel.Resources │ │ ├── Messages.de.restext │ │ └── Messages.restext │ ├── MigraDoc.DocumentObjectModel.Shapes.Charts │ │ ├── Axis.cs │ │ ├── AxisTitle.cs │ │ ├── Chart.cs │ │ ├── ChartObject.cs │ │ ├── DataLabel.cs │ │ ├── Gridlines.cs │ │ ├── Legend.cs │ │ ├── PlotArea.cs │ │ ├── Point.cs │ │ ├── Series.cs │ │ ├── SeriesCollection.cs │ │ ├── SeriesElements.cs │ │ ├── TextArea.cs │ │ ├── TickLabels.cs │ │ ├── XSeries.cs │ │ ├── XSeriesElements.cs │ │ ├── XValue.cs │ │ ├── XValues.cs │ │ └── enums │ │ │ ├── BlankType.cs │ │ │ ├── ChartType.cs │ │ │ ├── DataLabelPosition.cs │ │ │ ├── DataLabelType.cs │ │ │ ├── HorizontalAlignment.cs │ │ │ ├── MarkerStyle.cs │ │ │ └── TickMarkType.cs │ ├── MigraDoc.DocumentObjectModel.Shapes │ │ ├── Barcode.cs │ │ ├── FillFormat.cs │ │ ├── Image.cs │ │ ├── LeftPosition.cs │ │ ├── LineFormat.cs │ │ ├── PictureFormat.cs │ │ ├── Shape.cs │ │ ├── TextFrame.cs │ │ ├── TopPosition.cs │ │ ├── WrapFormat.cs │ │ └── enums │ │ │ ├── BarcodeType.cs │ │ │ ├── DashStyle.cs │ │ │ ├── LineStyle.cs │ │ │ ├── RelativeHorizontal.cs │ │ │ ├── RelativeVertical.cs │ │ │ ├── ShapePosition.cs │ │ │ ├── TextOrientation.cs │ │ │ └── WrapStyle.cs │ ├── MigraDoc.DocumentObjectModel.Tables │ │ ├── Cell.cs │ │ ├── Cells.cs │ │ ├── Column.cs │ │ ├── Columns.cs │ │ ├── Row.cs │ │ ├── Rows.cs │ │ ├── Table.cs │ │ └── enums │ │ │ ├── Edge.cs │ │ │ ├── RowAlignment.cs │ │ │ ├── RowHeightRule.cs │ │ │ └── VerticalAlignment.cs │ ├── MigraDoc.DocumentObjectModel.Visitors │ │ ├── CellComparer.cs │ │ ├── DocumentObjectVisitor.cs │ │ ├── IDomVisitable.cs │ │ ├── MergedCellList.cs │ │ ├── PdfFlattenVisitor.cs │ │ ├── RtfFlattenVisitor.cs │ │ └── VisitorBase.cs │ ├── MigraDoc.DocumentObjectModel.csproj │ ├── MigraDoc.DocumentObjectModel │ │ ├── Border.cs │ │ ├── Borders.cs │ │ ├── Character.cs │ │ ├── Chars.cs │ │ ├── Color.backup.cs │ │ ├── Color.cs │ │ ├── Colors.cs │ │ ├── DdlEncoder.cs │ │ ├── DdlVisibleAttribute.cs │ │ ├── Document.cs │ │ ├── DocumentElements.cs │ │ ├── DocumentInfo.cs │ │ ├── DocumentObject.cs │ │ ├── DocumentObjectCollection.cs │ │ ├── DocumentRelations.cs │ │ ├── DomSR.cs │ │ ├── Font.cs │ │ ├── Footnote.cs │ │ ├── FormattedText.cs │ │ ├── HeaderFooter.cs │ │ ├── HeadersFooters.cs │ │ ├── Hyperlink.cs │ │ ├── ImageHelper.cs │ │ ├── ListInfo.cs │ │ ├── PageBreak.cs │ │ ├── PageSetup.cs │ │ ├── Paragraph.cs │ │ ├── ParagraphElements.cs │ │ ├── ParagraphFormat.cs │ │ ├── Section.cs │ │ ├── Sections.cs │ │ ├── Serializer.cs │ │ ├── Shading.cs │ │ ├── Style.cs │ │ ├── StyleNames.cs │ │ ├── Styles.cs │ │ ├── TabStop.cs │ │ ├── TabStops.cs │ │ ├── Text.cs │ │ ├── TextMeasurement.cs │ │ ├── Unit.cs │ │ ├── VersionInfo.cs │ │ └── enums │ │ │ ├── BorderStyle.cs │ │ │ ├── BorderType.cs │ │ │ ├── BreakType.cs │ │ │ ├── ColorName.cs │ │ │ ├── DomMsgID.cs │ │ │ ├── FontProperties.cs │ │ │ ├── FootnoteLocation.cs │ │ │ ├── FootnoteNumberStyle.cs │ │ │ ├── FootnoteNumberingRule.cs │ │ │ ├── HeaderFooterIndex.cs │ │ │ ├── HyperlinkType.cs │ │ │ ├── LineSpacingRule.cs │ │ │ ├── ListType.cs │ │ │ ├── Orientation.cs │ │ │ ├── OutlineLevel.cs │ │ │ ├── PageFormat.cs │ │ │ ├── ParagraphAlignment.cs │ │ │ ├── StyleType.cs │ │ │ ├── SymbolName.cs │ │ │ ├── TabAlignment.cs │ │ │ ├── TabLeader.cs │ │ │ ├── TextFormat.cs │ │ │ ├── Underline.cs │ │ │ └── UnitType.cs │ ├── ProductVersionInfo.cs │ ├── Properties │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ └── StrongnameKey.snk │ ├── MigraDoc.Rendering │ ├── AssemblyInfo.cs │ ├── MigraDoc.Rendering-WPF.csproj │ ├── MigraDoc.Rendering.ChartMapper │ │ ├── AxisMapper.cs │ │ ├── ChartMapper.cs │ │ ├── DataLabelMapper.cs │ │ ├── FillFormatMapper.cs │ │ ├── FontMapper.cs │ │ ├── LegendMapper.cs │ │ ├── LineFormatMapper.cs │ │ ├── PlotAreaMapper.cs │ │ ├── SeriesCollectionMapper.cs │ │ └── XValuesMapper.cs │ ├── MigraDoc.Rendering.Forms │ │ ├── DocumentPreview.cs │ │ ├── DocumentPreview.resx │ │ ├── DocumentPreviewWpf.cs │ │ ├── DocumentPreviewWpf.resx │ │ └── enums │ │ │ └── Zoom.cs │ ├── MigraDoc.Rendering.Printing │ │ └── MigraDocPrintDocument.cs │ ├── MigraDoc.Rendering.Resources │ │ ├── Messages.cs │ │ ├── Messages.de.restext │ │ └── Messages.restext │ ├── MigraDoc.Rendering.UnitTest │ │ ├── TestLayout.cs │ │ ├── TestParagraphIterator.cs │ │ ├── TestParagraphRenderer.cs │ │ ├── TestTable.cs │ │ └── ValueDumper.cs │ ├── MigraDoc.Rendering.Windows │ │ ├── DocumentPreview.xaml │ │ ├── DocumentPreview.xaml.cs │ │ └── enums │ │ │ └── Zoom.cs │ ├── MigraDoc.Rendering.csproj │ ├── MigraDoc.Rendering │ │ ├── Area.cs │ │ ├── BarcodeFormatInfo.cs │ │ ├── BarcodeRenderInfo.cs │ │ ├── BarcodeRenderer.cs │ │ ├── BordersRenderer.cs │ │ ├── ChartFormatInfo.cs │ │ ├── ChartRenderInfo.cs │ │ ├── ChartRenderer.cs │ │ ├── ColorHelper.cs │ │ ├── DocumentRenderer.cs │ │ ├── FieldInfos.cs │ │ ├── FillFormatRenderer.cs │ │ ├── FontHandler.cs │ │ ├── FormatInfo.cs │ │ ├── FormattedCell.cs │ │ ├── FormattedDocument.cs │ │ ├── FormattedHeaderFooter.cs │ │ ├── FormattedTextArea.cs │ │ ├── FormattedTextFrame.cs │ │ ├── IAreaProvider.cs │ │ ├── ImageFormatInfo.cs │ │ ├── ImageRenderInfo.cs │ │ ├── ImageRenderer.cs │ │ ├── LayoutInfo.cs │ │ ├── LineFormatRenderer.cs │ │ ├── NumberFormatter.cs │ │ ├── PageBreakFormatInfo.cs │ │ ├── PageBreakRenderInfo.cs │ │ ├── PageBreakRenderer.cs │ │ ├── PageInfo.cs │ │ ├── ParagraphFormatInfo.cs │ │ ├── ParagraphIterator.cs │ │ ├── ParagraphRenderInfo.cs │ │ ├── ParagraphRenderer.cs │ │ ├── PdfDocumentRenderer.cs │ │ ├── PdfPrinter.cs │ │ ├── RenderInfo.cs │ │ ├── Renderer.cs │ │ ├── ShadingRenderer.cs │ │ ├── ShapeFormatInfo.cs │ │ ├── ShapeRenderInfo.cs │ │ ├── ShapeRenderer.cs │ │ ├── TableFormatInfo.cs │ │ ├── TableRenderInfo.cs │ │ ├── TableRenderer.cs │ │ ├── TextFrameFormatInfo.cs │ │ ├── TextFrameRenderInfo.cs │ │ ├── TextFrameRenderer.cs │ │ ├── TopDownFormatter.cs │ │ └── enums │ │ │ ├── ElementAlignment.cs │ │ │ ├── Floating.cs │ │ │ ├── HorizontalReference.cs │ │ │ ├── ImageFailure.cs │ │ │ ├── PageRenderOptions.cs │ │ │ └── VerticalReference.cs │ ├── RenderingTester │ │ ├── App.ico │ │ ├── AssemblyInfo.cs │ │ ├── Form1.cs │ │ ├── Form1.resx │ │ └── RenderingTester.csproj │ ├── StrongnameKey.snk │ ├── VersionInfo.cs │ └── ZipRenderer.cmd │ └── MigraDoc.RtfRendering │ ├── AssemblyInfo.cs │ ├── MigraDoc.RtfRendering-WPF.csproj │ ├── MigraDoc.RtfRendering.csproj │ ├── MigraDoc.RtfRendering.resources │ ├── Messages.cs │ ├── Messages.de.restext │ ├── Messages.restext │ └── PDF.png │ ├── MigraDoc.RtfRendering │ ├── BookmarkFieldRenderer.cs │ ├── BorderRenderer.cs │ ├── BorderRendererBase.cs │ ├── BordersRenderer.cs │ ├── CellFormatRenderer.cs │ ├── CellRenderer.cs │ ├── CharacterRenderer.cs │ ├── ChartRenderer.cs │ ├── DateFieldRenderer.cs │ ├── FieldRenderer.cs │ ├── FontRenderer.cs │ ├── FootnoteRenderer.cs │ ├── FormattedTextRenderer.cs │ ├── HeaderFooterRenderer.cs │ ├── HeadersFootersRenderer.cs │ ├── HyperlinkRenderer.cs │ ├── ImageRenderer.cs │ ├── InfoFieldRenderer.cs │ ├── ListInfoOverrideRenderer.cs │ ├── ListInfoRenderer.cs │ ├── NumPagesFieldRenderer.cs │ ├── NumericFieldRendererBase.cs │ ├── PageBreakRenderer.cs │ ├── PageFieldRenderer.cs │ ├── PageRefFieldRenderer.cs │ ├── PageSetupRenderer.cs │ ├── ParagraphFormatRenderer.cs │ ├── ParagraphRenderer.cs │ ├── RendererBase.cs │ ├── RendererFactory.cs │ ├── RowRenderer.cs │ ├── RowsRenderer.cs │ ├── RtfDocumentRenderer.cs │ ├── RtfWriter.cs │ ├── SectionFieldRenderer.cs │ ├── SectionPagesFieldRenderer.cs │ ├── SectionRenderer.cs │ ├── ShadingRenderer.cs │ ├── ShapeRenderer.cs │ ├── StyleAndFormatRenderer.cs │ ├── StyleRenderer.cs │ ├── TabStopRenderer.cs │ ├── TabStopsRenderer.cs │ ├── TableRenderer.cs │ ├── TextFrameRenderer.cs │ ├── TextRenderer.cs │ └── enums │ │ └── RtfUnit.cs │ ├── MigraDocLite.RtfRendering.csproj.txt │ ├── PdfSharp.Drawing.Shapes │ └── Shape.cs │ ├── StrongnameKey.snk │ └── VersionInfo.cs ├── PDFsharp └── code │ ├── BuildAll-PdfSharp-VS2010.sln │ ├── BuildAll-PdfSharp-WPF-VS2010.sln │ ├── PdfSharp.Charting │ ├── AssemblyInfo.cs │ ├── PdfSharp.Charting-WPF.csproj │ ├── PdfSharp.Charting.Renderers │ │ ├── AreaChartRenderer.cs │ │ ├── AreaPlotAreaRenderer.cs │ │ ├── AxisRenderer.cs │ │ ├── AxisTitleRenderer.cs │ │ ├── BarChartRenderer.cs │ │ ├── BarClusteredLegendRenderer.cs │ │ ├── BarClusteredPlotAreaRenderer.cs │ │ ├── BarDataLabelRenderer.cs │ │ ├── BarGridlinesRenderer.cs │ │ ├── BarPlotAreaRenderer.cs │ │ ├── BarStackedPlotAreaRenderer.cs │ │ ├── ChartRenderer.cs │ │ ├── Colors.cs │ │ ├── ColumnChartRenderer.cs │ │ ├── ColumnClusteredPlotAreaRenderer.cs │ │ ├── ColumnDataLabelRenderer.cs │ │ ├── ColumnLikeChartRenderer.cs │ │ ├── ColumnLikeGridlinesRenderer.cs │ │ ├── ColumnLikeLegendRenderer.cs │ │ ├── ColumnLikePlotAreaRenderer.cs │ │ ├── ColumnPlotAreaRenderer.cs │ │ ├── ColumnStackedPlotAreaRenderer.cs │ │ ├── CombinationChartRenderer.cs │ │ ├── Converter.cs │ │ ├── DataLabelRenderer.cs │ │ ├── GridlinesRenderer.cs │ │ ├── HorizontalStackedYAxisRenderer.cs │ │ ├── HorizontalXAxisRenderer.cs │ │ ├── HorizontalYAxisRenderer.cs │ │ ├── LegendEntryRenderer.cs │ │ ├── LegendRenderer.cs │ │ ├── LineChartRenderer.cs │ │ ├── LineFormatRenderer.cs │ │ ├── LinePlotAreaRenderer.cs │ │ ├── MarkerRenderer.cs │ │ ├── PieChartRenderer.cs │ │ ├── PieClosedPlotAreaRenderer.cs │ │ ├── PieDataLabelRenderer.cs │ │ ├── PieExplodedPlotAreaRenderer.cs │ │ ├── PieLegendRenderer.cs │ │ ├── PiePlotAreaRenderer.cs │ │ ├── PlotAreaBorderRenderer.cs │ │ ├── PlotAreaRenderer.cs │ │ ├── Renderer.cs │ │ ├── RendererInfo.cs │ │ ├── RendererParameters.cs │ │ ├── VerticalStackedYAxisRenderer.cs │ │ ├── VerticalXAxisRenderer.cs │ │ ├── VerticalYAxisRenderer.cs │ │ ├── WallRenderer.cs │ │ ├── XAxisRenderer.cs │ │ └── YAxisRenderer.cs │ ├── PdfSharp.Charting.csproj │ ├── PdfSharp.Charting │ │ ├── Axis.cs │ │ ├── AxisTitle.cs │ │ ├── Chart.cs │ │ ├── ChartFrame.cs │ │ ├── ChartObject.cs │ │ ├── DataLabel.cs │ │ ├── DocumentObject.cs │ │ ├── DocumentObjectCollection.cs │ │ ├── FillFormat.cs │ │ ├── Font.cs │ │ ├── Gridlines.cs │ │ ├── Legend.cs │ │ ├── LineFormat.cs │ │ ├── PSCSR.cs │ │ ├── PlotArea.cs │ │ ├── Point.cs │ │ ├── Series.cs │ │ ├── SeriesCollection.cs │ │ ├── SeriesElements.cs │ │ ├── TickLabels.cs │ │ ├── XSeries.cs │ │ ├── XSeriesElements.cs │ │ ├── XValue.cs │ │ ├── XValues.cs │ │ └── enums │ │ │ ├── BlankType.cs │ │ │ ├── ChartType.cs │ │ │ ├── DataLabelPosition.cs │ │ │ ├── DataLabelType.cs │ │ │ ├── DockingType.cs │ │ │ ├── FontProperties.cs │ │ │ ├── HorizontalAlignment.cs │ │ │ ├── LineStyle.cs │ │ │ ├── MarkerStyle.cs │ │ │ ├── TickMarkType.cs │ │ │ ├── Underline.cs │ │ │ └── VerticalAlignment.cs │ ├── Resources │ │ ├── Messages.de.restext │ │ └── Messages.restext │ └── StrongnameKey.snk │ └── PdfSharp │ ├── !internal │ ├── Directives.cs │ └── TargetContext.cs │ ├── AssemblyInfo-AG.cs │ ├── PdfSharp-AG.csproj │ ├── PdfSharp-Hybrid.csproj │ ├── PdfSharp-WPF.csproj │ ├── PdfSharp.Drawing.BarCodes │ ├── BarCode.cs │ ├── BarCodeRenderInfo.cs │ ├── BcgSR.cs │ ├── Code128.cs │ ├── Code2of5Interleaved.cs │ ├── Code3of9Standard.cs │ ├── CodeBase.cs │ ├── CodeDataMatrix.cs │ ├── CodeOmr.cs │ ├── DataMatrixImage.cs │ ├── Ean13.cs │ ├── MatrixCode.cs │ ├── OmrData.cs │ ├── ThickThinBarcodeRenderer.cs │ └── enums │ │ ├── AnchorType.cs │ │ ├── Code128Type.cs │ │ ├── CodeDirection.cs │ │ ├── CodeType.cs │ │ ├── DataMatrixEncoding.cs │ │ ├── MarkDistance.cs │ │ └── TextLocation.cs │ ├── PdfSharp.Drawing.Layout │ ├── XTextFormatter.cs │ └── enums │ │ └── XParagraphAlignment.cs │ ├── PdfSharp.Drawing.Pdf │ ├── PdfGraphicsState.cs │ ├── XGraphicsPdfRenderer.cs │ └── enums │ │ ├── DirtyFlags.cs │ │ └── StreamMode.cs │ ├── PdfSharp.Drawing.Shapes │ └── Shape.cs │ ├── PdfSharp.Drawing.Wpf │ └── !info.txt │ ├── PdfSharp.Drawing │ ├── FontHelper.cs │ ├── GeometryHelper.cs │ ├── GraphicsStateStack.cs │ ├── IXGraphicsRenderer.cs │ ├── ImageHelper.cs │ ├── InternalGraphicsState.cs │ ├── PdfFontOptions.cs │ ├── XBrush.cs │ ├── XBrushes.cs │ ├── XColor.cs │ ├── XColorResourceManager.cs │ ├── XColors.cs │ ├── XConvert.cs │ ├── XFont.cs │ ├── XFontFamily.cs │ ├── XFontMetrics.cs │ ├── XFontStretch.cs │ ├── XFontWeight.cs │ ├── XFontWeights.cs │ ├── XForm.cs │ ├── XGlyphTypeface.cs │ ├── XGraphics.cs │ ├── XGraphicsContainer.cs │ ├── XGraphicsPath.cs │ ├── XGraphicsPathInternals.cs │ ├── XGraphicsPathItem.cs │ ├── XGraphicsState.cs │ ├── XImage.cs │ ├── XImageFormat.cs │ ├── XKnownColorTable.cs │ ├── XLinearGradientBrush.cs │ ├── XMatrix.cs │ ├── XPdfForm.cs │ ├── XPen.cs │ ├── XPens.cs │ ├── XPoint.cs │ ├── XPrivateFontCollection.cs │ ├── XRect.cs │ ├── XSize.cs │ ├── XSolidBrush.cs │ ├── XStringFormat.cs │ ├── XStringFormats.cs │ ├── XTypeFace.cs │ ├── XUnit.cs │ ├── XVector.cs │ └── enums │ │ ├── PathStart.cs │ │ ├── XColorSpace.cs │ │ ├── XCombineMode.cs │ │ ├── XDashStyle.cs │ │ ├── XFillMode.cs │ │ ├── XFontStyle.cs │ │ ├── XGraphicRenderTarget.cs │ │ ├── XGraphicsPathItemType.cs │ │ ├── XGraphicsPdfPageOptions.cs │ │ ├── XGraphicsUnit.cs │ │ ├── XKnownColor.cs │ │ ├── XLineAlignment.cs │ │ ├── XLineCap.cs │ │ ├── XLineJoin.cs │ │ ├── XLinearGradientMode.cs │ │ ├── XMatrixOrder.cs │ │ ├── XPageDirection.cs │ │ ├── XSmoothingMode.cs │ │ └── XStringAlignment.cs │ ├── PdfSharp.Fonts.OpenType │ ├── ExternalHelper.cs │ ├── FontData.cs │ ├── FontDataStock.cs │ ├── GenericFontTable.cs │ ├── GlyphDataTable.cs │ ├── IRefFontTable.cs │ ├── IndexToLocationTable.cs │ ├── OpenTypeDescriptor.cs │ ├── OpenTypeFontTable.cs │ ├── OpenTypeFontWriter.cs │ ├── OpenTypeStructures.cs │ ├── TableDirectoryEntry.cs │ └── enums │ │ ├── FontTechnology.cs │ │ ├── TableTag.cs │ │ └── TableTagNames.cs │ ├── PdfSharp.Fonts │ ├── AdobeGlyphList20.cs │ ├── AdobeGlyphListForNewFonts.cs │ ├── CMapInfo.cs │ ├── FontDescriptor.cs │ ├── FontDescriptorStock.cs │ └── FontWriter.cs │ ├── PdfSharp.Forms │ ├── ColorComboBox.cs │ ├── DeviceInfos.cs │ ├── PagePreview.cs │ ├── PagePreview.resx │ ├── PagePreviewCanvas.cs │ ├── PagePreviewCanvas.resx │ └── enums │ │ ├── RenderMode.cs │ │ └── Zoom.cs │ ├── PdfSharp.Internal │ ├── Calc.cs │ ├── ColorHelper.cs │ ├── DoubleUtil.cs │ ├── FontHelper14.cs │ ├── NativeMethods.cs │ └── TokenizerHelper.cs │ ├── PdfSharp.Pdf.AcroForms │ ├── PdfAcroField.cs │ ├── PdfAcroForm.cs │ ├── PdfButtonField.cs │ ├── PdfCheckBoxField.cs │ ├── PdfChoiceField.cs │ ├── PdfComboBoxField.cs │ ├── PdfGenericField.cs │ ├── PdfListBoxField.cs │ ├── PdfPushButtonField.cs │ ├── PdfRadioButtonField.cs │ ├── PdfSignatureField.cs │ ├── PdfTextField.cs │ └── enums │ │ └── PdfAcroFieldFlags.cs │ ├── PdfSharp.Pdf.Actions │ ├── PdfAction.cs │ └── enums │ │ └── PdfNamedActionNames.cs │ ├── PdfSharp.Pdf.Advanced │ ├── IContentStream.cs │ ├── PdfCIDFont.cs │ ├── PdfCatalog.cs │ ├── PdfContent.cs │ ├── PdfContents.cs │ ├── PdfDictionaryWithContentStream.cs │ ├── PdfExtGState.cs │ ├── PdfExtGStateTable.cs │ ├── PdfFont.cs │ ├── PdfFontDescriptor.cs │ ├── PdfFontTable.cs │ ├── PdfFormXObject.cs │ ├── PdfFormXObjectTable.cs │ ├── PdfGroupAttributes.cs │ ├── PdfImage.FaxEncode.cs │ ├── PdfImage.cs │ ├── PdfImageTable.cs │ ├── PdfImportedObjectTable.cs │ ├── PdfInternals.cs │ ├── PdfObjectInternals.cs │ ├── PdfPageInheritableObjects.cs │ ├── PdfReference.cs │ ├── PdfResourceMap.cs │ ├── PdfResourceTable.cs │ ├── PdfResources.cs │ ├── PdfShading.cs │ ├── PdfShadingPattern.cs │ ├── PdfShadingTable.cs │ ├── PdfSoftMask.cs │ ├── PdfTilingPattern.cs │ ├── PdfToUnicodeMap.cs │ ├── PdfTrailer.cs │ ├── PdfTransparencyGroupAttributes.cs │ ├── PdfTrueTypeFont.cs │ ├── PdfType0Font.cs │ ├── PdfType1Font.cs │ └── PdfXObject.cs │ ├── PdfSharp.Pdf.Annotations │ ├── PdfAnnotation.cs │ ├── PdfAnnotations.cs │ ├── PdfGenericAnnotation.cs │ ├── PdfLinkAnnotation.cs │ ├── PdfRubberStampAnnotation.cs │ ├── PdfTextAnnotation.cs │ ├── PdfWidgetAnnotation.cs │ └── enums │ │ ├── PdfAnnotationFlags.cs │ │ ├── PdfRubberStampAnnotationIcon.cs │ │ └── PdfTextAnnotationIcon.cs │ ├── PdfSharp.Pdf.Content.Objects │ ├── CObjects.cs │ ├── Operators.cs │ └── enum │ │ ├── OpCodeFlags.cs │ │ └── OpCodeName.cs │ ├── PdfSharp.Pdf.Content │ ├── CLexer.cs │ ├── CParser.cs │ ├── Chars.cs │ ├── ContentReader.cs │ ├── ContentReaderException.cs │ ├── ContentWriter.cs │ └── enums │ │ └── Symbol.cs │ ├── PdfSharp.Pdf.Filters │ ├── ASCII85Decode.cs │ ├── ASCIIHexDecode.cs │ ├── Filter.cs │ ├── Filtering.cs │ ├── FlateDecode.cs │ └── LzwDecode.cs │ ├── PdfSharp.Pdf.IO │ ├── Chars.cs │ ├── Lexer.cs │ ├── Parser.cs │ ├── PdfReader.cs │ ├── PdfReaderException.cs │ ├── PdfWriter.cs │ ├── ShiftStack.cs │ └── enums │ │ ├── PasswordValidity.cs │ │ ├── PdfDocumentOpenMode.cs │ │ ├── PdfWriterLayout.cs │ │ ├── PdfWriterOptions.cs │ │ └── Symbol.cs │ ├── PdfSharp.Pdf.Internal │ ├── AnsiEncoding.cs │ ├── ColorSpaceHelper.cs │ ├── DocEncoding.cs │ ├── GlobalObjectTable.cs │ ├── PdfEncoders.cs │ ├── RawEncoding.cs │ ├── RawUnicodeEncoding.cs │ └── ThreadLocalStorage.cs │ ├── PdfSharp.Pdf.Printing │ └── PdfFilePrinter.cs │ ├── PdfSharp.Pdf.Security │ ├── PdfSecurityHandler.cs │ ├── PdfSecuritySettings.cs │ ├── PdfStandardSecurityHandler.cs │ └── enums │ │ ├── PdfDocumentSecurity.cs │ │ └── PdfUserAccessPermission.cs │ ├── PdfSharp.Pdf │ ├── EntryInfoAttribute.cs │ ├── KeysBase.cs │ ├── KeysMeta.cs │ ├── PdfArray.cs │ ├── PdfBoolean.cs │ ├── PdfBooleanObject.cs │ ├── PdfCustomValue.cs │ ├── PdfCustomValues.cs │ ├── PdfDate.cs │ ├── PdfDictionary.cs │ ├── PdfDocument.cs │ ├── PdfDocumentInformation.cs │ ├── PdfDocumentOptions.cs │ ├── PdfDocumentSettings.cs │ ├── PdfInteger.cs │ ├── PdfIntegerObject.cs │ ├── PdfItem.cs │ ├── PdfLiteral.cs │ ├── PdfName.cs │ ├── PdfNameObject.cs │ ├── PdfNull.cs │ ├── PdfNullObject.cs │ ├── PdfNumber.cs │ ├── PdfNumberObject.cs │ ├── PdfObject.cs │ ├── PdfObjectID.cs │ ├── PdfOutline.cs │ ├── PdfPage.cs │ ├── PdfPages.cs │ ├── PdfReal.cs │ ├── PdfRealObject.cs │ ├── PdfRectangle.cs │ ├── PdfReferenceTable.cs │ ├── PdfString.cs │ ├── PdfStringObject.cs │ ├── PdfUInteger.cs │ ├── PdfUIntegerObject.cs │ ├── PdfViewerPreferences.cs │ ├── TrimMargins.cs │ └── enums │ │ ├── DocumentState.cs │ │ ├── PdfColorMode.cs │ │ ├── PdfCustomValueCompression.cs │ │ ├── PdfFontEmbedding.cs │ │ ├── PdfFontEncoding.cs │ │ ├── PdfOutlineStyle.cs │ │ ├── PdfPageLayout.cs │ │ ├── PdfPageMode.cs │ │ ├── PdfReadingDirection.cs │ │ └── PdfTextStringEncoding.cs │ ├── PdfSharp.SharpZipLib │ ├── Checksums │ │ ├── Adler32.cs │ │ ├── CRC32.cs │ │ └── IChecksum.cs │ ├── ReadMe.txt │ ├── SharpZip │ │ └── SharpZipBaseException.cs │ └── Zip │ │ └── Compression │ │ ├── Deflater.cs │ │ ├── DeflaterConstants.cs │ │ ├── DeflaterEngine.cs │ │ ├── DeflaterHuffman.cs │ │ ├── DeflaterPending.cs │ │ ├── Inflater.cs │ │ ├── InflaterDynHeader.cs │ │ ├── InflaterHuffmanTree.cs │ │ ├── PendingBuffer.cs │ │ └── Streams │ │ ├── DeflaterOutputStream.cs │ │ ├── InflaterInputStream.cs │ │ ├── OutputWindow.cs │ │ └── StreamManipulator.cs │ ├── PdfSharp.Windows │ └── enums │ │ ├── RenderMode.cs │ │ └── Zoom.cs │ ├── PdfSharp.csproj │ ├── PdfSharp │ ├── PSSR.cs │ ├── PageSizeConverter.cs │ ├── PdfSharpException.cs │ ├── ProductVersionInfo.cs │ ├── VersionInfo.cs │ └── enums │ │ ├── PSMsgID.cs │ │ ├── PageOrientation.cs │ │ └── PageSize.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── Resources │ ├── Messages.de.restext │ └── Messages.restext │ └── StrongnameKey.snk ├── PdfSharpMigraDocTestApp ├── App.config ├── BaseDocument.cs ├── PdfSharpMigraDocTestApp.csproj ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── TestDocument.cs ├── PdfSharpMigraDocVs2012.sln └── README.md /BuildLibs/Lakerfield.MigraDoc.1.32.4.nuspec: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Lakerfield.MigraDoc 5 | 1.32.4 6 | Michael Lakerveld 7 | https://github.com/Lakerfield/PdfSharp 8 | false 9 | Special MigraDoc build from Lakerfield 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /BuildLibs/Lakerfield.PdfSharp.1.32.4.nuspec: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Lakerfield.PdfSharp 5 | 1.32.4 6 | Michael Lakerveld 7 | https://github.com/Lakerfield/PdfSharp 8 | false 9 | Special PdfSharp build from Lakerfield 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /BuildLibs/MigraDoc.DocumentObjectModel-WPF.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/BuildLibs/MigraDoc.DocumentObjectModel-WPF.dll -------------------------------------------------------------------------------- /BuildLibs/MigraDoc.Rendering-WPF.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/BuildLibs/MigraDoc.Rendering-WPF.dll -------------------------------------------------------------------------------- /BuildLibs/MigraDoc.RtfRendering-WPF.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/BuildLibs/MigraDoc.RtfRendering-WPF.dll -------------------------------------------------------------------------------- /BuildLibs/PdfSharp-WPF.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/BuildLibs/PdfSharp-WPF.dll -------------------------------------------------------------------------------- /BuildLibs/PdfSharp.Charting-WPF.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/BuildLibs/PdfSharp.Charting-WPF.dll -------------------------------------------------------------------------------- /BuildLibs/Update-From-Release.bat: -------------------------------------------------------------------------------- 1 | copy ..\PDFsharp\code\PdfSharp\bin\Release\PdfSharp-WPF.dll 2 | copy ..\PDFsharp\code\PdfSharp.Charting\bin\Release\PdfSharp.Charting-WPF.dll 3 | copy ..\MigraDoc\code\MigraDoc.DocumentObjectModel\bin\Release\MigraDoc.DocumentObjectModel-WPF.dll 4 | copy ..\MigraDoc\code\MigraDoc.Rendering\bin\Release\MigraDoc.Rendering-WPF.dll 5 | copy ..\MigraDoc\code\MigraDoc.RtfRendering\bin\Release\MigraDoc.RtfRendering-WPF.dll -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/DdlParser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/DdlParser.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/DdlScanner.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/DdlScanner.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/enums/Symbol.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/enums/Symbol.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/enums/TokenType.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.IO/enums/TokenType.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Internals/NEnum.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Internals/NEnum.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Internals/enums/VDFlags.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Internals 36 | { 37 | [Flags] 38 | internal enum VDFlags 39 | { 40 | None = 0, 41 | RefOnly = 0x0001 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Shapes.Charts/enums/MarkerStyle.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Shapes.Charts 36 | { 37 | /// 38 | /// Symbols of a data point in a line chart. 39 | /// 40 | public enum MarkerStyle 41 | { 42 | None, 43 | Circle, 44 | Dash, 45 | Diamond, 46 | Dot, 47 | Plus, 48 | Square, 49 | Star, 50 | Triangle, 51 | X 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Shapes/enums/LineStyle.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Shapes 36 | { 37 | /// 38 | /// Specifies the line style of the LineFormat object. 39 | /// 40 | public enum LineStyle 41 | { 42 | /// 43 | /// A solid line. 44 | /// 45 | Single 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Tables/enums/RowAlignment.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Tables 36 | { 37 | /// 38 | /// Specifies the horizontal alignment of the table. 39 | /// 40 | public enum RowAlignment 41 | { 42 | Left, 43 | Center, 44 | Right 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Tables/enums/RowHeightRule.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Tables 36 | { 37 | /// 38 | /// Specifies the calculation rule of the row height. 39 | /// 40 | public enum RowHeightRule 41 | { 42 | AtLeast, 43 | Auto, 44 | Exactly 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Tables/enums/VerticalAlignment.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Tables 36 | { 37 | /// 38 | /// Specifies the vertical alignment of the cell's content. 39 | /// 40 | public enum VerticalAlignment 41 | { 42 | Top, 43 | Center, 44 | Bottom 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Visitors/IDomVisitable.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel.Visitors 36 | { 37 | internal interface IVisitable 38 | { 39 | /// 40 | /// Allows the visitor object to visit the document object and it's child objects. 41 | /// 42 | void AcceptVisitor(DocumentObjectVisitor visitor, bool visitChildren); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Visitors/PdfFlattenVisitor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Visitors/PdfFlattenVisitor.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Visitors/VisitorBase.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel.Visitors/VisitorBase.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Character.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Character.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Chars.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Chars.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Serializer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Serializer.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Style.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Style.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Styles.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/Styles.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/VersionInfo.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace MigraDoc.DocumentObjectModel 31 | { 32 | using MigraDoc; 33 | internal class VersionInfo 34 | { 35 | public const string Title = "MigraDoc.DocumentObjectModel.dll"; 36 | public const string Description = ""; 37 | public const string Version = ProductVersionInfo.Version; 38 | public const string Company = ProductVersionInfo.Company; 39 | public const string Product = ProductVersionInfo.Product; 40 | public const string Copyright = ProductVersionInfo.Copyright; 41 | public const string Trademark = ProductVersionInfo.Trademark; 42 | public const string Culture = ""; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/BorderType.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | namespace MigraDoc.DocumentObjectModel 34 | { 35 | /// 36 | /// Specifies the type of the Border object and therefore its position. 37 | /// 38 | public enum BorderType 39 | { 40 | Top, 41 | Left, 42 | Bottom, 43 | Right, 44 | Horizontal, // not used in MigraDoc 1.2 45 | Vertical, // not used in MigraDoc 1.2 46 | DiagonalDown, 47 | DiagonalUp 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/FontProperties.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the properties for the font. 39 | /// FOR INTERNAL USE ONLY. 40 | /// 41 | [Flags] 42 | enum FontProperties 43 | { 44 | None = 0x0000, 45 | Name = 0x0001, 46 | Size = 0x0002, 47 | Bold = 0x0004, 48 | Italic = 0x0008, 49 | Underline = 0x0010, 50 | Color = 0x0020, 51 | Border = 0x0040, 52 | Superscript = 0x0080, 53 | Subscript = 0x0100, 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/FootnoteLocation.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Determines the position of the footnote on the page. 39 | /// 40 | public enum FootnoteLocation 41 | { 42 | /// 43 | /// Footnote will be rendered on the bottom of the page. 44 | /// 45 | BottomOfPage, 46 | 47 | /// 48 | /// Footnote will be rendered immediately after the text. 49 | /// 50 | BeneathText 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/LineSpacingRule.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the space between lines in a paragraph. 39 | /// 40 | public enum LineSpacingRule 41 | { 42 | Single, 43 | OnePtFive, 44 | Double, 45 | AtLeast, 46 | Exactly, 47 | Multiple 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/ListType.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the symbol or kind of numbering of the list. 39 | /// 40 | public enum ListType 41 | { 42 | BulletList1, 43 | BulletList2, 44 | BulletList3, 45 | NumberList1, 46 | NumberList2, 47 | NumberList3 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/Orientation.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the page orientation. 39 | /// 40 | public enum Orientation 41 | { 42 | /// 43 | /// Page height is bigger than page width. 44 | /// 45 | Portrait, 46 | /// 47 | /// Page width is bigger than page height. 48 | /// 49 | Landscape 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/OutlineLevel.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the level of a paragraph. 39 | /// 40 | public enum OutlineLevel 41 | { 42 | BodyText, 43 | Level1, 44 | Level2, 45 | Level3, 46 | Level4, 47 | Level5, 48 | Level6, 49 | Level7, 50 | Level8, 51 | Level9, 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/PageFormat.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Standard page sizes. 39 | /// 40 | public enum PageFormat 41 | { 42 | A0, 43 | A1, 44 | A2, 45 | A3, 46 | A4, 47 | A5, 48 | A6, 49 | B5, 50 | Letter, 51 | Legal, 52 | Ledger, 53 | P11x17 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/ParagraphAlignment.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the alignment of a paragraph. 39 | /// 40 | public enum ParagraphAlignment 41 | { 42 | Left, 43 | Center, 44 | Right, 45 | Justify, 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/MigraDoc.DocumentObjectModel/enums/StyleType.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 6 | // David Stephensen (mailto:David.Stephensen@pdfsharp.com) 7 | // 8 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 9 | // 10 | // http://www.pdfsharp.com 11 | // http://www.migradoc.com 12 | // http://sourceforge.net/projects/pdfsharp 13 | // 14 | // Permission is hereby granted, free of charge, to any person obtaining a 15 | // copy of this software and associated documentation files (the "Software"), 16 | // to deal in the Software without restriction, including without limitation 17 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 18 | // and/or sell copies of the Software, and to permit persons to whom the 19 | // Software is furnished to do so, subject to the following conditions: 20 | // 21 | // The above copyright notice and this permission notice shall be included 22 | // in all copies or substantial portions of the Software. 23 | // 24 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 25 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 26 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 27 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 28 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 29 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 30 | // DEALINGS IN THE SOFTWARE. 31 | #endregion 32 | 33 | using System; 34 | 35 | namespace MigraDoc.DocumentObjectModel 36 | { 37 | /// 38 | /// Specifies the type of a Style object. 39 | /// 40 | public enum StyleType 41 | { 42 | /// 43 | /// Style is a paragraph style. 44 | /// 45 | Paragraph, 46 | 47 | /// 48 | /// Style is a character style. Contains font part only. 49 | /// 50 | Character 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/ProductVersionInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/ProductVersionInfo.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.DocumentObjectModel/StrongnameKey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.DocumentObjectModel/StrongnameKey.snk -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 4 | // 5 | // http://www.pdfsharp.com 6 | // http://www.migradoc.com 7 | // http://sourceforge.net/projects/pdfsharp 8 | // 9 | // Permission is hereby granted, free of charge, to any person obtaining a 10 | // copy of this software and associated documentation files (the "Software"), 11 | // to deal in the Software without restriction, including without limitation 12 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 13 | // and/or sell copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following conditions: 15 | // 16 | // The above copyright notice and this permission notice shall be included 17 | // in all copies or substantial portions of the Software. 18 | // 19 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 | // DEALINGS IN THE SOFTWARE. 26 | #endregion 27 | 28 | using System.Reflection; 29 | using System.Runtime.CompilerServices; 30 | using MigraDoc.Rendering; 31 | 32 | [assembly: AssemblyTitle(VersionInfo.Title)] 33 | [assembly: AssemblyDescription(VersionInfo.Description)] 34 | [assembly: AssemblyCompany(VersionInfo.Company)] 35 | #if DEBUG 36 | [assembly: AssemblyProduct(VersionInfo.Product + " (Debug Build)")] 37 | #else 38 | [assembly: AssemblyProduct(VersionInfo.Product)] 39 | #endif 40 | [assembly: AssemblyCopyright(VersionInfo.Copyright)] 41 | [assembly: AssemblyTrademark(VersionInfo.Trademark)] 42 | [assembly: AssemblyVersion(VersionInfo.Version)] 43 | [assembly: AssemblyCulture(VersionInfo.Culture)] 44 | 45 | [assembly: AssemblyDelaySign(false)] 46 | [assembly: AssemblyKeyName("")] 47 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering.UnitTest/TestParagraphIterator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MigraDoc.DocumentObjectModel; 3 | using MigraDoc.Rendering; 4 | 5 | namespace MigraDoc.Rendering.UnitTest 6 | { 7 | /// 8 | /// Summary description for TestParagraphIterator. 9 | /// 10 | public class TestParagraphIterator 11 | { 12 | public TestParagraphIterator() 13 | { 14 | 15 | } 16 | 17 | public static string GetIterators(Paragraph paragraph) 18 | { 19 | ParagraphIterator iter = new ParagraphIterator(paragraph.Elements); 20 | iter = iter.GetFirstLeaf(); 21 | string retString = ""; 22 | while (iter != null) 23 | { 24 | retString += "[" + iter.Current.GetType().Name + ":]"; 25 | if (iter.Current is Text) 26 | retString += ((Text)iter.Current).Content; 27 | 28 | iter = iter.GetNextLeaf(); 29 | } 30 | return retString; 31 | } 32 | 33 | public static string GetBackIterators(Paragraph paragraph) 34 | { 35 | ParagraphIterator iter = new ParagraphIterator(paragraph.Elements); 36 | iter = iter.GetLastLeaf(); 37 | string retString = ""; 38 | while (iter != null) 39 | { 40 | retString += "[" + iter.Current.GetType().Name + ":]"; 41 | if (iter.Current is Text) 42 | retString += ((Text)iter.Current).Content; 43 | 44 | iter = iter.GetPreviousLeaf(); 45 | } 46 | return retString; 47 | } 48 | 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering.UnitTest/ValueDumper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | namespace MigraDoc.Rendering.UnitTest 4 | { 5 | /// 6 | /// Summary description for ValueDumper. 7 | /// 8 | internal class ValueDumper 9 | { 10 | internal ValueDumper() 11 | { 12 | } 13 | 14 | internal static string DumpValues(object obj) 15 | { 16 | string dumpString = "[" + obj.GetType() + "]\r\n"; 17 | foreach (FieldInfo fieldInfo in obj.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Instance)) 18 | { 19 | if (fieldInfo.FieldType.IsValueType) 20 | { 21 | dumpString += " " + fieldInfo.Name + " = " + fieldInfo.GetValue(obj) + "\r\n"; 22 | } 23 | } 24 | return dumpString; 25 | 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering.Windows/DocumentPreview.xaml: -------------------------------------------------------------------------------- 1 |  5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/BarcodeFormatInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Contributors: 7 | // Adam Brengesjö (mailto:ca.brengesjo@gmail.com) 8 | // 9 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 10 | // 11 | // http://www.pdfsharp.com 12 | // http://www.migradoc.com 13 | // http://sourceforge.net/projects/pdfsharp 14 | // 15 | // Permission is hereby granted, free of charge, to any person obtaining a 16 | // copy of this software and associated documentation files (the "Software"), 17 | // to deal in the Software without restriction, including without limitation 18 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 19 | // and/or sell copies of the Software, and to permit persons to whom the 20 | // Software is furnished to do so, subject to the following conditions: 21 | // 22 | // The above copyright notice and this permission notice shall be included 23 | // in all copies or substantial portions of the Software. 24 | // 25 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 26 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 27 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 28 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 29 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 30 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 31 | // DEALINGS IN THE SOFTWARE. 32 | #endregion 33 | 34 | using System; 35 | using PdfSharp.Drawing; 36 | 37 | namespace MigraDoc.Rendering 38 | { 39 | /// 40 | /// Formatting information for an barcode. 41 | /// 42 | internal class BarcodeFormatInfo : ShapeFormatInfo 43 | { 44 | internal BarcodeFormatInfo() 45 | { 46 | } 47 | 48 | internal XUnit Width; 49 | internal XUnit Height; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/ChartFormatInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | using PdfSharp.Charting; 33 | 34 | namespace MigraDoc.Rendering 35 | { 36 | /// 37 | /// Formatting information for a chart. 38 | /// 39 | internal class ChartFormatInfo : ShapeFormatInfo 40 | { 41 | internal ChartFrame chartFrame; 42 | internal FormattedTextArea formattedHeader; 43 | internal FormattedTextArea formattedLeft; 44 | internal FormattedTextArea formattedTop; 45 | internal FormattedTextArea formattedBottom; 46 | internal FormattedTextArea formattedRight; 47 | internal FormattedTextArea formattedFooter; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/ChartRenderInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Rendering information for charts. 37 | /// 38 | internal class ChartRenderInfo : ShapeRenderInfo 39 | { 40 | internal ChartRenderInfo() 41 | { 42 | } 43 | 44 | internal override FormatInfo FormatInfo 45 | { 46 | get 47 | { 48 | if (this.formatInfo == null) 49 | this.formatInfo = new ChartFormatInfo(); 50 | return this.formatInfo; 51 | } 52 | } 53 | ChartFormatInfo formatInfo; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/ImageFormatInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | using PdfSharp.Drawing; 33 | 34 | namespace MigraDoc.Rendering 35 | { 36 | /// 37 | /// Formatting information for an image. 38 | /// 39 | internal class ImageFormatInfo : ShapeFormatInfo 40 | { 41 | internal ImageFormatInfo() 42 | { 43 | } 44 | 45 | internal int CropX; 46 | internal int CropY; 47 | internal int CropWidth; 48 | internal int CropHeight; 49 | internal XUnit Width; 50 | internal XUnit Height; 51 | 52 | internal ImageFailure failure; 53 | internal string ImagePath; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/ImageRenderInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Represents rendering information for images. 37 | /// 38 | internal class ImageRenderInfo : ShapeRenderInfo 39 | { 40 | public ImageRenderInfo() 41 | { 42 | } 43 | 44 | internal override FormatInfo FormatInfo 45 | { 46 | get 47 | { 48 | if (this.formatInfo == null) 49 | this.formatInfo = new ImageFormatInfo(); 50 | return this.formatInfo; 51 | } 52 | } 53 | ImageFormatInfo formatInfo; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/ShapeRenderInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | using MigraDoc.DocumentObjectModel; 33 | using PdfSharp.Drawing; 34 | using MigraDoc.DocumentObjectModel.Shapes; 35 | 36 | namespace MigraDoc.Rendering 37 | { 38 | /// 39 | /// Rendering information for shapes. 40 | /// 41 | internal abstract class ShapeRenderInfo : RenderInfo 42 | { 43 | internal ShapeRenderInfo() 44 | { 45 | } 46 | 47 | internal override DocumentObject DocumentObject 48 | { 49 | get { return this.shape; } 50 | } 51 | internal Shape shape; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/TextFrameFormatInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Formatting information for textframes. 37 | /// 38 | internal class TextFrameFormatInfo : ShapeFormatInfo 39 | { 40 | internal FormattedTextFrame formattedTextFrame; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/TextFrameRenderInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Summary description for TextFrameRenderInfo. 37 | /// 38 | internal class TextFrameRenderInfo : ShapeRenderInfo 39 | { 40 | internal TextFrameRenderInfo() 41 | { 42 | } 43 | internal override FormatInfo FormatInfo 44 | { 45 | get 46 | { 47 | if (this.formatInfo == null) 48 | this.formatInfo = new TextFrameFormatInfo(); 49 | 50 | return this.formatInfo; 51 | } 52 | } 53 | private TextFrameFormatInfo formatInfo; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/TopDownFormatter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/TopDownFormatter.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/enums/ElementAlignment.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Alignment of layout elements. 37 | /// 38 | internal enum ElementAlignment 39 | { 40 | Near = 0, //Default 41 | Center, 42 | Far, 43 | Inside, 44 | Outside 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/enums/Floating.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Floating behavior of layout elements. 37 | /// 38 | internal enum Floating 39 | { 40 | TopBottom = 0, //Default 41 | None, //The element is ignored 42 | 43 | //Served for future extensions: 44 | Left, 45 | Right, 46 | BothSides, 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/enums/HorizontalReference.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | /// 36 | /// Horizontal reference point of alignment. 37 | /// 38 | internal enum HorizontalReference 39 | { 40 | AreaBoundary = 0, //Default 41 | PageMargin, 42 | Page 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/enums/ImageFailure.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | internal enum ImageFailure 36 | { 37 | None = 0, 38 | FileNotFound, 39 | InvalidType, 40 | NotRead, 41 | EmptySize 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/MigraDoc.Rendering/enums/VerticalReference.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.Rendering 34 | { 35 | internal enum VerticalReference 36 | { 37 | PreviousElement = 0, //Default 38 | AreaBoundary, 39 | PageMargin, 40 | Page 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/RenderingTester/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.Rendering/RenderingTester/App.ico -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/StrongnameKey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.Rendering/StrongnameKey.snk -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/VersionInfo.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace MigraDoc.Rendering 31 | { 32 | using MigraDoc; 33 | internal class VersionInfo 34 | { 35 | public const string Title = "MigraDoc.Rendering.dll"; 36 | public const string Description = ""; 37 | public const string Version = ProductVersionInfo.Version; 38 | public const string Creator = ProductVersionInfo.Creator; 39 | public const string Company = ProductVersionInfo.Company; 40 | public const string Product = ProductVersionInfo.Product; 41 | public const string Copyright = ProductVersionInfo.Copyright; 42 | public const string Trademark = ProductVersionInfo.Trademark; 43 | public const string Culture = ""; 44 | } 45 | } -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.Rendering/ZipRenderer.cmd: -------------------------------------------------------------------------------- 1 | del XGraphicsRenderer.zip 2 | 3 | zip -9 -rS XGraphicsRenderer.zip * -x *.dll *.lib *.exe *.bak *.bsc *.csm *.dep *.exp *.ilk *.map *.ncb *.obj *.pdb *.plg *.pch *.res *.rw? *.sbr *.zip *.#?? *.~* vc60.* *.idb *.aps rc*. *.sql *.ldb *.tmp *.dmp *.in *.msi *.htm 4 | 5 | pause 6 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 4 | // 5 | // http://www.pdfsharp.com 6 | // http://www.migradoc.com 7 | // http://sourceforge.net/projects/pdfsharp 8 | // 9 | // Permission is hereby granted, free of charge, to any person obtaining a 10 | // copy of this software and associated documentation files (the "Software"), 11 | // to deal in the Software without restriction, including without limitation 12 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 13 | // and/or sell copies of the Software, and to permit persons to whom the 14 | // Software is furnished to do so, subject to the following conditions: 15 | // 16 | // The above copyright notice and this permission notice shall be included 17 | // in all copies or substantial portions of the Software. 18 | // 19 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 22 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 | // DEALINGS IN THE SOFTWARE. 26 | #endregion 27 | 28 | using System.Reflection; 29 | using System.Runtime.CompilerServices; 30 | using MigraDoc.RtfRendering; 31 | 32 | [assembly: AssemblyTitle(VersionInfo.Title)] 33 | [assembly: AssemblyDescription(VersionInfo.Description)] 34 | [assembly: AssemblyCompany(VersionInfo.Company)] 35 | #if DEBUG 36 | [assembly: AssemblyProduct(VersionInfo.Product + " (Debug Build)")] 37 | #else 38 | [assembly: AssemblyProduct(VersionInfo.Product)] 39 | #endif 40 | [assembly: AssemblyCopyright(VersionInfo.Copyright)] 41 | [assembly: AssemblyTrademark(VersionInfo.Trademark)] 42 | [assembly: AssemblyVersion(VersionInfo.Version)] 43 | [assembly: AssemblyCulture(VersionInfo.Culture)] 44 | 45 | [assembly: AssemblyDelaySign(false)] 46 | [assembly: AssemblyKeyName("")] 47 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering.resources/PDF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering.resources/PDF.png -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/BookmarkFieldRenderer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/BookmarkFieldRenderer.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/BordersRenderer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/BordersRenderer.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/PageBreakRenderer.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | using MigraDoc.DocumentObjectModel; 33 | 34 | namespace MigraDoc.RtfRendering 35 | { 36 | /// 37 | /// Class to render a PageBreak to RTF. 38 | /// 39 | internal class PageBreakRenderer : RendererBase 40 | { 41 | internal PageBreakRenderer(DocumentObject domObj, RtfDocumentRenderer docRenderer) 42 | : base(domObj, docRenderer) 43 | { 44 | } 45 | 46 | /// 47 | /// Renders a pagebreak to RTF. 48 | /// 49 | internal override void Render() 50 | { 51 | this.rtfWriter.WriteControl("page"); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/RtfWriter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/RtfWriter.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/SectionRenderer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/SectionRenderer.cs -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/MigraDoc.RtfRendering/enums/RtfUnit.cs: -------------------------------------------------------------------------------- 1 | #region MigraDoc - Creating Documents on the Fly 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2001-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://www.migradoc.com 10 | // http://sourceforge.net/projects/pdfsharp 11 | // 12 | // Permission is hereby granted, free of charge, to any person obtaining a 13 | // copy of this software and associated documentation files (the "Software"), 14 | // to deal in the Software without restriction, including without limitation 15 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 16 | // and/or sell copies of the Software, and to permit persons to whom the 17 | // Software is furnished to do so, subject to the following conditions: 18 | // 19 | // The above copyright notice and this permission notice shall be included 20 | // in all copies or substantial portions of the Software. 21 | // 22 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 23 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 24 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 25 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 26 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 27 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 28 | // DEALINGS IN THE SOFTWARE. 29 | #endregion 30 | 31 | using System; 32 | 33 | namespace MigraDoc.RtfRendering 34 | { 35 | /// 36 | /// Units rendered in RTF output. 37 | /// 38 | public enum RtfUnit 39 | { 40 | Twips, 41 | HalfPts, 42 | Lines, 43 | EMU, 44 | CharUnit100, 45 | Undefined 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/StrongnameKey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/MigraDoc/code/MigraDoc.RtfRendering/StrongnameKey.snk -------------------------------------------------------------------------------- /MigraDoc/code/MigraDoc.RtfRendering/VersionInfo.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace MigraDoc.RtfRendering 31 | { 32 | using MigraDoc.RtfRendering; 33 | internal class VersionInfo 34 | { 35 | public const string Title = "MigraDoc.RtfRendering.dll"; 36 | public const string Description = ""; 37 | public const string Version = ProductVersionInfo.Version; 38 | public const string Company = ProductVersionInfo.Company; 39 | public const string Product = ProductVersionInfo.Product; 40 | public const string Copyright = ProductVersionInfo.Copyright; 41 | public const string Trademark = ProductVersionInfo.Trademark; 42 | public const string Culture = ""; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /PDFsharp/code/BuildAll-PdfSharp-WPF-VS2010.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PdfSharp-WPF", "PdfSharp\PdfSharp-WPF.csproj", "{02FCC0BB-2AA2-43BA-8D2F-66D168B87A1D}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PdfSharp.Charting-WPF", "PdfSharp.Charting\PdfSharp.Charting-WPF.csproj", "{E6A2734E-0CD6-4210-8AEC-47EE348F8D78}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {02FCC0BB-2AA2-43BA-8D2F-66D168B87A1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {02FCC0BB-2AA2-43BA-8D2F-66D168B87A1D}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {02FCC0BB-2AA2-43BA-8D2F-66D168B87A1D}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {02FCC0BB-2AA2-43BA-8D2F-66D168B87A1D}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {E6A2734E-0CD6-4210-8AEC-47EE348F8D78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {E6A2734E-0CD6-4210-8AEC-47EE348F8D78}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {E6A2734E-0CD6-4210-8AEC-47EE348F8D78}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {E6A2734E-0CD6-4210-8AEC-47EE348F8D78}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting.Renderers/GridlinesRenderer.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting.Renderers 33 | { 34 | /// 35 | /// Base class for all renderers used to draw gridlines. 36 | /// 37 | internal abstract class GridlinesRenderer : Renderer 38 | { 39 | /// 40 | /// Initializes a new instance of the GridlinesRenderer class with the specified renderer parameters. 41 | /// 42 | internal GridlinesRenderer(RendererParameters parms) 43 | : base(parms) 44 | { 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting.Renderers/LinePlotAreaRenderer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting.Renderers/LinePlotAreaRenderer.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting.Renderers/MarkerRenderer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting.Renderers/MarkerRenderer.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/ChartObject.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using PdfSharp.Drawing; 32 | 33 | namespace PdfSharp.Charting 34 | { 35 | /// 36 | /// Base class for all chart classes. 37 | /// 38 | public class ChartObject : DocumentObject 39 | { 40 | /// 41 | /// Initializes a new instance of the ChartObject class. 42 | /// 43 | public ChartObject() 44 | { 45 | } 46 | 47 | /// 48 | /// Initializes a new instance of the ChartObject class with the specified parent. 49 | /// 50 | internal ChartObject(DocumentObject parent) : base(parent) {} 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/DocumentObjectCollection.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/DocumentObjectCollection.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/PSCSR.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using PdfSharp.Charting; 32 | 33 | namespace PdfSharp.Charting 34 | { 35 | /// 36 | /// The Pdf-Sharp-Charting-String-Resources. 37 | /// 38 | internal class PSCSR 39 | { 40 | internal static string InvalidChartTypeForCombination(ChartType chartType) 41 | { 42 | return string.Format("ChartType '{0}' not valid for combination of charts.", chartType.ToString()); 43 | } 44 | 45 | internal static string PercentNotSupportedByColumnDataLabel 46 | { 47 | get { return "Column data label cannot be set to 'Percent'"; } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/BlankType.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Determines how null values will be handled in a chart. 36 | /// 37 | public enum BlankType 38 | { 39 | /// 40 | /// Null value is not plotted. 41 | /// 42 | NotPlotted, 43 | 44 | /// 45 | /// Null value will be interpolated. 46 | /// 47 | Interpolated, 48 | 49 | /// 50 | /// Null value will be handled as zero. 51 | /// 52 | Zero 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/DataLabelType.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Determines the type of the data label. 36 | /// 37 | public enum DataLabelType 38 | { 39 | /// 40 | /// No DataLabel. 41 | /// 42 | None, 43 | 44 | /// 45 | /// Percentage of the data. For pie charts only. 46 | /// 47 | Percent, 48 | 49 | /// 50 | /// Value of the data. 51 | /// 52 | Value 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/DockingType.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Specifies the legend's position inside the chart. 36 | /// 37 | public enum DockingType 38 | { 39 | /// 40 | /// Above the chart. 41 | /// 42 | Top, 43 | /// 44 | /// Below the chart. 45 | /// 46 | Bottom, 47 | /// 48 | /// Left from the chart. 49 | /// 50 | Left, 51 | /// 52 | /// Right from the chart. 53 | /// 54 | Right 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/FontProperties.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Specifies the properties for the font. 36 | /// FOR INTERNAL USE ONLY. 37 | /// 38 | [Flags] 39 | enum FontProperties 40 | { 41 | None = 0x0000, 42 | Name = 0x0001, 43 | Size = 0x0002, 44 | Bold = 0x0004, 45 | Italic = 0x0008, 46 | Underline = 0x0010, 47 | Color = 0x0020, 48 | Border = 0x0040, 49 | Superscript = 0x0080, 50 | Subscript = 0x0100, 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/HorizontalAlignment.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Used to determine the horizontal alignment of the axis title. 36 | /// 37 | public enum HorizontalAlignment 38 | { 39 | /// 40 | /// Axis title will be left aligned. 41 | /// 42 | Left, 43 | 44 | /// 45 | /// Axis title will be right aligned. 46 | /// 47 | Right, 48 | 49 | /// 50 | /// Axis title will be centered. 51 | /// 52 | Center 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/LineStyle.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Specifies the line style of the LineFormat object. 36 | /// 37 | public enum LineStyle 38 | { 39 | /// 40 | /// 41 | /// 42 | Single 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/PdfSharp.Charting/enums/VerticalAlignment.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp Charting - A .NET charting library based on PDFsharp 2 | // 3 | // Authors: 4 | // Niklas Schneider (mailto:Niklas.Schneider@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Charting 33 | { 34 | /// 35 | /// Used to determine the vertical alignment of the axis title. 36 | /// 37 | public enum VerticalAlignment 38 | { 39 | /// 40 | /// Axis title will be top aligned. 41 | /// 42 | Top, 43 | 44 | /// 45 | /// Axis title will be centered. 46 | /// 47 | Center, 48 | 49 | /// 50 | /// Axis title will be bottom aligned. 51 | /// 52 | Bottom 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/Resources/Messages.de.restext: -------------------------------------------------------------------------------- 1 | ; PDFsharp string resources (German) 2 | ; 3 | ; Must be saved as Unicode (UTF-8 with signature) to force resgen.exe to eat german umlauts. 4 | 5 | CultureID = Deutsch (de) 6 | 7 | ; ----- Charting Messages ------------------------------------------------------------------------- 8 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/Resources/Messages.restext: -------------------------------------------------------------------------------- 1 | ; PDFsharp string resources (English) 2 | ; 3 | ; 4 | 5 | CultureID = Neutral 6 | 7 | ; ----- Charting Messages ------------------------------------------------------------------------- 8 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp.Charting/StrongnameKey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp.Charting/StrongnameKey.snk -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/!internal/TargetContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | using PdfSharp.Drawing; 5 | 6 | namespace PdfSharp.Internal 7 | { 8 | #if GDI && WPF 9 | /// 10 | /// Internal switch indicating what context has to be used if both GDI and WPF are defined. 11 | /// 12 | static class TargetContextHelper 13 | { 14 | public static XGraphicTargetContext TargetContext = XGraphicTargetContext.WPF; 15 | } 16 | #endif 17 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/AssemblyInfo-AG.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PdfSharp_AG")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("PdfSharp_AG")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("9eeb8ac8-68b1-4465-b858-173a44efc3c4")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.BarCodes/enums/Code128Type.cs: -------------------------------------------------------------------------------- 1 | namespace PdfSharp.Drawing.BarCodes 2 | { 3 | /// 4 | /// Code types for Code 128 bar code 5 | /// 6 | public enum Code128Type 7 | { 8 | /// 9 | /// Code A 10 | /// 11 | A = 103, 12 | /// 13 | /// Code B 14 | /// 15 | B = 104, 16 | /// 17 | /// Code buffer 18 | /// 19 | C = 105, 20 | } 21 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.BarCodes/enums/CodeDirection.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Drawing.BarCodes/enums/CodeDirection.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.BarCodes/enums/MarkDistance.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Klaus Potzesny (mailto:Klaus.Potzesny@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing.BarCodes 31 | { 32 | ///// 33 | ///// Valid mark distances for OMR Codes. 34 | ///// 35 | //public enum MarkDistance 36 | //{ 37 | // /// 38 | // /// 2/6 inch, valid for printing with 6 lpi. (line height = 12 pt). 39 | // /// 40 | // Inch1_6, 41 | // /// 42 | // /// 2/6 inch, valid for printing with 6 lpi (line height = 12 pt). 43 | // /// 44 | // Inch2_6, 45 | // /// 46 | // /// 2/8 inch, valid for printing with 8 lpi (line height = 9 pt). 47 | // /// 48 | // Inch2_8 49 | //} 50 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.Layout/XTextFormatter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Drawing.Layout/XTextFormatter.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.Pdf/enums/DirtyFlags.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Drawing.Pdf 33 | { 34 | [Flags] 35 | enum DirtyFlags 36 | { 37 | Ctm = 0x00000001, 38 | ClipPath = 0x00000002, 39 | LineWidth = 0x00000010, 40 | LineJoin = 0x00000020, 41 | MiterLimit = 0x00000040, 42 | StrokeFill = 0x00000070, 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.Pdf/enums/StreamMode.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing.Pdf 31 | { 32 | /// 33 | /// Indicates whether we are within a BT/ET block. 34 | /// 35 | enum StreamMode 36 | { 37 | /// 38 | /// Graphic mode. This is default. 39 | /// 40 | Graphic, 41 | 42 | /// 43 | /// Text mode. 44 | /// 45 | Text, 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing.Wpf/!info.txt: -------------------------------------------------------------------------------- 1 | Reserved for PDFsharp 2.0 -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/IXGraphicsRenderer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Drawing/IXGraphicsRenderer.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/XFontStretch.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Diagnostics; 32 | using System.Runtime.InteropServices; 33 | using System.ComponentModel; 34 | using System.IO; 35 | #if GDI 36 | using System.Drawing; 37 | using System.Drawing.Drawing2D; 38 | #endif 39 | #if WPF 40 | using System.Windows; 41 | using System.Windows.Media; 42 | #endif 43 | using PdfSharp.Internal; 44 | using PdfSharp.Fonts.OpenType; 45 | using PdfSharp.Pdf; 46 | using PdfSharp.Pdf.Advanced; 47 | 48 | namespace PdfSharp.Drawing 49 | { 50 | /// 51 | /// NYI. Reserved for future extensions of PDFsharp. 52 | /// 53 | // [DebuggerDisplay("'{Name}', {Size}")] 54 | public class XFontStretch 55 | { 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/XGraphics.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Drawing/XGraphics.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/XGraphicsContainer.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | #if GDI 32 | using System.Drawing; 33 | using System.Drawing.Drawing2D; 34 | #endif 35 | #if WPF 36 | using System.Windows.Media; 37 | #endif 38 | 39 | namespace PdfSharp.Drawing 40 | { 41 | /// 42 | /// Represents the internal state of an XGraphics object. 43 | /// 44 | public sealed class XGraphicsContainer 45 | { 46 | #if GDI 47 | internal XGraphicsContainer(GraphicsState state) 48 | { 49 | GdiState = state; 50 | } 51 | internal GraphicsState GdiState; 52 | #endif 53 | #if WPF 54 | internal XGraphicsContainer() 55 | { 56 | } 57 | #endif 58 | 59 | internal InternalGraphicsState InternalState; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/XGraphicsPath.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Drawing/XGraphicsPath.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/XGraphicsState.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | #if GDI 32 | using System.Drawing; 33 | using System.Drawing.Drawing2D; 34 | #endif 35 | #if WPF 36 | using System.Windows.Media; 37 | #endif 38 | 39 | namespace PdfSharp.Drawing 40 | { 41 | /// 42 | /// Represents the internal state of an XGraphics object. 43 | /// 44 | public sealed class XGraphicsState 45 | { 46 | #if GDI 47 | internal XGraphicsState(GraphicsState state) 48 | { 49 | GdiState = state; 50 | } 51 | internal GraphicsState GdiState; 52 | #endif 53 | 54 | #if WPF 55 | internal XGraphicsState() 56 | { 57 | } 58 | #endif 59 | 60 | internal InternalGraphicsState InternalState; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/PathStart.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Indicates how to handle the first point of a path. 34 | /// 35 | enum PathStart 36 | { 37 | /// 38 | /// Set the current position to the first point. 39 | /// 40 | MoveTo1st, 41 | 42 | /// 43 | /// Draws a line to the first point. 44 | /// 45 | LineTo1st, 46 | 47 | /// 48 | /// Ignores the first point. 49 | /// 50 | Ignore1st, 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XColorSpace.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Currently not used. Only DeviceRGB is rendered in PDF. 34 | /// 35 | public enum XColorSpace 36 | { 37 | /// 38 | /// Identifies the RGB color space. 39 | /// 40 | Rgb, 41 | 42 | /// 43 | /// Identifies the CMYK color space. 44 | /// 45 | Cmyk, 46 | 47 | /// 48 | /// Identifies the gray scale color space. 49 | /// 50 | GrayScale, 51 | 52 | // Lab? 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XFillMode.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Specifies how the interior of a closed path is filled. 34 | /// 35 | public enum XFillMode // same values as System.Drawing.FillMode 36 | { 37 | /// 38 | /// Specifies the alternate fill mode. Called the 'odd-even rule' in PDF terminology. 39 | /// 40 | Alternate = 0, 41 | 42 | /// 43 | /// Specifies the winding fill mode. Called the 'nonzero winding number rule' in PDF terminology. 44 | /// 45 | Winding = 1, 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XGraphicRenderTarget.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System.Diagnostics; 31 | namespace PdfSharp.Drawing 32 | { 33 | /// 34 | /// Determines whether rendering based on GDI+ or WPF. For internal use only. 35 | /// 36 | enum XGraphicTargetContext 37 | { 38 | /// 39 | /// Renders using GDI+. 40 | /// 41 | GDI = 1, 42 | 43 | /// 44 | /// Renders using WPF (including Silverlight). 45 | /// 46 | WPF = 2, 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XGraphicsPathItemType.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Type of the path data. 34 | /// 35 | internal enum XGraphicsPathItemType 36 | { 37 | Lines, 38 | Beziers, 39 | Curve, 40 | Arc, 41 | Rectangle, 42 | RoundedRectangle, 43 | Ellipse, 44 | Polygon, 45 | CloseFigure, 46 | StartFigure, 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XLineCap.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Specifies the available cap styles with which an XPen object can start and end a line. 34 | /// 35 | public enum XLineCap 36 | { 37 | /// 38 | /// Specifies a flat line cap. 39 | /// 40 | Flat = 0, 41 | 42 | /// 43 | /// Specifies a round line cap. 44 | /// 45 | Round = 1, 46 | 47 | /// 48 | /// Specifies a square line cap. 49 | /// 50 | Square = 2 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XMatrixOrder.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Specifies the order for matrix transform operations. 34 | /// 35 | public enum XMatrixOrder 36 | { 37 | /// 38 | /// The new operation is applied before the old operation. 39 | /// 40 | Prepend = 0, 41 | 42 | /// 43 | /// The new operation is applied after the old operation. 44 | /// 45 | Append = 1, 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Drawing/enums/XPageDirection.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Drawing 31 | { 32 | /// 33 | /// Specifies the direction of the y-axis. 34 | /// 35 | public enum XPageDirection 36 | { 37 | /// 38 | /// Increasing Y values go downwards. This is the default. 39 | /// 40 | Downwards = 0, 41 | 42 | /// 43 | /// Increasing Y values go upwards. This is only possible when drawing on a PDF page. 44 | /// It is not implemented when drawing on a System.Drawing.Graphics object. 45 | /// 46 | Upwards = 1, 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/FontData.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/FontData.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/GlyphDataTable.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/GlyphDataTable.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/IndexToLocationTable.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/IndexToLocationTable.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/OpenTypeStructures.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/OpenTypeStructures.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/TableDirectoryEntry.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/TableDirectoryEntry.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/enums/FontTechnology.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Diagnostics; 32 | 33 | namespace PdfSharp.Fonts.OpenType 34 | { 35 | /// 36 | /// Identifies the technology of an OpenType font file. 37 | /// 38 | enum FontTechnology 39 | { 40 | /// 41 | /// Font is Adobe Postscript font in CFF. 42 | /// 43 | PostscriptOutlines, 44 | 45 | /// 46 | /// Font is a TrueType font. 47 | /// 48 | TrueTypeOutlines, 49 | 50 | /// 51 | /// Font is a TrueType font collection. 52 | /// 53 | TrueTypeCollection 54 | } 55 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Fonts.OpenType/enums/TableTag.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Diagnostics; 32 | 33 | namespace PdfSharp.Fonts.OpenType 34 | { 35 | //enum TableTag 36 | //{ 37 | //} 38 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Forms/PagePreviewCanvas.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | text/microsoft-resx 32 | 33 | 34 | 1.0.0.0 35 | 36 | 37 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 38 | 39 | 40 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 41 | 42 | 43 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Forms/enums/RenderMode.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Forms 31 | { 32 | /// 33 | /// Specifies how to reander the preview. 34 | /// 35 | public enum RenderMode 36 | { 37 | /// 38 | /// Draw immediately. 39 | /// 40 | Direct = 0, 41 | 42 | /// 43 | /// Draw using a metafile 44 | /// 45 | Metafile = 1, 46 | 47 | /// 48 | /// Draw using a bitmap image. 49 | /// 50 | Bitmap = 2 51 | } 52 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfAcroField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfAcroField.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfAcroForm.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfAcroForm.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfChoiceField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfChoiceField.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfSignatureField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfSignatureField.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfTextField.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/PdfTextField.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/enums/PdfAcroFieldFlags.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.AcroForms/enums/PdfAcroFieldFlags.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Actions/enums/PdfNamedActionNames.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf.AcroForms 33 | { 34 | /// 35 | /// Specifies the predefined PDF actions. 36 | /// 37 | public enum PdfNamedActionNames 38 | { 39 | /// 40 | /// Go to next page. 41 | /// 42 | NextPage, 43 | 44 | /// 45 | /// Go to previous page. 46 | /// 47 | PrevPage, 48 | 49 | /// 50 | /// Go to first page. 51 | /// 52 | FirstPage, 53 | 54 | /// 55 | /// Go to last page. 56 | /// 57 | LastPage 58 | } 59 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/IContentStream.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Collections; 32 | using System.Text; 33 | using System.IO; 34 | using PdfSharp.Drawing; 35 | 36 | namespace PdfSharp.Pdf.Advanced 37 | { 38 | internal interface IContentStream 39 | { 40 | PdfResources Resources { get; } 41 | 42 | string GetFontName(XFont font, out PdfFont pdfFont); 43 | 44 | string GetFontName(string idName, byte[] fontData, out PdfFont pdfFont); 45 | 46 | string GetImageName(XImage image); 47 | 48 | string GetFormName(XForm form); 49 | 50 | 51 | } 52 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfCIDFont.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfCIDFont.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfCatalog.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfCatalog.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfExtGState.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfExtGState.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfFont.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfFont.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfFontDescriptor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfFontDescriptor.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfFormXObject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfFormXObject.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfGroupAttributes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfGroupAttributes.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfImage.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfImage.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfResourceTable.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Collections; 32 | using System.Globalization; 33 | using System.Text; 34 | using System.IO; 35 | using PdfSharp.Drawing; 36 | using PdfSharp.Internal; 37 | using PdfSharp.Fonts.OpenType; 38 | 39 | namespace PdfSharp.Pdf.Advanced 40 | { 41 | /// 42 | /// Base class for FontTable, ImageTable, FormXObjectTable etc. 43 | /// 44 | internal class PdfResourceTable 45 | { 46 | public PdfResourceTable(PdfDocument owner) 47 | { 48 | this.owner = owner; 49 | } 50 | protected PdfDocument owner; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfShading.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfShading.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfShadingPattern.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfShadingPattern.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfSoftMask.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfSoftMask.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTilingPattern.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTilingPattern.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTrailer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTrailer.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTransparencyGroupAttributes.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTransparencyGroupAttributes.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTrueTypeFont.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfTrueTypeFont.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfType0Font.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfType0Font.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfType1Font.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Advanced/PdfType1Font.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/PdfAnnotation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/PdfAnnotation.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/PdfLinkAnnotation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/PdfLinkAnnotation.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/PdfWidgetAnnotation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/PdfWidgetAnnotation.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/enums/PdfAnnotationFlags.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Annotations/enums/PdfAnnotationFlags.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content.Objects/enum/OpCodeFlags.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf.Content.Objects 33 | { 34 | /// 35 | /// Specifies the group of operations the op-code belongs to. 36 | /// 37 | [Flags] 38 | public enum OpCodeFlags 39 | { 40 | /// 41 | /// 42 | /// 43 | None, 44 | 45 | /// 46 | /// 47 | /// 48 | TextOut = 0x0001, 49 | //Color, Pattern, Images,... 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content.Objects/enum/OpCodeName.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | #pragma warning disable 1591 31 | 32 | namespace PdfSharp.Pdf.Content.Objects 33 | { 34 | /// 35 | /// The names of the op-codes. 36 | /// 37 | public enum OpCodeName 38 | { 39 | // I know that this is not useable in VB or other languages with no case sensitivity. 40 | b, B, bx, Bx, BDC, BI, BMC, BT, BX, c, cm, CS, cs, d, d0, d1, Do, 41 | DP, EI, EMC, ET, EX, f, F, fx, G, g, gs, h, i, ID, j, J, K, k, l, m, M, MP, 42 | n, q, Q, re, RG, rg, ri, s, S, SC, sc, SCN, scn, sh, 43 | Tx, Tc, Td, TD, Tf, Tj, TJ, TL, Tm, Tr, Ts, Tw, Tz, v, w, W, Wx, y, 44 | QuoteSingle, QuoteDbl, 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content/CLexer.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content/ContentWriter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content/ContentWriter.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Content/enums/Symbol.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf.Content 33 | { 34 | /// 35 | /// Terminal symbols recognized by PDF content stream lexer. 36 | /// 37 | internal enum CSymbol 38 | { 39 | None, 40 | Comment, Integer, Real, /*Boolean?,*/ String, HexString, UnicodeString, UnicodeHexString, 41 | Name, Operator, 42 | BeginArray, EndArray, 43 | Eof, 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/Chars.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/Chars.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/Lexer.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/Parser.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/Parser.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/PdfReader.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/PdfReader.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/PdfWriter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/PdfWriter.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/enums/PasswordValidity.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf.IO 33 | { 34 | /// 35 | /// Determines the type of the password. 36 | /// 37 | public enum PasswordValidity 38 | { 39 | /// 40 | /// Password is neither user nor owner password. 41 | /// 42 | Invalid, 43 | 44 | /// 45 | /// Password is user password. 46 | /// 47 | UserPassword, 48 | 49 | /// 50 | /// Password is owner password. 51 | /// 52 | OwnerPassword, 53 | } 54 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.IO/enums/Symbol.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf.IO 33 | { 34 | /// 35 | /// Terminal symbols recognized by lexer. 36 | /// 37 | internal enum Symbol 38 | { 39 | None, 40 | Comment, Null, Integer, UInteger, Real, Boolean, String, HexString, UnicodeString, UnicodeHexString, 41 | Name, Keyword, 42 | BeginStream, EndStream, 43 | BeginArray, EndArray, 44 | BeginDictionary, EndDictionary, 45 | Obj, EndObj, R, XRef, Trailer, StartXRef, Eof, 46 | } 47 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Internal/DocEncoding.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Internal/DocEncoding.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Internal/PdfEncoders.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Internal/PdfEncoders.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Security/PdfStandardSecurityHandler.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Security/PdfStandardSecurityHandler.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Security/enums/PdfDocumentSecurity.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Pdf.Security 31 | { 32 | /// 33 | /// Specifies the security level of the PDF document. 34 | /// 35 | public enum PdfDocumentSecurityLevel 36 | { 37 | /// 38 | /// Document is not protected. 39 | /// 40 | None, 41 | 42 | /// 43 | /// Document is protected with 40-bit security. This option is for compatibility with 44 | /// Acrobat 3 and 4 only. Use Encrypted128Bit whenever possible. 45 | /// 46 | Encrypted40Bit, 47 | 48 | /// 49 | /// Document is protected with 128-bit security. 50 | /// 51 | Encrypted128Bit, 52 | } 53 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf.Security/enums/PdfUserAccessPermission.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf.Security/enums/PdfUserAccessPermission.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/KeysBase.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Diagnostics; 32 | using System.Collections; 33 | 34 | namespace PdfSharp.Pdf 35 | { 36 | /// 37 | /// Base class for all dictionary Keys classes. 38 | /// 39 | public class KeysBase 40 | { 41 | // public KeysBase() { } 42 | 43 | internal static DictionaryMeta CreateMeta(Type type) 44 | { 45 | return new DictionaryMeta(type); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfBooleanObject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfBooleanObject.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfDocumentInformation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfDocumentInformation.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfNullObject.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfNullObject.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfNumber.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | using System.Globalization; 32 | using System.Collections; 33 | using System.Text; 34 | using System.IO; 35 | using PdfSharp.Internal; 36 | 37 | namespace PdfSharp.Pdf 38 | { 39 | /// 40 | /// Base class for direct number values (not yet used, maybe superfluous). 41 | /// 42 | public abstract class PdfNumber : PdfItem 43 | { 44 | //public PdfNumber() 45 | //{ 46 | //} 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfOutline.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfOutline.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfPage.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfPage.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfRectangle.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfRectangle.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfViewerPreferences.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp.Pdf/PdfViewerPreferences.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/DocumentState.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf 33 | { 34 | /// 35 | /// Identifies the state of the document 36 | /// 37 | [Flags] 38 | enum DocumentState 39 | { 40 | /// 41 | /// The document was created from scratch. 42 | /// 43 | Created = 0x0001, 44 | 45 | /// 46 | /// The document was created by opening an existing PDF file. 47 | /// 48 | Imported = 0x0002, 49 | 50 | /// 51 | /// The document is disposed. 52 | /// 53 | Disposed = 0x8000, 54 | } 55 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/PdfColorMode.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Pdf 31 | { 32 | /// 33 | /// Specifies what color model is used in a PDF document. 34 | /// 35 | public enum PdfColorMode 36 | { 37 | /// 38 | /// All color values are written as specified in the XColor objects they come from. 39 | /// 40 | Undefined, 41 | 42 | /// 43 | /// All colors are converted to RGB. 44 | /// 45 | Rgb, 46 | 47 | /// 48 | /// All colors are converted to CMYK. 49 | /// 50 | Cmyk, 51 | } 52 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/PdfCustomValueCompression.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Pdf 31 | { 32 | /// 33 | /// This class is undocumented and may change or drop in future releases. 34 | /// 35 | public enum PdfCustomValueCompressionMode 36 | { 37 | /// 38 | /// Use document default to determine compression. 39 | /// 40 | Default, 41 | 42 | /// 43 | /// Leave custom values uncompressed. 44 | /// 45 | Uncompressed, 46 | 47 | /// 48 | /// Compress custom values using FlateDecode. 49 | /// 50 | Compressed, 51 | } 52 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/PdfFontEncoding.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf 33 | { 34 | /// 35 | /// Specifies the encoding schema used for an XFont when converted into PDF. 36 | /// 37 | public enum PdfFontEncoding 38 | { 39 | /// 40 | /// Windows ANSI encoding. 41 | /// 42 | WinAnsi = 0, 43 | 44 | /// 45 | /// Alternate name for Windows ANSI encoding. 46 | /// 47 | [Obsolete("Use WinAnsi.")] 48 | CP1252 = 0, 49 | 50 | //BuildIn, // FontSpecific 51 | 52 | /// 53 | /// Unicode encoding. 54 | /// 55 | Unicode = 1, 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/PdfOutlineStyle.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf 33 | { 34 | /// 35 | /// Specifies the font style for the outline (bookmark) text. 36 | /// 37 | [Flags] 38 | public enum PdfOutlineStyle 39 | { 40 | /// 41 | /// Regular font. 42 | /// 43 | Regular = 0, 44 | 45 | /// 46 | /// Italic font. 47 | /// 48 | Italic = 1, 49 | 50 | /// 51 | /// Bold font. 52 | /// 53 | Bold = 2, 54 | 55 | /// 56 | /// Bold and italic font. 57 | /// 58 | BoldItalic = 3, 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/PdfReadingDirection.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Pdf 31 | { 32 | /// 33 | /// Specifies how the document should be displayed by a viewer when opened. 34 | /// 35 | public enum PdfReadingDirection 36 | { 37 | /// 38 | /// Left to right. 39 | /// 40 | LeftToRight, 41 | 42 | /// 43 | /// Right to left (including vertical writing systems, such as Chinese, Japanese, and Korean) 44 | /// 45 | RightToLeft, 46 | } 47 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Pdf/enums/PdfTextStringEncoding.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | using System; 31 | 32 | namespace PdfSharp.Pdf 33 | { 34 | /// 35 | /// Specifies how text strings are encoded. A text string is any text used outside of a page content 36 | /// stream, e.g. document information, outline text, annotation text etc. 37 | /// 38 | public enum PdfTextStringEncoding 39 | { 40 | /// 41 | /// Specifies that hypertext uses PDF DocEncoding. 42 | /// 43 | PDFDocEncoding = 0, 44 | 45 | /// 46 | /// Specifies that hypertext uses unicode encoding. 47 | /// 48 | Unicode = 1, 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.SharpZipLib/ReadMe.txt: -------------------------------------------------------------------------------- 1 | 2 | This code is an excerpt from the SharpZipLib. The code is unmodified except that all classes 3 | are made internal and moved to the namespace PdfSharp.SharpZipLib. 4 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp.Windows/enums/RenderMode.cs: -------------------------------------------------------------------------------- 1 | #region PDFsharp - A .NET library for processing PDF 2 | // 3 | // Authors: 4 | // Stefan Lange (mailto:Stefan.Lange@pdfsharp.com) 5 | // 6 | // Copyright (c) 2005-2009 empira Software GmbH, Cologne (Germany) 7 | // 8 | // http://www.pdfsharp.com 9 | // http://sourceforge.net/projects/pdfsharp 10 | // 11 | // Permission is hereby granted, free of charge, to any person obtaining a 12 | // copy of this software and associated documentation files (the "Software"), 13 | // to deal in the Software without restriction, including without limitation 14 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, 15 | // and/or sell copies of the Software, and to permit persons to whom the 16 | // Software is furnished to do so, subject to the following conditions: 17 | // 18 | // The above copyright notice and this permission notice shall be included 19 | // in all copies or substantial portions of the Software. 20 | // 21 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 | // DEALINGS IN THE SOFTWARE. 28 | #endregion 29 | 30 | namespace PdfSharp.Windows 31 | { 32 | /// 33 | /// Specifies how to render the preview. 34 | /// 35 | public enum RenderMode 36 | { 37 | /// 38 | /// Draw retained 39 | /// 40 | Default = 0, 41 | 42 | ///// 43 | ///// Draw using a metafile 44 | ///// 45 | //Metafile = 1, 46 | 47 | ///// 48 | ///// Draw using a bitmap image. 49 | ///// 50 | //Bitmap = 2 51 | } 52 | } -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp/PageSizeConverter.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp/PageSizeConverter.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp/ProductVersionInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp/ProductVersionInfo.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/PdfSharp/enums/PageSize.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/PdfSharp/enums/PageSize.cs -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/Resources/Messages.de.restext: -------------------------------------------------------------------------------- 1 | ; PDFsharp string resources (German) 2 | ; 3 | ; Must be saved as Unicode (UTF-8 with signature) to force resgen.exe to eat german umlauts. 4 | 5 | ; ----- General Messages -------------------------------------------------------------------------- 6 | 7 | SampleMessage1 = Das ist Beispielnachricht 1 (de). 8 | SampleMessage2 = Das ist Beispielnachricht 2: {0}. 9 | 10 | ; ----- XGraphics Messages ------------------------------------------------------------------------ 11 | 12 | ; ----- Pdf Messages ------------------------------------------------------------------------------ 13 | 14 | NameMustStartWithSlash = Ein PDF-Name muss mit einem Schrägstrich ('/') beginnen. 15 | UserOrOwnerPasswordRequired = Zum Verschlüsseln des Dokuments muß ein Kennwort zum Öffnen (UserPassword) oder ein Berechtigungskennwort (OwnerPassword) gesetzt sein. 16 | 17 | ; ----- PdfParser Messages ------------------------------------------------------------------------ 18 | 19 | UnexpectedToken = Token '{0}' wird an dieser Stelle nicht erwartet. 20 | UnknownEncryption = Das PDF Dokument ist mit einer von PDFsharp nicht unterstützten Verschlüsselung geschützt. 21 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/Resources/Messages.restext: -------------------------------------------------------------------------------- 1 | ; PDFsharp string resources (English) 2 | ; 3 | ; 4 | 5 | ; ----- General Messages -------------------------------------------------------------------------- 6 | 7 | SampleMessage1 = This is sample message 1 (2.0). 8 | SampleMessage2 = This is sample message 2: {0}. 9 | 10 | ; ----- XGraphics Messages ------------------------------------------------------------------------ 11 | 12 | ; ----- Pdf Messages ------------------------------------------------------------------------------ 13 | 14 | NameMustStartWithSlash = A PDF name must start with a slash ('/'). 15 | UserOrOwnerPasswordRequired = At least a user or an owner password is required to encrypt the document. 16 | 17 | ; ----- PdfParser Messages ------------------------------------------------------------------------ 18 | 19 | UnexpectedToken = Token '{0}' was not expected. 20 | UnknownEncryption = The PDF document is protected with an encryption not supported by PDFsharp. 21 | -------------------------------------------------------------------------------- /PDFsharp/code/PdfSharp/StrongnameKey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Lakerfield/PdfSharp/724ef2b7d99f985ad11d0b522ace1ee63bc3c6de/PDFsharp/code/PdfSharp/StrongnameKey.snk -------------------------------------------------------------------------------- /PdfSharpMigraDocTestApp/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /PdfSharpMigraDocTestApp/BaseDocument.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using MigraDoc.DocumentObjectModel; 7 | 8 | namespace PdfSharpMigraDocTestApp 9 | { 10 | public abstract class BaseDocument 11 | { 12 | public Document Document { get; private set; } 13 | public Section CurrentSection { get; private set; } 14 | 15 | protected BaseDocument() 16 | { 17 | InitDocument(); 18 | } 19 | 20 | protected void InitDocument() 21 | { 22 | Document = new Document(); 23 | 24 | CurrentSection = Document.AddSection(); 25 | CurrentSection.PageSetup.PageFormat = PageFormat.A4; 26 | CurrentSection.PageSetup.TopMargin = Unit.FromMillimeter(10); 27 | CurrentSection.PageSetup.LeftMargin = Unit.FromMillimeter(10); 28 | CurrentSection.PageSetup.RightMargin = Unit.FromMillimeter(10); 29 | CurrentSection.PageSetup.BottomMargin = Unit.FromMillimeter(10); 30 | } 31 | 32 | public abstract void DrawDocument(); 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /PdfSharpMigraDocTestApp/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Diagnostics; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace PdfSharpMigraDocTestApp 10 | { 11 | class Program 12 | { 13 | static void Main(string[] args) 14 | { 15 | KillAcroRd32(); 16 | 17 | var doc = new TestDocument(); 18 | 19 | GenerateAndOpen(doc); 20 | } 21 | 22 | private static void KillAcroRd32() 23 | { 24 | const string program = "AcroRd32"; 25 | var processes = Process.GetProcessesByName(program); 26 | foreach (var process in processes) 27 | process.CloseMainWindow();// Kill(); 28 | } 29 | 30 | private static void GenerateAndOpen(BaseDocument document) 31 | { 32 | var pdfStream = new MemoryStream(); 33 | try 34 | { 35 | RenderPdfToStream(pdfStream, document); 36 | 37 | // Reset stream 38 | pdfStream.Position = 0; 39 | var documentPath = new FileInfo("test.pdf"); 40 | File.WriteAllBytes(documentPath.FullName, pdfStream.ToArray()); 41 | 42 | //Start the process 43 | Process proc = Process.Start(documentPath.FullName); 44 | } 45 | finally 46 | { 47 | pdfStream.Dispose(); 48 | } 49 | } 50 | 51 | internal static void RenderPdfToStream(MemoryStream streamToWriteTo, BaseDocument document) 52 | { 53 | document.DrawDocument(); 54 | 55 | var printer = new MigraDoc.Rendering.PdfDocumentRenderer(); 56 | printer.Document = document.Document; 57 | printer.RenderDocument(); 58 | printer.PdfDocument.Save(streamToWriteTo, false); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /PdfSharpMigraDocTestApp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PdfSharpMigraDocTestApp")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("PdfSharpMigraDocTestApp")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("a679b3c4-db2a-4a42-a59d-e1cc2ddee77e")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | --------------------------------------------------------------------------------