
Fop MiniScribus XSL-Fo
Source (link to git-repo or to original if based on someone elses unmodified work):
XML document formatting which is most often used to generate PDFs.
released MiniScribus Scribe version 2.0.0 beta
It's a complete rewrite from version 1.03
Latest version on SVN tree
Stable version 1.3 download 1800 time at google code
Features:
The following format's are read-only:
OpenOffice 1.1 file format *.sxw *.stw
OpenOffice 2.4 file format *.odt *.ott
As import xslt transform
XHTML file format *.htm *.html
The following format's are write-only:
Rich Text Format , free document file format developed by Microsoft *.rtf
Tagged Image File Format multipage *.tiff
The following format's are read-write:
FOP file .fop *.fop.gz *.fo *.fo.gz *.xml
MiniScribus binary stream file *.page
Internal binary format to not loast nothing on beta tester is a QTextDocument
serializer
Print Preview:
The Print Preview is Original Apache FOP (Formatting Objects Processor) to enable to debug all fo document
PDF Bookmarks are rendered only on Apache FOP (Formatting Objects Processor) major
as 0.90
It can read and edit 95% from all sample file from Apache fop project
Only table / cell border and markers and page footer note not is possibel to display at this moment.
Supported tag are:
page format
fo:region-before
fo:region-after
fo:region-start
fo:region-end
PDF BookMark:
fo:bookmark-tree fo:bookmark
fo:simple-page-master
fo:block fo:table table-footer table-header fo:table-body fo:table-column fo:table-row fo:table-cell fo:block-container fo:inline fo:inline-container fo:basic-link fo:external-graphic fo:instream-foreign-object fo:list-block fo:list-item fo:list-item-body fo:list-item-label fo:root fo:character fo:leader fo:footnote fo:page-number-citation fo:page-number fo:float
The Application read all this Attributes on fo:block-container:
"position" "top" "left" "width" "min-height" "degree-rotation" "rotate" "reference-orientation" "opacity"
"height" "background-color" "z-index" "id" "border-width" "border-color"
"absolute-position" "top" "right" "bottom" "left" "background-attachment" "background-image"
"background-repeat" "background-position-horizontal" "background-position-vertical"
"border-before-color" "border-before-style" "border-before-width" "border-after-color"
"border-after-style" "border-after-width" "border-start-color" "border-start-style"
"border-start-width" "border-end-color" "border-end-style" "border-end-width"
"border-top-color" "border-top-style" "border-top-width" "border-bottom-color"
"border-bottom-style" "border-bottom-width" "border-left-color" "border-left-style"
"border-left-width" "border-right-color" "border-right-style" "border-right-width"
"padding-before" "padding-after" "padding-start" "padding-end" "padding-top" "padding-bottom"
"padding-left" "padding-right" "margin-top" "margin-bottom" "margin-left" "margin-right"
"space-before" "space-after" "start-indent" "end-indent" "block-progression-dimension"
"break-after" "break-before" "clip" "display-align" "height" "id" "inline-progression-dimension"
"intrusion-displace" "keep-together" "keep-with-next" "keep-with-previous" "overflow"
"border-style" "docversion" "l-lock"
If the attribute are know it handle and draw its, otherwise it resave the original attribute to not destroy document layer.
Bugs report please send it!
Bugs are unexpected defects, faults, flaws, or imperfections in a computer program. MiniScribus Software wants to know about all defects that may be encountered in the XSL-FO editor.
The are two way:
If you having a Gmail account go to http://code.google.com/p/fop-miniscribus/issues/list and write a new Issues, and write what steps will reproduce the problem? Window version ....
If you dont have a Gmail account report defects on PDF Form Ticket
http://ciz.ch/Ticket_Form.pdf .
Know Bugs:
Render or display more than 5-6 pages. QTextDocument has performance issues to
render and display it fast. A workaround is to slice/chapter your text and compose
xsl-fo source to a book or more as 100 pages and render on Apache FOP (Formatting
Objects Processor) to create professional PDF page
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=135240
A component called QTextPanel that provides paginated text editing is available on SVN
http://fop-miniscribus.googlecode.com/svn/trunk/QTextPanel/
Thanks to Luiz (http://www.qtcentre.org/forum/u-netuno-7350.html) who helped me to
make this sub-project (initially forked from MiniScribus).
02.09.08 Append Print Preview rtf,tiff format export , xsl-fo file debug powerded by Apache Fop
31.08.2008 release the first MiniScribus Scribe forks source
beta version 2.0.0
11.10.07 version 0.5.8 / Set table cell / paragraph to default 0 / not 12pt top and 12 bottom space
from default QTextDocument Set only selectable active item at top zindex/zvalue on the active QGraphicsScene
( append subclass GraphicsScene) on this case not having intersection problem from Floating Layer.
14.10.07 version 0.6.1 enable to open xsl-fo file without block-container (on prepend page as on
floating container helpfull to copy text and create new pages), draw page margin inside the work-area,
append the fo:character tag
09.11.07 version 0.8.1 Fix Render PDF on QTextDocument Fontmetric, append US-Letter format
29.11.07 version 1.0.0 append main argument to print direct pdf file from fop example: ./MiniScribus -pdf destination.pdf sourcefile.fop
other programm can access to pdf result and use miniscribus as template to invoice or other, other beta DB label programm
Export fop file to XHTML ready , only rotate layer not possibel on html css. HTML export background-color from layer write
opacity:%1; filter: alpha(opacity=%1); -moz-opacity:%1; if alpha color chanel is more as 44.
Prepare setup to import PostScript image on GhostScript. ref. http://qtforum.de/forum/viewtopic.php?t=5517 and generate Barcode.
29.12.07 version 1.0.3 Handle font point size more as 99 , optimize GhostScript controll and better start of friend programm
direct pdf render (rotate elements on 500 milli.sek) + make source compatible on MS Visual Studio 2008 beta2
Ratings & Comments
17 Comments
Here is the ebuild for Gentoo users: http://bugs.gentoo.org/show_bug.cgi?id=237043 You can add this link into the list of downloads.
1000 tanks i append link .. have you any idea how to make package to debian?
After the first compilation, I had just a quick look at the fop-miniscribus and I have found this problems: 1) there is no configuration window where I could define some system parameters (where is the fop script located; if I want to execute acroread or another PDF viewer /kpdf?/; the same for RTF, ....) 2) it would be better to read directly the FO file and visualize it than save and load some scribus semi-format 3) if I do not save the document into the scribus format and I do create RTF or PDF, all the content is lost (I got blank page) 4) some icons are missing (it has the same symbol like some others)
This is beta not stable .. is the first XSL-FO WYSIWYG editor which open >90% (exeption altova ...) of all apache fop sample file. Only drag to main findow , if you drag image in it create a image tag .. Please submit all bug to: http://code.google.com/p/fop-miniscribus/issues/list and me or my Project members can handle. Scribus semi-format dont exist if your save to fo *.page format save doc 1:1 as internal QT document. You can try to edit xsl-fo file on http://www.qt-apps.org/content/show.php/qxsl-fo?content=82672 ... All icon that i having is at bottom from page: http://code.google.com/p/fop-miniscribus/ Can you help and draw icon? All text action is listed on file http://fop-miniscribus.googlecode.com/svn/trunk/fop_miniscribus.2.0.0/src/textapi/Layer_CommandStorage.h enums DynamicCommandID StaticCommandID AbsCommandID the last is only to Floating Layer ... any new Project members are welcome.
The icon should be called like the main executable file. In your case it should be foedit.png. Please apply the patch for your configure script as I mentioned above.
OK mutch tanks foedit is short to write.. on terminal or run.. I not know How i can append a menu application on the new KDE 4.1 or to send him KDE-Gnome
I would like to create an ebuild for Gentoo Linux and I have got this error: g++ -c -pipe -march=k8 -O2 -pipe -w -D_REENTRANT -DOPENGLINITYES -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I. -Ibookmark -Ifoformat -Ipaperformat -Itextapi -Iui -I../include -I../modules/apng -I../modules/tidy -I../modules/zip -I../modules/ooo -I../modules/xslt -I/usr/include/libxslt -I/usr/include/libxml2/libxml -I/usr/include/libxml2 -I../modules/ooo -I/usr/include -Ibuild/.moc -I. -o build/.obj/qrc_osApplication.o build/.rcc/qrc_osApplication.cpp g++ -Wl,-O1 -o ../scribe build/.obj/xslt_convert.o build/.obj/main.o build/.obj/MainWindow.o build/.obj/SessionManager.o build/.obj/XML_Editor.o build/.obj/BookMarkModel.o build/.obj/BookTree.o build/.obj/TranslateModel.o build/.obj/Fo_Format.o build/.obj/Fo_Reader.o build/.obj/Fo_Writter.o build/.obj/FoColorName.o build/.obj/Fop_Leader_Element.o build/.obj/PageFormatDlg.o build/.obj/PageFormatGroup.o build/.obj/BasicFoConfig.o build/.obj/getmargin.o build/.obj/href_gui.o build/.obj/Image_Page_Struct_Mime.o build/.obj/Layer_Absolute_Floating.o build/.obj/Layer_Auto_Extended.o build/.obj/Layer_CommandStorage.o build/.obj/Scribe_Parser.o build/.obj/table_setting.o build/.obj/Text_Api.o build/.obj/moc_xslt_convert.o build/.obj/moc_MainWindow.o build/.obj/moc_XML_Editor.o build/.obj/moc_BookMarkModel.o build/.obj/moc_BookTree.o build/.obj/moc_TranslateModel.o build/.obj/moc_Fo_Format.o build/.obj/moc_Fo_Reader.o build/.obj/moc_Fo_Writter.o build/.obj/moc_PageFormatDlg.o build/.obj/moc_getmargin.o build/.obj/moc_href_gui.o build/.obj/moc_Layer_Absolute_Floating.o build/.obj/moc_Layer_Auto_Extended.o build/.obj/moc_Scribe_Parser.o build/.obj/moc_table_setting.o build/.obj/moc_Text_Api.o build/.obj/qrc_osApplication.o -L/usr/lib64/qt4 -L/usr/X11R6/lib -lxml2 -lxslt /var/tmp/portage/app-text/fop-miniscribus-2.0.0/work/fop_miniscribus.2.0.0/lib/libtxtscribe.a -lQtSvg -L/usr/lib64 -L/usr/lib64/qt4 -L/usr/X11R6/lib -lQtXml -lQtOpenGL -lXi -lQtGui -lpng -lSM -lICE -lXrender -lXrandr -lfreetype -lfontconfig -lXext -lX11 -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lGLU -lGL -lpthread g++: /var/tmp/portage/app-text/fop-miniscribus-2.0.0/work/fop_miniscribus.2.0.0/lib/libtxtscribe.a: No such file or directory make[1]: *** [../scribe] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/fop-miniscribus-2.0.0/work/fop_miniscribus.2.0.0/src' make: *** [sub-src-make_default] Error 2 Can you tell me what's wrong? You could also publick the exact list of dependencies (qt-4.4, libxml2-2.6.32, libxslt-1.1.24, exiv2-0.17, ???).
Have you try the configure script.. I update now at this time rtf.tiff export and print preview on SVN tree. external lib are only: libxslt libxml2 libiconv read the main page http://code.google.com/p/fop-miniscribus/ Apache Fop is not a lib to build .. is need only to render pdfs.. 2 hours a go i build perfect on my depian testing
I have also noticed that your project doesn't support multiple jobs running within make (e.g. make -j3). It has to be executed only with -j1 otherwise it doesn't work.
libtxtscribe.a is the main lib from MiniScribus 2.0.0 if you use the ./configure its build all
OK, it looks like there is something else wrong. The first error occurs here: gcc -c -pipe -march=k8 -O2 -pipe -fPIC -w -D_REENTRANT -DOPENGLINITYES -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I. -Iapng -Iooo -Itidy -Izip -I../include -Iapng -Itidy -Izip -Iooo -Ixslt -I/usr/include/libxslt -I/usr/include/libxml2/libxml -I/usr/include/libxml2 -I/usr/include -I. -I. -o pnggccrd.o apng/pnggccrd.c {standard input}: Assembler messages: {standard input}:17: Error: suffix or operands invalid for `push' {standard input}:18: Error: suffix or operands invalid for `push' {standard input}:19: Error: suffix or operands invalid for `push' {standard input}:20: Error: suffix or operands invalid for `pushf' {standard input}:21: Error: suffix or operands invalid for `pop' {standard input}:24: Error: suffix or operands invalid for `push' {standard input}:25: Error: suffix or operands invalid for `popf' {standard input}:26: Error: suffix or operands invalid for `pushf' {standard input}:27: Error: suffix or operands invalid for `pop' {standard input}:28: Error: suffix or operands invalid for `push' {standard input}:29: Error: suffix or operands invalid for `popf' {standard input}:47: Error: suffix or operands invalid for `pop' {standard input}:48: Error: suffix or operands invalid for `pop' {standard input}:49: Error: suffix or operands invalid for `pop' make[1]: *** [pnggccrd.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-text/fop-miniscribus-2.0.0_beta/work/fop_miniscribus.2.0.0/modules' make: *** [sub-modules-make_default] Error 2 What I'm missing? Btw. could you apply this patch to your configure script? - *) show_usage; exit ;; + *) shift ;;
I dond know... On my debian i can build the subdir modules/ (to make lib) this APNG is original from Mozilla source i not changed the original source from mozilla ... This is only to display animated process on wait... as image to not paint hundert frames Have you take from SVN?
Try to rename /usr/include/pnglib file to not load png system libs... MiniScribus has is hown png libs As i Say on debian i renamed nothing
This is probably the problem: http://www.opensubscriber.com/message/linux-assembly@vger.kernel.org/6122292.html I'm running Gentoo on amd64 architecture. So it looks like your fop-miniscribus is able to compile only on x86 architecture (having MMX?). Maybe it would helps to use something like this on amd64: if ! use mmx; then CFLAGS="${CFLAGS} -DPNG_MMX_CODE_SUPPORTED -DPNG_HAVE_MMX_COMBINE_ROW" CXXFLAGS="${CXXFLAGS} -DPNG_MMX_CODE_SUPPORTED -DPNG_HAVE_MMX_COMBINE_ROW" fi Or is there some other workaround for amd64?
O yes this is possibel to make compatible on debian i append file http://fop-miniscribus.googlecode.com/svn/trunk/fop_miniscribus.2.0.0/include/iostream.h to take new method.. #include <ostream> #include <istream> I split now: Whithout APNG: (Not having mozilla png hack lib) http://fop-miniscribus.googlecode.com/svn/trunk/fop_miniscribus.2.0.0/ take this svn up ... I now having a x 64 hardware to test... Having APNG: https://wysiwyg-edit.svn.sourceforge.net/svnroot/wysiwyg-edit/fop_miniscribus.2.0.0/
OK, it works now. What about the patch for your configure script? - *) show_usage; exit ;; + *) shift ;; Could you rename the executable file "scribe" to "miniscribus" or "fop-miniscribus" otherwise it can colide with the name of another application (e.g. http://www.scribus.net). Is there some icon for the application?
As icon i have only mac zzz.icns win zzz.ico unix zzz.png on src/ source dir