Skip to content

feat(page-setup-features): add 82 compiler-validated C# examples - Page Setup Features [26.8.0/net8.0] - #82

Merged
amjad-sahi merged 89 commits into
mainfrom
feat/examples-page-setup-features-20260828
Aug 28, 2026
Merged

feat(page-setup-features): add 82 compiler-validated C# examples - Page Setup Features [26.8.0/net8.0]#82
amjad-sahi merged 89 commits into
mainfrom
feat/examples-page-setup-features-20260828

Conversation

@agent-aspose-diagram-examples

Copy link
Copy Markdown
Collaborator

Page Setup Features — Compiler-Validated C# Examples

What this PR does

Adds 82 AI-generated, compiler-validated C# examples for the Page Setup Features category of Aspose.Diagram for .NET.

All examples were generated by the Aspose.Diagram Examples Generator Agent and passed the full three-attempt validation pipeline before being included.

Validation Summary

Check Result
dotnet build ✅ Passed — zero compiler errors
dotnet run ✅ Passed — clean execution
Aspose.Diagram Version 26.8.0
Target Framework net8.0
Examples Added 82

Pipeline

Each example was generated and validated through:

  1. Attempt 1 — MCP direct code retrieval and assembly
  2. Attempt 2 — MCP retrieval with injected API correction rules
  3. Attempt 3 — LLM repair pass with compiler errors and rules

Only examples that passed both dotnet build and dotnet run are included in this PR.

Examples Added

File Task Description
access-the-pageprops-of-the-selected-page-to-read-its-pageheight-property.cs Access the pageprops of the selected page to read its pageheight property
access-the-pageprops-of-the-selected-page-to-read-its-pagewidth-property.cs Access the pageprops of the selected page to read its pagewidth property
adjust-line-thickness-of-connectors-proportionally-to-page-height-for-consistent-visual-weight.cs Adjust line thickness of connectors proportionally to page height for consistent visual weight
adjust-printprops-scalex-to-0-75-to-reduce-the-page-size-by-twenty-five-percent.cs Adjust printprops scalex to 0 75 to reduce the page size by twenty five percent
adjust-shape-rotation-angles-based-on-page-height-to-maintain-visual-balance-across-pages.cs Adjust shape rotation angles based on page height to maintain visual balance across pages
after-modifying-print-settings-invoke-diagram-save-with-a-different-file-extension-to-preserve-the-original-file.cs After modifying print settings invoke diagram save with a different file extension to preserve the original file
apply-a-conditional-layout-algorithm-that-changes-behavior-when-page-width-exceeds-11-inches.cs Apply a conditional layout algorithm that changes behavior when page width exceeds 11 inches
apply-different-scalex-values-to-odd-numbered-pages-while-keeping-even-pages-at-default-size.cs Apply different scalex values to odd numbered pages while keeping even pages at default size
apply-portrait-orientation-and-a-scalex-of-1-2-to-improve-readability-of-detailed-diagrams.cs Apply portrait orientation and a scalex of 1 2 to improve readability of detailed diagrams
apply-the-calculated-scaling-factor-to-all-shape-coordinates-on-the-selected-page.cs Apply the calculated scaling factor to all shape coordinates on the selected page
batch-process-all-pages-collecting-their-widths-into-a-list-for-subsequent-analysis.cs Batch process all pages collecting their widths into a list for subsequent analysis
calculate-a-scaling-factor-based-on-page-width-to-fit-diagram-content-within-an-800-pixel-canvas.cs Calculate a scaling factor based on page width to fit diagram content within an 800 pixel canvas
catch-argumentexception-when-assigning-an-undefined-value-to-printpageorientation-and-log-the-error.cs Catch argumentexception when assigning an undefined value to printpageorientation and log the error
change-printprops-printpageorientation-to-portrait-on-all-pages-to-enforce-vertical-orientation.cs Change printprops printpageorientation to portrait on all pages to enforce vertical orientation
combine-landscape-orientation-with-a-scalex-of-0-9-to-create-a-custom-print-layout.cs Combine landscape orientation with a scalex of 0 9 to create a custom print layout
compare-page-dimensions-across-two-visio-files-to-detect-layout-inconsistencies.cs Compare page dimensions across two visio files to detect layout inconsistencies
compare-printed-output-dimensions-when-scalex-is-set-to-1-0-versus-0-5-for-the-same-page.cs Compare printed output dimensions when scalex is set to 1 0 versus 0 5 for the same page
compare-the-page-height-against-a-predefined-maximum-and-raise-an-exception-if-exceeded.cs Compare the page height against a predefined maximum and raise an exception if exceeded
convert-retrieved-page-dimensions-from-inches-to-millimeters-before-storing-them-in-metadata.cs Convert retrieved page dimensions from inches to millimeters before storing them in metadata
create-a-batch-job-that-processes-visio-files-nightly-applying-standardized-print-settings-for-corporate-reports.cs Create a batch job that processes visio files nightly applying standardized print settings for corporate reports
create-a-configuration-file-that-maps-page-indices-to-specific-orientation-and-scaling-values.cs Create a configuration file that maps page indices to specific orientation and scaling values
create-a-custom-export-function-that-embeds-page-dimension-metadata-into-the-output-file-header.cs Create a custom export function that embeds page dimension metadata into the output file header
create-a-diagnostic-routine-that-checks-whether-printprops-printpageorientation-matches-the-expected-enumeration-value.cs Create a diagnostic routine that checks whether printprops printpageorientation matches the expected enumeration value
create-a-dictionary-mapping-page-names-to-their-corresponding-dimensions-for-quick-lookup.cs Create a dictionary mapping page names to their corresponding dimensions for quick lookup
create-a-macro-that-automatically-updates-page-margins-based-on-retrieved-page-dimensions.cs Create a macro that automatically updates page margins based on retrieved page dimensions
create-a-reusable-service-that-applies-default-print-settings-to-any-diagram-instance-passed-to-it.cs Create a reusable service that applies default print settings to any diagram instance passed to it
create-a-scheduled-task-that-reprocesses-diagrams-weekly-ensuring-print-settings-comply-with-new-corporate-standards.cs Create a scheduled task that reprocesses diagrams weekly ensuring print settings comply with new corporate standards
create-a-utility-method-that-sets-orientation-and-scaling-based-on-user-provided-parameters.cs Create a utility method that sets orientation and scaling based on user provided parameters
deserialize-previously-saved-json-page-dimensions-and-compare-them-with-current-diagram-values.cs Deserialize previously saved json page dimensions and compare them with current diagram values
document-best-practices-for-configuring-page-orientation-and-scaling-to-achieve-optimal-print-quality-across-printers.cs Document best practices for configuring page orientation and scaling to achieve optimal print quality across printers
export-the-diagram-to-pdf-while-preserving-the-original-page-dimensions-retrieved-earlier.cs Export the diagram to pdf while preserving the original page dimensions retrieved earlier
generate-a-csv-file-summarizing-page-indices-orientation-and-scaling-factors-for-audit-purposes.cs Generate a csv file summarizing page indices orientation and scaling factors for audit purposes
generate-a-report-listing-each-page-s-current-printprops-orientation-and-scalex-values-after-modification.cs Generate a report listing each page s current printprops orientation and scalex values after modification
generate-a-report-summarizing-page-dimensions-and-total-diagram-area-in-square-centimeters.cs Generate a report summarizing page dimensions and total diagram area in square centimeters
generate-a-thumbnail-image-for-each-page-using-its-width-and-height-to-define-canvas-size.cs Generate a thumbnail image for each page using its width and height to define canvas size
implement-a-caching-mechanism-that-stores-page-size-values-to-avoid-repeated-property-accesses.cs Implement a caching mechanism that stores page size values to avoid repeated property accesses
implement-a-fallback-to-portrait-orientation-if-landscape-assignment-fails-due-to-file-corruption.cs Implement a fallback to portrait orientation if landscape assignment fails due to file corruption
implement-a-feature-that-logs-the-previous-orientation-before-changing-it-enabling-audit-trails.cs Implement a feature that logs the previous orientation before changing it enabling audit trails
implement-a-feature-that-resets-all-pages-to-default-portrait-orientation-and-scalex-of-1-0.cs Implement a feature that resets all pages to default portrait orientation and scalex of 1 0
implement-a-rollback-strategy-that-restores-original-printprops-if-any-validation-step-fails-after-changes.cs Implement a rollback strategy that restores original printprops if any validation step fails after changes
implement-batch-processing-to-apply-landscape-orientation-to-all-pages-in-a-folder-of-visio-files.cs Implement batch processing to apply landscape orientation to all pages in a folder of visio files
implement-error-handling-that-catches-exceptions-when-pageprops-properties-are-inaccessible.cs Implement error handling that catches exceptions when pageprops properties are inaccessible
implement-error-handling-to-skip-pages-lacking-a-pagesheet-when-applying-print-settings.cs Implement error handling to skip pages lacking a pagesheet when applying print settings
increase-printprops-scalex-to-1-5-for-a-diagram-page-to-enlarge-its-printed-output.cs Increase printprops scalex to 1 5 for a diagram page to enlarge its printed output
instantiate-the-diagram-object-with-a-visio-file-and-select-the-first-page.cs Instantiate the diagram object with a visio file and select the first page
integrate-page-size-data-into-a-printing-routine-that-sets-printer-margins-dynamically.cs Integrate page size data into a printing routine that sets printer margins dynamically
iterate-through-diagram-pages-and-log-each-page-s-width-and-height-to-a-csv-file.cs Iterate through diagram pages and log each page s width and height to a csv file
iterate-through-each-page-in-the-diagram-and-retrieve-its-associated-pagesheet-for-configuration.cs Iterate through each page in the diagram and retrieve its associated pagesheet for configuration
load-a-visio-file-into-a-diagram-object-and-access-its-pages-collection.cs Load a visio file into a diagram object and access its pages collection
load-configuration-from-json-and-apply-mapped-print-settings-to-corresponding-diagram-pages.cs Load configuration from json and apply mapped print settings to corresponding diagram pages
log-the-original-and-updated-printprops-values-for-each-page-during-batch-modification.cs Log the original and updated printprops values for each page during batch modification
log-the-page-width-and-height-to-the-console-using-a-formatted-string.cs Log the page width and height to the console using a formatted string
programmatically-toggle-between-portrait-and-landscape-orientations-based-on-page-content-analysis.cs Programmatically toggle between portrait and landscape orientations based on page content analysis
save-the-modified-diagram-to-a-new-visio-file-after-updating-page-print-settings.cs Save the modified diagram to a new visio file after updating page print settings
serialize-the-collected-page-size-information-to-json-for-consumption-by-a-web-service.cs Serialize the collected page size information to json for consumption by a web service
set-printprops-printpageorientation-to-landscape-on-a-specific-page-to-change-its-layout.cs Set printprops printpageorientation to landscape on a specific page to change its layout
store-page-dimensions-in-a-relational-database-table-for-historical-tracking-of-diagram-revisions.cs Store page dimensions in a relational database table for historical tracking of diagram revisions
store-the-retrieved-width-and-height-values-in-a-custom-pagesize-structure-for-later-use.cs Store the retrieved width and height values in a custom pagesize structure for later use
use-a-configuration-manager-to-retrieve-default-orientation-and-scaling-values-from-application-settings.cs Use a configuration manager to retrieve default orientation and scaling values from application settings
use-a-try-catch-block-to-handle-unsupported-orientation-values-while-processing-multiple-pages.cs Use a try catch block to handle unsupported orientation values while processing multiple pages
use-diagram-clone-to-create-a-backup-before-applying-bulk-orientation-updates.cs Use diagram clone to create a backup before applying bulk orientation updates
use-diagram-dispose-after-saving-to-release-resources-and-avoid-memory-leaks.cs Use diagram dispose after saving to release resources and avoid memory leaks
use-linq-to-filter-pages-where-scalex-exceeds-1-0-before-applying-additional-transformations.cs Use linq to filter pages where scalex exceeds 1 0 before applying additional transformations
use-page-height-to-set-vertical-spacing-between-automatically-generated-legend-sections.cs Use page height to set vertical spacing between automatically generated legend sections
use-page-width-to-calculate-appropriate-font-size-for-page-level-titles-in-generated-pdfs.cs Use page width to calculate appropriate font size for page level titles in generated pdfs
use-page-width-to-compute-column-count-for-a-grid-layout-applied-to-diagram-shapes.cs Use page width to compute column count for a grid layout applied to diagram shapes
use-reflection-to-enumerate-all-printpageorientationvalue-enumeration-members-for-dynamic-ui-generation.cs Use reflection to enumerate all printpageorientationvalue enumeration members for dynamic ui generation
use-the-diagram-constructor-overload-that-accepts-a-stream-to-load-diagrams-from-memory.cs Use the diagram constructor overload that accepts a stream to load diagrams from memory
use-the-page-height-to-determine-vertical-offset-when-adding-a-custom-footer-to-each-page.cs Use the page height to determine vertical offset when adding a custom footer to each page
validate-each-page-s-printprops-settings-match-expected-orientation-and-scaling-before-printing.cs Validate each page s printprops settings match expected orientation and scaling before printing
validate-that-after-saving-the-visio-file-retains-the-modified-printprops-when-reopened.cs Validate that after saving the visio file retains the modified printprops when reopened
validate-that-page-dimensions-conform-to-iso-216-standards-before-proceeding-with-batch-export.cs Validate that page dimensions conform to iso 216 standards before proceeding with batch export
validate-that-setting-scalex-to-1-0-after-previous-scaling-resets-the-page-to-its-original-size.cs Validate that setting scalex to 1 0 after previous scaling resets the page to its original size
validate-that-the-retrieved-page-width-matches-the-expected-a4-size-in-inches.cs Validate that the retrieved page width matches the expected a4 size in inches
verify-that-saving-the-diagram-after-print-option-changes-does-not-alter-other-page-content.cs Verify that saving the diagram after print option changes does not alter other page content
write-a-console-output-that-lists-pages-where-scalex-is-not-equal-to-1-0-after-processing.cs Write a console output that lists pages where scalex is not equal to 1 0 after processing
write-a-helper-function-that-checks-if-a-page-s-current-scalex-matches-the-desired-target-within-tolerance.cs Write a helper function that checks if a page s current scalex matches the desired target within tolerance
write-a-sample-program-demonstrating-switching-between-portrait-and-landscape-orientations-based-on-user-input.cs Write a sample program demonstrating switching between portrait and landscape orientations based on user input
write-a-script-that-reads-a-list-of-visio-files-and-applies-uniform-landscape-orientation-to-each.cs Write a script that reads a list of visio files and applies uniform landscape orientation to each
write-code-to-enumerate-all-pages-outputting-their-index-orientation-and-scalex-to-the-console.cs Write code to enumerate all pages outputting their index orientation and scalex to the console
write-unit-tests-verifying-pageheight-returns-correct-value-for-a-known-sample-file.cs Write unit tests verifying pageheight returns correct value for a known sample file
write-unit-tests-verifying-pagewidth-returns-correct-value-for-a-known-sample-file.cs Write unit tests verifying pagewidth returns correct value for a known sample file

Validation Details


This PR was created automatically by the Aspose.Diagram Examples Generator Agent. Merge after reviewing the examples above.

…age-to-read-its-pageheight-property

Task: Access the pageprops of the selected page to read its pageheight property

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…age-to-read-its-pagewidth-property

Task: Access the pageprops of the selected page to read its pagewidth property

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…oportionally-to-page-height-for-consistent-visual-weight

Task: Adjust line thickness of connectors proportionally to page height for consistent visual weight

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…duce-the-page-size-by-twenty-five-percent

Task: Adjust printprops scalex to 0 75 to reduce the page size by twenty five percent

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…page-height-to-maintain-visual-balance-across-pages

Task: Adjust shape rotation angles based on page height to maintain visual balance across pages

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…diagram-save-with-a-different-file-extension-to-preserve-the-original-file

Task: After modifying print settings invoke diagram save with a different file extension to preserve the original file

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…hat-changes-behavior-when-page-width-exceeds-11-inches

Task: Apply a conditional layout algorithm that changes behavior when page width exceeds 11 inches

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…umbered-pages-while-keeping-even-pages-at-default-size

Task: Apply different scalex values to odd numbered pages while keeping even pages at default size

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…x-of-1-2-to-improve-readability-of-detailed-diagrams

Task: Apply portrait orientation and a scalex of 1 2 to improve readability of detailed diagrams

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-all-shape-coordinates-on-the-selected-page

Task: Apply the calculated scaling factor to all shape coordinates on the selected page

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…ir-widths-into-a-list-for-subsequent-analysis

Task: Batch process all pages collecting their widths into a list for subsequent analysis

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…ge-width-to-fit-diagram-content-within-an-800-pixel-canvas

Task: Calculate a scaling factor based on page width to fit diagram content within an 800 pixel canvas

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-an-undefined-value-to-printpageorientation-and-log-the-error

Task: Catch argumentexception when assigning an undefined value to printpageorientation and log the error

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-to-portrait-on-all-pages-to-enforce-vertical-orientation

Task: Change printprops printpageorientation to portrait on all pages to enforce vertical orientation

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…calex-of-0-9-to-create-a-custom-print-layout

Task: Combine landscape orientation with a scalex of 0 9 to create a custom print layout

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…io-files-to-detect-layout-inconsistencies

Task: Compare page dimensions across two visio files to detect layout inconsistencies

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-scalex-is-set-to-1-0-versus-0-5-for-the-same-page

Task: Compare printed output dimensions when scalex is set to 1 0 versus 0 5 for the same page

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…efined-maximum-and-raise-an-exception-if-exceeded

Task: Compare the page height against a predefined maximum and raise an exception if exceeded

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-inches-to-millimeters-before-storing-them-in-metadata

Task: Convert retrieved page dimensions from inches to millimeters before storing them in metadata

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…o-files-nightly-applying-standardized-print-settings-for-corporate-reports

Task: Create a batch job that processes visio files nightly applying standardized print settings for corporate reports

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…page-indices-to-specific-orientation-and-scaling-values

Task: Create a configuration file that maps page indices to specific orientation and scaling values

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…mbeds-page-dimension-metadata-into-the-output-file-header

Task: Create a custom export function that embeds page dimension metadata into the output file header

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…s-whether-printprops-printpageorientation-matches-the-expected-enumeration-value

Task: Create a diagnostic routine that checks whether printprops printpageorientation matches the expected enumeration value

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-to-their-corresponding-dimensions-for-quick-lookup

Task: Create a dictionary mapping page names to their corresponding dimensions for quick lookup

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…tes-page-margins-based-on-retrieved-page-dimensions

Task: Create a macro that automatically updates page margins based on retrieved page dimensions

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-default-print-settings-to-any-diagram-instance-passed-to-it

Task: Create a reusable service that applies default print settings to any diagram instance passed to it

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…es-diagrams-weekly-ensuring-print-settings-comply-with-new-corporate-standards

Task: Create a scheduled task that reprocesses diagrams weekly ensuring print settings comply with new corporate standards

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…ntation-and-scaling-based-on-user-provided-parameters

Task: Create a utility method that sets orientation and scaling based on user provided parameters

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-dimensions-and-compare-them-with-current-diagram-values

Task: Deserialize previously saved json page dimensions and compare them with current diagram values

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…g-page-orientation-and-scaling-to-achieve-optimal-print-quality-across-printers

Task: Document best practices for configuring page orientation and scaling to achieve optimal print quality across printers

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…lease-resources-and-avoid-memory-leaks

Task: Use diagram dispose after saving to release resources and avoid memory leaks

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…exceeds-1-0-before-applying-additional-transformations

Task: Use linq to filter pages where scalex exceeds 1 0 before applying additional transformations

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…g-between-automatically-generated-legend-sections

Task: Use page height to set vertical spacing between automatically generated legend sections

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…e-font-size-for-page-level-titles-in-generated-pdfs

Task: Use page width to calculate appropriate font size for page level titles in generated pdfs

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-for-a-grid-layout-applied-to-diagram-shapes

Task: Use page width to compute column count for a grid layout applied to diagram shapes

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…ageorientationvalue-enumeration-members-for-dynamic-ui-generation

Task: Use reflection to enumerate all printpageorientationvalue enumeration members for dynamic ui generation

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…hat-accepts-a-stream-to-load-diagrams-from-memory

Task: Use the diagram constructor overload that accepts a stream to load diagrams from memory

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…cal-offset-when-adding-a-custom-footer-to-each-page

Task: Use the page height to determine vertical offset when adding a custom footer to each page

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…gs-match-expected-orientation-and-scaling-before-printing

Task: Validate each page s printprops settings match expected orientation and scaling before printing

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…ile-retains-the-modified-printprops-when-reopened

Task: Validate that after saving the visio file retains the modified printprops when reopened

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…to-iso-216-standards-before-proceeding-with-batch-export

Task: Validate that page dimensions conform to iso 216 standards before proceeding with batch export

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…ter-previous-scaling-resets-the-page-to-its-original-size

Task: Validate that setting scalex to 1 0 after previous scaling resets the page to its original size

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-matches-the-expected-a4-size-in-inches

Task: Validate that the retrieved page width matches the expected a4 size in inches

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…rint-option-changes-does-not-alter-other-page-content

Task: Verify that saving the diagram after print option changes does not alter other page content

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…s-where-scalex-is-not-equal-to-1-0-after-processing

Task: Write a console output that lists pages where scalex is not equal to 1 0 after processing

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…-a-page-s-current-scalex-matches-the-desired-target-within-tolerance

Task: Write a helper function that checks if a page s current scalex matches the desired target within tolerance

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…witching-between-portrait-and-landscape-orientations-based-on-user-input

Task: Write a sample program demonstrating switching between portrait and landscape orientations based on user input

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…sio-files-and-applies-uniform-landscape-orientation-to-each

Task: Write a script that reads a list of visio files and applies uniform landscape orientation to each

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…utting-their-index-orientation-and-scalex-to-the-console

Task: Write code to enumerate all pages outputting their index orientation and scalex to the console

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…returns-correct-value-for-a-known-sample-file

Task: Write unit tests verifying pageheight returns correct value for a known sample file

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
…eturns-correct-value-for-a-known-sample-file

Task: Write unit tests verifying pagewidth returns correct value for a known sample file

- Validated: dotnet build passed
- Validated: dotnet run passed
- Generator: Aspose.Diagram Examples Generator Agent v2.0
- Library: Aspose.Diagram for .NET 26.8.0
- Framework: net8.0
- Pipeline: MCP retrieval → rules injection → LLM repair
@amjad-sahi
amjad-sahi merged commit b1fe450 into main Aug 28, 2026
1 check passed
@amjad-sahi
amjad-sahi deleted the feat/examples-page-setup-features-20260828 branch August 28, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants