[[BackLinksMenu]] [[TicketQuery(summary=BOOK_STATIC_PDF_EXPORT_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] = Analysis = == Overview == The task is to create a way for a Sophie 2.0 Book to be exported in PDF file. Dialogs should appear - one with the PDF options and one with where to save the PDF file. == Task requirements == From the user point of view the PDF exporting should fulfill these requirements: * PDF export must be selected from menu File -> Export As... * This should invoke a dialog window with a different filetypes (.pdf, .html and etc.). Other option is File -> Exports as PDF, this should be discussed and considered in the design phase. * This dialog gives the opportunity to choose where the file will be saved * A message that warns for loss of the video content and some interactivity (timelines and etc.) should appear * In this first revision, a dialog with PDF options won't appear, but you must consider the previous requirements when you're designing this task. * The created PDF document must represent something like a snapshot of the original book in preview mode == Task result == * The result of this task should be source code. == Implementation idea == * Use iText library to generate PDF files. For more information, see [http://www.lowagie.com/iText/] * For the next iteration "PDF Clown" library can be used to generate PDF files. For more information, see [http://www.stefanochizzolini.it/en/projects/clown/] == Related == * [wiki:BOOK_PRINTING_R0] == How to demo == * Run Sophie 2.0. * From "File" menu choose "Print To PDF" item. * A dialog should appear for the user to choose the directory where to save the newly created file. * Press "OK". * In the directory that the user has chosen should appear a PDF file with the content of the book. = Design = ^(Describe your design here.)^ = Implementation = ^(Describe and link the implementation results here (from the wiki or the repository).)^ = Testing = ^(Place the testing results here.)^ = Comments = * It will be better if the menu item is named "To PDF" and is part of a subemenu called "Export" since we will have HTML, Sophie 1, etc * The button should invoke File Dialog with extension PDF selected. * It is important which part of the book will be printed - will it be the page, will it include border? * How we will present the video frames for example? Should the pdf include frame bounds? I guess it will be good if the print is the same as the preview of the book. * I guess "static" means that the text won't be selectable and the graphics will be like images, not like vectors? please clarify