{"id":18937392,"url":"https://github.com/verifytests/verify.aspose","last_synced_at":"2026-04-09T05:04:15.532Z","repository":{"id":40085378,"uuid":"224045296","full_name":"VerifyTests/Verify.Aspose","owner":"VerifyTests","description":"Extends Verify to allow verification of documents via Aspose.","archived":false,"fork":false,"pushed_at":"2025-04-07T10:59:22.000Z","size":8617,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T11:28:08.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VerifyTests.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"VerifyTests"}},"created_at":"2019-11-25T21:30:53.000Z","updated_at":"2025-04-07T10:20:07.000Z","dependencies_parsed_at":"2023-12-16T04:45:55.684Z","dependency_job_id":"57425d05-be22-41e1-9f56-6c2ffbd0e99c","html_url":"https://github.com/VerifyTests/Verify.Aspose","commit_stats":{"total_commits":856,"total_committers":4,"mean_commits":214.0,"dds":0.5338785046728972,"last_synced_commit":"65cef08d896601f81620507015d3e783f4e63bb5"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Aspose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Aspose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Aspose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Aspose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.Aspose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129219,"owners_count":21217305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T12:11:01.325Z","updated_at":"2026-04-09T05:04:15.523Z","avatar_url":"https://github.com/VerifyTests.png","language":"C#","funding_links":["https://github.com/sponsors/VerifyTests"],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"/src/icon.png\" height=\"30px\"\u003e Verify.Aspose\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://img.shields.io/appveyor/build/SimonCropp/Verify-Aspose)](https://ci.appveyor.com/project/SimonCropp/Verify-Aspose)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.Aspose.svg)](https://www.nuget.org/packages/Verify.Aspose/)\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow verification of documents via [Aspose](https://www.aspose.com/).\u003c!-- singleLineInclude: intro. path: /docs/intro.include.md --\u003e\n\nConverts documents (pdf, docx, xlsx, and pptx) to png for verification.\n\n**See [Milestones](../../milestones?state=closed) for release notes.**\n\nAn [Aspose License](https://purchase.aspose.com/policies/license-types) is required to use this tool.\n\n\n## Sponsors\n\n\n### Entity Framework Extensions\u003c!-- include: sponsors. path: /docs/sponsors.include.md --\u003e\n\n[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.Aspose) is a major sponsor and is proud to contribute to the development this project.\n\n[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.Aspose/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.Aspose)\n\n### Developed using JetBrains IDEs\n\n[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://jb.gg/OpenSourceSupport)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.Aspose\n\n\n## Usage\n\n\n### Enable Verify.Aspose\n\n\u003c!-- snippet: enable --\u003e\n\u003ca id='snippet-enable'\u003e\u003c/a\u003e\n```cs\n[ModuleInitializer]\npublic static void Initialize() =\u003e\n    VerifyAspose.Initialize();\n```\n\u003csup\u003e\u003ca href='/src/Tests/ModuleInitializer.cs#L5-L11' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-enable' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n### PDF\n\n\n#### Verify a file\n\n\u003c!-- snippet: VerifyPdf --\u003e\n\u003ca id='snippet-VerifyPdf'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyPdf() =\u003e\n    VerifyFile(\"sample.pdf\");\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L5-L11' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyPdf' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Verify a Stream\n\n\u003c!-- snippet: VerifyPdfStream --\u003e\n\u003ca id='snippet-VerifyPdfStream'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyPdfStream()\n{\n    var stream = new MemoryStream(File.ReadAllBytes(\"sample.pdf\"));\n    return Verify(stream, \"pdf\");\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L25-L34' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyPdfStream' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Result\n\n\u003c!-- snippet: Samples.VerifyPdf.verified.txt --\u003e\n\u003ca id='snippet-Samples.VerifyPdf.verified.txt'\u003e\u003c/a\u003e\n```txt\n{\n  Pages: 2,\n  AllowReusePageContent: false,\n  CenterWindow: false,\n  DisplayDocTitle: false,\n  FitWindow: False,\n  HideMenubar: False,\n  HideToolBar: False,\n  HideWindowUI: False,\n  IgnoreCorruptedObjects: True,\n  Info: {\n    Creator: RAD PDF,\n    Producer: RAD PDF 3.9.0.0 - http://www.radpdf.com\n  },\n  IsEncrypted: False,\n  IsLinearized: False,\n  IsPdfaCompliant: False,\n  IsPdfUaCompliant: False,\n  IsXrefGapsAllowed: True,\n  OptimizeSize: False,\n  PageLabels: {},\n  PageLayout: Default,\n  PdfFormat: v_1_4,\n  Version: 1.4,\n  Fonts: [\n    Helvetica\n  ],\n  Text:\n\n\u003ca name=\"br1\"\u003e\u003c/a\u003eA Simple PDF File\n\nThis is a small demonstration .pdf file -\n\njust for use in the Virtual Mechanics tutorials. More text. And more\n\ntext. And more text. And more text. And more text.\n\nAnd more text. And more text. And more text. And more text. And more\n\ntext. And more text. Boring, zzzzz. And more text. And more text. And\n\nmore text. And more text. And more text. And more text. And more text.\n\nAnd more text. And more text.\n\nAnd more text. And more text. And more text. And more text. And more\n\ntext. And more text. And more text. Even more. Continued on page 2 ...\n\n\n\n\n\n\u003ca name=\"br2\"\u003e\u003c/a\u003e \n\nSimple PDF File 2\n\n...continued from page 1. Yet more text. And more text. And more text.\n\nAnd more text. And more text. And more text. And more text. And more\n\ntext. Oh, how boring typing this stuff. But not as boring as watching\n\npaint dry. And more text. And more text. And more text. And more text.\n\nBoring. More, a little more text. The end, and just as well.\n\n\n\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.VerifyPdf.verified.txt#L1-L70' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Samples.VerifyPdf.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n[Samples.VerifyPdf#00.verified.png](/src/Tests/Samples.VerifyPdf%2300.verified.png):\n\n\u003cimg src=\"/src/Tests/Samples.VerifyPdf%2300.verified.png\" width=\"200px\"\u003e\n\n\n### Excel\n\n\n#### Verify a file\n\n\u003c!-- snippet: VerifyExcel --\u003e\n\u003ca id='snippet-VerifyExcel'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyExcel() =\u003e\n    VerifyFile(\"sample.xlsx\");\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L67-L73' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyExcel' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Verify a Stream\n\n\u003c!-- snippet: VerifyExcelStream --\u003e\n\u003ca id='snippet-VerifyExcelStream'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyExcelStream()\n{\n    var stream = new MemoryStream(File.ReadAllBytes(\"sample.xlsx\"));\n    return Verify(stream, \"xlsx\");\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L155-L164' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyExcelStream' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Verify a WorkBook\n\n\u003c!-- snippet: VerifyWorkbook --\u003e\n\u003ca id='snippet-VerifyWorkbook'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyWorkbook()\n{\n    var book = new Workbook\n    {\n        BuiltInDocumentProperties =\n        {\n            Comments = \"the comments\"\n        }\n    };\n    book.CustomDocumentProperties.Add(\"key\", \"value\");\n\n    var sheet = book.Worksheets.Add(\"New Sheet\");\n\n    var cells = sheet.Cells;\n\n    cells[0, 0].PutValue(\"Some Text\");\n    return Verify(book);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L120-L142' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyWorkbook' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n[Samples.VerifyExcel#Sheet1.verified.png](/src/Tests/Samples.VerifyExcel#Sheet1.verified.png):\n\n\u003cimg src=\"/src/Tests/Samples.VerifyExcel%23Sheet1.verified.png\" width=\"200px\"\u003e\n\n\n### Word\n\n\n#### Verify a file\n\n\u003c!-- snippet: VerifyWord --\u003e\n\u003ca id='snippet-VerifyWord'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyWord() =\u003e\n    VerifyFile(\"sample.docx\");\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L213-L219' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyWord' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Verify a Stream\n\n\u003c!-- snippet: VerifyWordStream --\u003e\n\u003ca id='snippet-VerifyWordStream'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyWordStream()\n{\n    var stream = new MemoryStream(File.ReadAllBytes(\"sample.docx\"));\n    return Verify(stream, \"docx\");\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L221-L230' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyWordStream' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Result\n\n\u003c!-- snippet: Samples.VerifyWord.verified.txt --\u003e\n\u003ca id='snippet-Samples.VerifyWord.verified.txt'\u003e\u003c/a\u003e\n```txt\n{\n  HasRevisions: False,\n  DefaultLocale: EnglishUS,\n  Properties: {\n    Characters: 1009,\n    CharactersWithSpaces: 1183,\n    CreateTime: DateTime_1,\n    HeadingPairs: [\n      Title,\n      1\n    ],\n    LastSavedTime: DateTime_2,\n    Lines: 8,\n    Pages: 1,\n    Paragraphs: 2,\n    Template: Normal,\n    Words: 176\n  },\n  CustomProperties: {\n    ContentTypeId: 0x010100AA3F7D94069FF64A86F7DFF56D60E3BE\n  },\n  ShadeFormData: true,\n  Fonts: [\n    Consolas,\n    Segoe UI,\n    Symbol,\n    Times New Roman,\n    Trebuchet MS\n  ],\n  Text:\n[Meeting name] meeting minutes\n\n|Location:|[Address or room number]|\n| :- | :- |\n|Date:|[Date]|\n|Time:|[Time]|\n|Attendees:|[List attendees]|\n# Agenda items\n1. [It’s easy to make this template your own. To replace placeholder text, just select it and start typing. Don’t include space to the right or left of the characters in your selection.]\n1. [Apply any text formatting you see in this template with just a click from the Home tab, in the Styles group. For example, this text uses the List Number style.]\n1. [To add a new row at the end of the action items table, just click into the last cell in the last row and then press Tab.]\n1. [To add a new row or column anywhere in a table, click in an adjacent row or column to the one you need and then, on the Table Tools Layout tab of the ribbon, click an Insert option.]\n1. [Agenda item]\n1. [Agenda item]\n\n|\u003ch1\u003eAction items\u003c/h1\u003e|\u003ch1\u003eOwner(s)\u003c/h1\u003e|\u003ch1\u003eDeadline\u003c/h1\u003e|\u003ch1\u003eStatus\u003c/h1\u003e|\n| :- | :- | :- | :- |\n|[Action item 1]|[Name(s) 1]|[Date 1]|[Status 1, such as In Progress or Complete]|\n|[Action item 2]|[Name(s) 2]|[Date 2]|[Status 2]|\n|[Action item 3]|[Name(s) 3]|[Date 3]|[Status 3]|\n|[Action item 4]|[Name(s) 4]|[Date 4]|[Status 4]|\n|[Action item 5]|[Name(s) 5]|[Date 5]|[Status 5]|\n|[Action item 6]|[Name(s) 6]|[Date 6]|[Status 6]|\n\n2\n\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.VerifyWord.verified.txt#L1-L57' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Samples.VerifyWord.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n[Samples.VerifyWord#00.verified.png](/src/Tests/Samples.VerifyWord%2300.verified.png):\n\n\u003cimg src=\"/src/Tests/Samples.VerifyWord%2300.verified.png\" width=\"200px\"\u003e\n\n\n### PowerPoint\n\n\n#### Verify a file\n\n\u003c!-- snippet: VerifyPowerPoint --\u003e\n\u003ca id='snippet-VerifyPowerPoint'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyPowerPoint() =\u003e\n    VerifyFile(\"sample.pptx\");\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L38-L44' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyPowerPoint' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Verify a Stream\n\n\u003c!-- snippet: VerifyPowerPointStream --\u003e\n\u003ca id='snippet-VerifyPowerPointStream'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyPowerPointStream()\n{\n    var stream = new MemoryStream(File.ReadAllBytes(\"sample.pptx\"));\n    return Verify(stream, \"pptx\");\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L46-L55' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyPowerPointStream' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Result\n\n\u003c!-- snippet: Samples.VerifyPowerPoint.verified.txt --\u003e\n\u003ca id='snippet-Samples.VerifyPowerPoint.verified.txt'\u003e\u003c/a\u003e\n```txt\n{\n  Properties: {\n    NameOfApplication: Microsoft Office PowerPoint,\n    Company: ,\n    Manager: ,\n    PresentationFormat: Custom,\n    SharedDoc: false,\n    ApplicationTemplate: ,\n    Title: Lorem ipsum,\n    Subject: ,\n    Author: simon,\n    Keywords: ,\n    Comments: ,\n    Category: ,\n    CreatedTime: DateTime_1,\n    LastSavedTime: DateTime_2,\n    LastPrinted: DateTime_3,\n    LastSavedBy: Simon Cropp,\n    RevisionNumber: 1,\n    ContentStatus: ,\n    ContentType: ,\n    HyperlinkBase: ,\n    ScaleCrop: false,\n    LinksUpToDate: false,\n    HyperlinksChanged: false,\n    Slides: 3,\n    Notes: 3,\n    Paragraphs: 14,\n    Words: 231,\n    TitlesOfParts: [\n      Times New Roman,\n      Arial,\n      Droid Sans Fallback,\n      WenQuanYi Zen Hei,\n      DejaVu Sans,\n      Office Theme,\n      Office Theme,\n      Lorem ipsum,\n      Chart,\n      Table\n    ],\n    HeadingPairs: [\n      {\n        Name: Fonts Used,\n        Count: 5\n      },\n      {\n        Name: Theme,\n        Count: 2\n      },\n      {\n        Name: Embedded OLE Servers\n      },\n      {\n        Name: Slide Titles,\n        Count: 3\n      }\n    ]\n  },\n  Fonts: [\n    Arial,\n    Calibri,\n    Calibri Light,\n    DejaVu Sans,\n    Droid Sans Fallback,\n    Times New Roman,\n    WenQuanYi Zen Hei\n  ]\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.VerifyPowerPoint.verified.txt#L1-L69' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Samples.VerifyPowerPoint.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n[Samples.VerifyPowerPoint%2300.verified.png](/src/Tests/Samples.VerifyPowerPoint%2300.verified.png):\n\n\u003cimg src=\"/src/Tests/Samples.VerifyPowerPoint%2300.verified.png\" width=\"200px\"\u003e\n\n\n### Binary output across .NET frameworks\n\nWhen verifying binary package output (xlsx, docx, nupkg, etc.) across multiple target frameworks (e.g. net48 and net10.0), the binary output may differ due to Deflate compression implementation differences. The XML content within entries is identical — only the compressed bytes differ. Use `UniqueForRuntime` to generate framework-specific verified files:\n\n```cs\nawait Verify(stream, extension: \"xlsx\")\n    .UniqueForRuntime();\n```\n\nSee [Verify Naming docs](https://github.com/VerifyTests/Verify/blob/main/docs/naming.md) for more details.\n\n\n## File Samples\n\nhttp://file-examples.com/\n\n\n## Icon\n\n[Swirl](https://thenounproject.com/term/swirl/1568686/) designed by [creativepriyanka](https://thenounproject.com/creativepriyanka) from [The Noun Project](https://thenounproject.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.aspose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.aspose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.aspose/lists"}