{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "pdfviewer-silent-printing",
  "framework": "winforms",
  "type": "registry:component",
  "component": "PdfViewer",
  "variant": "silent-printing",
  "dependencies": [
    "Syncfusion.PdfViewer.Windows"
  ],
  "description": "PdfViewer that prints the loaded document silently to the default printer without showing the standard print dialog.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/winforms/llms.txt",
    "skillPack": "syncfusion/winforms-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/winforms/pdfviewer-silent-printing.md"
  },
  "files": [
    {
      "target": "src/components/pdfviewer-silent-printing/pdfviewer.Designer.cs",
      "content": "using System.Drawing;\nusing System.Windows.Forms;\n\nnamespace SilentPrinting\n{\n    partial class Form1\n    {\n        /// <summary>\n        /// Required designer variable.\n        /// </summary>\n        private System.ComponentModel.IContainer components = null;\n\n        #region Windows Form Designer generated code\n\n        /// <summary>\n        /// Required method for Designer support - do not modify\n        /// the contents of this method with the code editor.\n        /// </summary>\n        private void InitializeComponent()\n        {\n            this.button1 = new System.Windows.Forms.Button();\n            this.label1 = new System.Windows.Forms.Label();\n            this.pictureBox1 = new System.Windows.Forms.PictureBox();\n            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();\n            this.SuspendLayout();\n            //\n            // button1\n            //\n            this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));\n            this.button1.BackColor = System.Drawing.Color.Transparent;\n            this.button1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));\n            this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));\n            this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));\n            this.button1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;\n            this.button1.Location = new System.Drawing.Point(268, 186);\n            this.button1.Name = \"button1\";\n            this.button1.Size = new System.Drawing.Size(75, 24);\n            this.button1.TabIndex = 0;\n            this.button1.Text = \"Print\";\n            this.button1.UseVisualStyleBackColor = false;\n            this.button1.Click += new System.EventHandler(this.button1_Click);\n            //\n            // label1\n            //\n            this.label1.Font = new System.Drawing.Font(\"Verdana\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(64)))));\n            this.label1.Location = new System.Drawing.Point(2, 111);\n            this.label1.Name = \"label1\";\n            this.label1.Size = new System.Drawing.Size(373, 62);\n            this.label1.TabIndex = 1;\n            this.label1.Text = \"Essential Pdf Viewer enables print support. The pages can be printed using PrintD\" +\n            \"ialog or silent print. Click the button to start print.\";\n            this.label1.TextAlign = ContentAlignment.MiddleLeft;\n            //\n            // pictureBox1\n            //\n            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Top;\n            this.pictureBox1.Image = System.Drawing.Image.FromFile(SilentPrintingDataSource.GetImagePath(SilentPrintingDataSource.HeaderImageFileName));\n            this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;\n            this.pictureBox1.Location = new System.Drawing.Point(0, 0);\n            this.pictureBox1.Name = \"pictureBox1\";\n            this.pictureBox1.Size = new System.Drawing.Size(375, 89);\n            this.pictureBox1.TabIndex = 24;\n            this.pictureBox1.TabStop = false;\n            //\n            // Form1\n            //\n            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n            this.BackColor = System.Drawing.Color.White;\n            this.ClientSize = new System.Drawing.Size(375, 227);\n            this.Controls.Add(this.button1);\n            this.Controls.Add(this.label1);\n            this.Controls.Add(this.pictureBox1);\n            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;\n            this.Icon = new System.Drawing.Icon(SilentPrintingDataSource.GetIconPath(\"Icon.ico\"));\n            this.MaximizeBox = false;\n            this.MinimizeBox = false;\n            this.Name = \"Form1\";\n            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n            this.Text = \"Silent Printing\";\n            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();\n            this.ResumeLayout(false);\n\n        }\n\n        #endregion\n        private System.Windows.Forms.Button button1;\n        private System.Windows.Forms.Label label1;\n        private System.Windows.Forms.PictureBox pictureBox1;\n    }\n}\n"
    },
    {
      "target": "src/components/pdfviewer-silent-printing/pdfviewer.cs",
      "content": "using System;\nusing System.Drawing;\nusing System.Windows.Forms;\nusing Syncfusion.Windows.Forms;\nusing Syncfusion.Windows.Forms.PdfViewer;\n\nnamespace SilentPrinting\n{\n    /// <summary>\n    /// Demonstrates silent printing of the PDF document that is displayed by\n    /// the Syncfusion PDF viewer.\n    /// </summary>\n    public partial class Form1 : MetroForm\n    {\n        #region Private Members\n        private PdfViewerControl viewer;\n        #endregion\n\n        #region Constructor\n        public Form1()\n        {\n            //\n            // Required for Windows Form Designer support\n            //\n            InitializeComponent();\n            this.MinimizeBox = true;\n            Application.EnableVisualStyles();\n            viewer = new PdfViewerControl();\n            viewer.Load(SilentPrintingDataSource.GetDocumentPath());\n            this.MetroColor = Color.Transparent;\n        }\n        #endregion\n\n        #region Events\n        private void button1_Click(object sender, System.EventArgs e)\n        {\n            // Initialize print dialog.\n            PrintDialog dialog = new PrintDialog();\n            dialog.AllowPrintToFile = true;\n            dialog.AllowSomePages = true;\n            dialog.AllowCurrentPage = true;\n\n            dialog.Document = viewer.PrintDocument;\n            dialog.Document.Print();\n        }\n\n        #endregion\n\n        #region Helper Methods\n        /// <summary>\n        /// Clean up any resources being used.\n        /// </summary>\n        /// <param name=\"disposing\">true if managed resources should be disposed; otherwise, false.</param>\n        protected override void Dispose(bool disposing)\n        {\n            if (viewer != null)\n            {\n                viewer.Dispose();\n            }\n            if (disposing)\n            {\n                if (components != null)\n                {\n                    components.Dispose();\n                }\n            }\n            base.Dispose(disposing);\n        }\n        #endregion\n    }\n}\n"
    }
  ]
}