[[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 == * There should be a menu item, which when clicked, the current book is exported in a pdf file. * There should be a dialog which to appear and the user to be able to choose where to save the new file. * In this first revision, a dialog with PDF options won't appear. == 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