260 likes | 410 Views
PC15. Benefitting From Document And Printing Convergence Windows 7 and XPS. Adrian Ford Program Manager Microsoft Corporation. Trends for document and print convergence Windows 7 Investments Using XPS in your applications XPS overview XPS development with Windows 7 Wrap-Up. Agenda.
E N D
PC15 Benefitting From Document And Printing ConvergenceWindows 7 and XPS Adrian Ford Program Manager Microsoft Corporation
Trends for document and print convergence Windows 7 Investments Using XPS in your applications XPS overview XPS development with Windows 7 Wrap-Up Agenda What Why Applications that… • Print with Direct 2D & Direct Write • Require rich printing • Interoperate with intelligent document peripherals • Integrate into electronic paper workflows
Rich content Document workflows Intelligent devices
XPS: Electronic Paper • XML Paper Specification • Accurately represents printed page • Great for sharing, publication and archiving phases of document lifecycle • Doesn’t change • Contains all resources • Secure by design • Can be rendered on any platform
More Than Microsoft • Developed with industry input • Open Specification • Published, community promise, royalty-free, independent implementations • Standardization • Ecma Technical Committee • >20 companies actively participating • Broad and deep support beyond Microsoft • Devices, software, components
Demo A Quick Look Into XPS
XPS Document Structure Required or Recommended Parts Package Parts Core Properties Thumbnail Optional Parts X509 Cert Signature Signature Origin Resources Relationship Fixed Payload Parts FixedDocumentSequence XPS Package Relationships DocumentStructure FixedDocument Thumbnail FixedPage Font Fonts & Images FixedPage Thumbnail
New In Windows 7 • Investments in Win32 API surfaces • XPS Document support • Open Packaging Conventions-based package file support • XPS Print API • Improved XPS user experience • More at WinHEC • Improved document peripheral experience • Enhanced support for hardware
Demo Creating Nothing
Direct 2D & Direct Write XPS Markup Fixed layout, subset of WPF XAML • Elements • Canvas • Glyphs • Paths • Brushes: Image, solid, gradients • Image formats: PNG, TIFF, JPEG, HD Photo • Extended color model • Transparency • sRGB, scRGB & profiled CMYK, named, and N-channel
Demo Creating Rich Content
Bridging Physical And Electronic Paper WIA 2.0 Win 7 XPSPrint API Acquisition XPS Output
XPS Print API StartXpsPrintJob( printerName, // required jobName, // optional name for job in queue printerPort, // optional port or file to redirect progressEvent, completionEvent, pageRangeArray, pageRangeCount, printJob, // represents the job documentStream, // stream to write content to printTicketStream // job level print ticket );
More Than XPS Print Support XPS Print API
Beyond Static Paper • Metadata support with core properties • Interleaving • Digital signatures • Document structure • Named content • Hyperlinks • Accessibility • Information protection with Windows Rights Management Services
Beyond Static Paper • Metadata support with core properties • Interleaving • Digital signatures • Document structure • Named content • Hyperlinks • Accessibility • Information protection with Windows Rights Management Services
Demo Beyond Static Paper
Key Takeaways • New Win32 APIs in Windows 7 for more easily working with XPS • Windows 7 uses XPS to provide a common layer for physical and electronic paper • Print support for Direct 2D & Direct Write • For enhanced print quality and performance • Use MXDC_ESCAPE from GDI • With Windows 7 take advantage of the XPS OM and XPS Print API • With .NET use WPF with XPS support • APIs are in the bits today
Resources • PDC • DirectX Hands-on Lab • Windows 7: New Text and Graphics APIs • WinHEC • www.microsoft.com/winhec • Managed Code • System.Windows.XPS • System.IO.Packaging • System.Printing • Send feedback Code • “The bits” • SDK examples and documentation XPS links www.microsoft.com/xps blogs.msdn.com/xps blogs.msdn.com/adrianford Standardization www.ecma-international.org xpsinfo@microsoft.com
Evals & Recordings Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com
Q&A Please use the microphones provided
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.