├── .gitignore ├── COPYING ├── Changelog ├── FEATURES ├── Makefile ├── Makefile.flags.in ├── Makefile.rules.in ├── README ├── TODO ├── config ├── ax_boost_program_options.m4 ├── ax_check_zlib.m4 ├── boost_base.m4 ├── cppunit.m4 ├── env.m4 ├── freetype2.m4 ├── macro.m4 ├── pdfedit-core-dev.m4 └── xpdf.m4 ├── configure.in ├── dist-exclude ├── doc ├── .gitignore ├── AUTHORS ├── Doxyfile ├── LICENSE.GPL ├── Makefile ├── README-Tango ├── README.cygwin ├── design │ ├── .gitignore │ ├── Makefile │ ├── design_doc.xml │ ├── general.xml │ ├── general_layers.xml │ ├── general_technologies.xml │ ├── general_utils.xml │ ├── general_xpdf.xml │ ├── glossary.xml │ ├── gui │ │ ├── .gitignore │ │ ├── main.xml │ │ ├── menu.xml │ │ ├── settings.xml │ │ └── tree.xml │ ├── images │ │ ├── compositepattern.png │ │ ├── confparser.png │ │ ├── decaratorpattern.png │ │ ├── delinearizator.png │ │ ├── facadepattern.png │ │ ├── factorymethodpattern.png │ │ ├── iterator.png │ │ ├── iteratorpattern.png │ │ ├── kernel.png │ │ ├── layers.png │ │ ├── objectadapter.png │ │ ├── observer_classes.png │ │ ├── observer_cooperation.png │ │ ├── observerpattern.jpg │ │ ├── page_tree.png │ │ ├── parser.png │ │ ├── rulesmanager.png │ │ ├── scripting.png │ │ └── xpdf_streams.png │ ├── images_source │ │ ├── confparser.dia │ │ ├── delinearizator.dia │ │ ├── iterator.dia │ │ ├── kernel.dia │ │ ├── layers.dia │ │ ├── observer_classes.dia │ │ ├── observer_cooperation.dia │ │ ├── page_tree.dia │ │ ├── parser.dia │ │ ├── rulesmanager.dia │ │ ├── scripting.svg │ │ └── xpdf_streams.dia │ ├── kernel │ │ ├── .gitignore │ │ ├── cannotation.xml │ │ ├── ccontentstream.xml │ │ ├── cobjects.xml │ │ ├── cpage.xml │ │ ├── cpdf.xml │ │ ├── cxref.xml │ │ ├── filters.xml │ │ ├── helper_objects.xml │ │ ├── images │ │ │ ├── boost_streams_pdfedit.png │ │ │ ├── cannotation.png │ │ │ ├── ccontentstream_operator.png │ │ │ ├── cobjectsexample.png │ │ │ ├── cpdf_facade.png │ │ │ ├── cxref.png │ │ │ ├── iproperty.png │ │ │ ├── modecontroller.png │ │ │ ├── pdfoperator.png │ │ │ ├── pdfoperatorexample.png │ │ │ ├── pdfoperatoriterator.png │ │ │ ├── pdfoperators.png │ │ │ ├── progressobserver.png │ │ │ ├── stateupdater.png │ │ │ ├── xpdf_streams_simple.png │ │ │ └── xref_layer_diagram.png │ │ ├── images_source │ │ │ ├── boost_streams_pdfedit.dia │ │ │ ├── cannotation.dia │ │ │ ├── ccontentstream_operator.dia │ │ │ ├── cobjectsexample.dia │ │ │ ├── cpdf_facade.xml │ │ │ ├── cxref.dia │ │ │ ├── iproperty.dia │ │ │ ├── modecontroller.xml │ │ │ ├── pdfoperatorexample.dia │ │ │ ├── pdfoperatoriterator.dia │ │ │ ├── pdfoperators.dia │ │ │ ├── progressobserver.dia │ │ │ ├── stateupdater.dia │ │ │ ├── xpdf_streams_simple.dia │ │ │ └── xref_layer_diagram.dia │ │ ├── interface_objects.xml │ │ ├── layer_model.xml │ │ ├── main.xml │ │ ├── modecontroller.xml │ │ ├── observers.xml │ │ ├── pdfoperators.xml │ │ ├── pdfwriter.xml │ │ ├── progressobserver.xml │ │ ├── stateupdater.xml │ │ └── xrefwriter.xml │ └── purpose.xml ├── doc_format.rules ├── licence_header_c ├── licence_header_c.files ├── licence_header_shell ├── licence_header_shell.files ├── pdfedit.css ├── pdoc_footer.htm ├── pdoc_header.htm ├── tools │ ├── docbook2html │ ├── docbook2html_any │ ├── docbook2html_chunk │ ├── docbook2man.pl │ ├── docbook2pdf │ ├── docbook_xslt_paths │ ├── kbd_gen.pl │ ├── leaf2xml.pl │ └── scripting.gen.pl ├── user │ ├── .gitignore │ ├── Makefile │ ├── appendix-src.xml │ ├── cmdline │ │ ├── description.xml │ │ ├── localization.xml │ │ ├── main.xml │ │ ├── pdfedit.head │ │ └── pdfedit.tail │ ├── cs │ │ ├── .gitignore │ │ └── keyboard-src.xml │ ├── doc.css │ ├── examples │ │ └── test_plugin.qs │ ├── general.xml │ ├── glossary.xml │ ├── gui │ │ ├── command.xml │ │ ├── images │ │ │ ├── command_options_cmdedit.png │ │ │ ├── options_commandline.png │ │ │ ├── options_editor.png │ │ │ ├── options_execute.png │ │ │ ├── options_lookandfeel.png │ │ │ ├── options_objecttree.png │ │ │ ├── options_paths.png │ │ │ ├── options_toolbars.png │ │ │ ├── pagespace.png │ │ │ ├── pdfedit.png │ │ │ ├── propedit_all.png │ │ │ ├── propedit_catalog.png │ │ │ ├── propedit_edit.png │ │ │ ├── propedit_edit_add.png │ │ │ ├── propedit_edit_del.png │ │ │ ├── propedit_edit_ref.png │ │ │ ├── propedit_gfx_selection.png │ │ │ ├── propedit_impor.png │ │ │ ├── propedit_multiselection.png │ │ │ ├── propedit_op_desc.png │ │ │ ├── propedit_op_modes.png │ │ │ ├── propedit_opt_editor.png │ │ │ ├── propedit_opt_objtree.png │ │ │ ├── propedit_outlines.png │ │ │ ├── propedit_pages.png │ │ │ ├── propedit_rclick.png │ │ │ ├── propedit_stream.png │ │ │ ├── propedit_text_selection.png │ │ │ ├── theme1.png │ │ │ └── theme2.png │ │ ├── main.xml │ │ ├── menuAndToolbarsFun │ │ │ ├── functions.xml │ │ │ ├── functions_addText.xml │ │ │ ├── functions_drawLine.xml │ │ │ ├── functions_drawRect.xml │ │ │ ├── functions_highlightingText.xml │ │ │ ├── functions_selectAll.xml │ │ │ ├── functions_selectAnnotations.xml │ │ │ ├── functions_selectGraphicalOp.xml │ │ │ ├── functions_selectText.xml │ │ │ ├── functions_strikeThrough.xml │ │ │ ├── images │ │ │ │ ├── dialog_addFont.png │ │ │ │ ├── dialog_dashpattern.png │ │ │ │ ├── dialog_editPageMetrics.png │ │ │ │ ├── dialog_extractedText.png │ │ │ │ ├── dialog_findText.png │ │ │ │ ├── insert_pages.png │ │ │ │ ├── menu_edit.png │ │ │ │ ├── menu_file.png │ │ │ │ ├── menu_help.png │ │ │ │ ├── menu_page.png │ │ │ │ ├── menu_tools.png │ │ │ │ ├── menu_view.png │ │ │ │ ├── toolbars_draw.png │ │ │ │ ├── toolbars_dynamic.png │ │ │ │ ├── toolbars_main.png │ │ │ │ ├── toolbars_operator.png │ │ │ │ ├── toolbars_page.png │ │ │ │ ├── toolbars_revision.png │ │ │ │ ├── toolbars_selectionmode.png │ │ │ │ ├── toolbars_text.png │ │ │ │ └── toolbars_treeview.png │ │ │ ├── main.xml │ │ │ ├── menu.xml │ │ │ ├── menu_edit.xml │ │ │ ├── menu_file.xml │ │ │ ├── menu_help.xml │ │ │ ├── menu_page.xml │ │ │ ├── menu_tools.xml │ │ │ ├── menu_view.xml │ │ │ ├── toolbars.xml │ │ │ ├── toolbars_draw.xml │ │ │ ├── toolbars_dynamic.xml │ │ │ ├── toolbars_main.xml │ │ │ ├── toolbars_operator.xml │ │ │ ├── toolbars_page.xml │ │ │ ├── toolbars_revision.xml │ │ │ ├── toolbars_selectionModes.xml │ │ │ ├── toolbars_text.xml │ │ │ └── toolbars_treeview.xml │ │ ├── objtreepropedit.xml │ │ ├── pagespace.xml │ │ ├── settings.xml │ │ ├── settings_commandline.xml │ │ ├── settings_editor.xml │ │ ├── settings_lookandfeel.xml │ │ ├── settings_objecttree.xml │ │ ├── settings_paths.xml │ │ └── settings_toolbars.xml │ ├── images │ │ ├── filedialog.png │ │ ├── inputitem.png │ │ ├── inputtext.png │ │ ├── messageb1.png │ │ ├── pdfedit.png │ │ ├── qchkbox-w.png │ │ ├── qcombo1-w.png │ │ ├── qgrpbox-w.png │ │ ├── qlined-w.png │ │ ├── qradiobt-w.png │ │ ├── qsdateed.png │ │ ├── qspinbox-w.png │ │ └── qstimeed.png │ ├── install │ │ ├── compiling.xml │ │ ├── install.xml │ │ ├── platforms.xml │ │ └── requiredlib.xml │ ├── keyboard-src.xml │ ├── purpose.xml │ ├── qsa-inputdialog.leaf │ ├── qsa-util.leaf │ ├── scripting.xml │ ├── scripts │ │ ├── .gitignore │ │ ├── scripting-src.xml │ │ ├── scripting_callback.xml │ │ ├── scripting_intro.xml │ │ ├── scripting_nodoc.xml │ │ ├── scripting_objects.xml │ │ └── scripting_startup.xml │ └── user_doc.xml ├── versionfilter.sh └── zadani.pdf ├── getversion ├── maintains ├── makedist ├── projects ├── .gitignore ├── gui │ ├── installer │ │ ├── Product.wxs │ │ ├── UiDefinition.wxs │ │ └── pdfSetup.wixproj │ ├── pdfEd.vcxproj │ └── uninstall │ │ ├── unins000.dat │ │ └── unins000.exe ├── include │ ├── freetype │ │ ├── config │ │ │ ├── ftconfig.h │ │ │ ├── ftheader.h │ │ │ ├── ftmodule.h │ │ │ ├── ftoption.h │ │ │ └── ftstdlib.h │ │ ├── freetype.h │ │ ├── ftadvanc.h │ │ ├── ftbbox.h │ │ ├── ftbdf.h │ │ ├── ftbitmap.h │ │ ├── ftcache.h │ │ ├── ftchapters.h │ │ ├── ftcid.h │ │ ├── fterrdef.h │ │ ├── fterrors.h │ │ ├── ftgasp.h │ │ ├── ftglyph.h │ │ ├── ftgxval.h │ │ ├── ftgzip.h │ │ ├── ftimage.h │ │ ├── ftincrem.h │ │ ├── ftlcdfil.h │ │ ├── ftlist.h │ │ ├── ftlzw.h │ │ ├── ftmac.h │ │ ├── ftmm.h │ │ ├── ftmodapi.h │ │ ├── ftmoderr.h │ │ ├── ftotval.h │ │ ├── ftoutln.h │ │ ├── ftpfr.h │ │ ├── ftrender.h │ │ ├── ftsizes.h │ │ ├── ftsnames.h │ │ ├── ftstroke.h │ │ ├── ftsynth.h │ │ ├── ftsystem.h │ │ ├── fttrigon.h │ │ ├── fttypes.h │ │ ├── ftwinfnt.h │ │ ├── ftxf86.h │ │ ├── internal │ │ │ ├── autohint.h │ │ │ ├── ftcalc.h │ │ │ ├── ftdebug.h │ │ │ ├── ftdriver.h │ │ │ ├── ftgloadr.h │ │ │ ├── ftmemory.h │ │ │ ├── ftobjs.h │ │ │ ├── ftpic.h │ │ │ ├── ftrfork.h │ │ │ ├── ftserv.h │ │ │ ├── ftstream.h │ │ │ ├── fttrace.h │ │ │ ├── ftvalid.h │ │ │ ├── internal.h │ │ │ ├── pcftypes.h │ │ │ ├── psaux.h │ │ │ ├── pshints.h │ │ │ ├── services │ │ │ │ ├── svbdf.h │ │ │ │ ├── svcid.h │ │ │ │ ├── svgldict.h │ │ │ │ ├── svgxval.h │ │ │ │ ├── svkern.h │ │ │ │ ├── svmm.h │ │ │ │ ├── svotval.h │ │ │ │ ├── svpfr.h │ │ │ │ ├── svpostnm.h │ │ │ │ ├── svpscmap.h │ │ │ │ ├── svpsinfo.h │ │ │ │ ├── svsfnt.h │ │ │ │ ├── svttcmap.h │ │ │ │ ├── svtteng.h │ │ │ │ ├── svttglyf.h │ │ │ │ ├── svwinfnt.h │ │ │ │ └── svxf86nm.h │ │ │ ├── sfnt.h │ │ │ ├── t1types.h │ │ │ └── tttypes.h │ │ ├── t1tables.h │ │ ├── ttnameid.h │ │ ├── tttables.h │ │ ├── tttags.h │ │ └── ttunpat.h │ ├── ft2build.h │ ├── zconf.h │ └── zlib.h ├── kernel │ ├── kernel.vcproj │ └── kernel.vcxproj ├── libs │ ├── D050000L.PFB │ ├── N019003L.PFB │ ├── N019004L.PFB │ ├── N019023L.PFB │ ├── N019024L.PFB │ ├── N021003L.PFB │ ├── N021004L.PFB │ ├── N021023L.PFB │ ├── N021024L.PFB │ ├── N022003L.PFB │ ├── N022004L.PFB │ ├── N022023L.PFB │ ├── N022024L.PFB │ ├── S050000L.PFB │ ├── freetype.lib │ ├── freetype6.dll │ ├── zlib1.dll │ └── zlib1.lib ├── other │ ├── test_boost │ │ ├── test_boost.cpp │ │ ├── test_boost.vcproj │ │ └── test_boost.vcxproj │ ├── test_cppunit │ │ ├── test_cppunit.cpp │ │ ├── test_cppunit.vcproj │ │ └── test_cppunit.vcxproj │ ├── test_freetype2 │ │ ├── test_freetype2.cpp │ │ ├── test_freetype2.vcproj │ │ └── test_freetype2.vcxproj │ └── test_zlib │ │ ├── test_zlib.cpp │ │ ├── test_zlib.vcproj │ │ └── test_zlib.vcxproj ├── packaging │ ├── gui.installer │ │ ├── config │ │ └── gui.installer.vcproj │ └── package.py ├── pdfedit.vc2008.sln ├── pdfedit.vc2010.sln ├── readme ├── releasenotes.txt ├── tests │ └── tests.vcproj ├── tools │ ├── add_image.vcproj │ ├── add_text.vcproj │ ├── add_to_sln.py │ ├── create_vcproj.py │ ├── delinearizator.vcproj │ ├── displaycs.vcproj │ ├── flattener.vcproj │ ├── pagemetrics.vcproj │ ├── parse_object.vcproj │ ├── pdf_images.vcproj │ ├── pdf_object_comparer.vcproj │ ├── pdf_object_printer.vcproj │ ├── pdf_page_from_ref.vcproj │ ├── pdf_page_to_ref.vcproj │ ├── pdf_to_bmp.vcproj │ ├── pdf_to_text.vcproj │ ├── pdftops.vcproj │ └── replace_text.vcproj ├── vsprops │ ├── arch_armv4i.vsprops │ ├── arch_mipsii.vsprops │ ├── arch_x86.vsprops │ ├── base.props │ ├── base.vsprops │ ├── debug.props │ ├── debug.vsprops │ ├── exe.props │ ├── exe.vsprops │ ├── gui.props │ ├── kernel.props │ ├── kernel.vsprops │ ├── lib.props │ ├── lib.vsprops │ ├── release.props │ ├── release.vsprops │ ├── tests.props │ ├── tests.vsprops │ ├── tools.props │ ├── tools.vsprops │ ├── win32.props │ ├── win32.vsprops │ ├── wince5.vsprops │ ├── wince6.vsprops │ ├── xpdf.props │ └── xpdf.vsprops └── xpdf │ ├── xpdf.vcproj │ └── xpdf.vcxproj ├── src ├── .gitignore ├── Makefile ├── gui │ ├── .gitignore │ ├── Makefile.gui │ ├── MyWidget.h │ ├── OpenPdf.ui │ ├── Search.cpp │ ├── Search.h │ ├── Settings.ui │ ├── Tab.ui │ ├── TabPage.cpp │ ├── TabPage.h │ ├── aboutDialog.ui │ ├── annotationFrame.ui │ ├── bookmark.cpp │ ├── bookmark.h │ ├── colorPicker.cpp │ ├── colorPicker.ui │ ├── colorpicker.h │ ├── comments.cpp │ ├── comments.h │ ├── comments.ui │ ├── convertPageRange.ui │ ├── debug.h │ ├── debugFrame.ui │ ├── exportImage.ui │ ├── fontWidget.cpp │ ├── fontWidget.h │ ├── globalfunctions.cpp │ ├── globalfunctions.h │ ├── imageFrame.ui │ ├── images │ │ ├── DeleteText.png │ │ ├── TextConvert.png │ │ ├── about.png │ │ ├── addComment.png │ │ ├── addImage.png │ │ ├── addLink.png │ │ ├── addpage.png │ │ ├── analyze.png │ │ ├── background.png │ │ ├── bubble.png │ │ ├── change.png │ │ ├── changed.png │ │ ├── comment.png │ │ ├── commit.png │ │ ├── content.png │ │ ├── debug.png │ │ ├── decrypt_icon.png │ │ ├── deletepage.png │ │ ├── derotate.png │ │ ├── disabled.png │ │ ├── downpage.png │ │ ├── enabled.png │ │ ├── eraseText.png │ │ ├── exit.png │ │ ├── export.png │ │ ├── firstPage.png │ │ ├── font.png │ │ ├── hand.png │ │ ├── highlight.png │ │ ├── images.png │ │ ├── insertTextMarker.png │ │ ├── insert_text.png │ │ ├── lastPage.png │ │ ├── mainIcon.png │ │ ├── nextpage.png │ │ ├── open.png │ │ ├── operator.png │ │ ├── page_down.png │ │ ├── position.png │ │ ├── previousPage.png │ │ ├── redo.png │ │ ├── refresh.png │ │ ├── rotate.png │ │ ├── save-encoded.png │ │ ├── save.png │ │ ├── saveas.png │ │ ├── savecopy.png │ │ ├── search.png │ │ ├── setText.png │ │ ├── settings.png │ │ ├── snapshot.png │ │ ├── stop.png │ │ ├── undo.png │ │ ├── unknown.png │ │ ├── uppage.png │ │ ├── view.png │ │ └── zoom.png │ ├── insertImage.cpp │ ├── insertImage.h │ ├── insertImage.ui │ ├── insertpagerange.cpp │ ├── insertpagerange.h │ ├── insertpagerange.ui │ ├── main.cpp │ ├── openpdf.cpp │ ├── openpdf.h │ ├── operatorData.cpp │ ├── operatorData.h │ ├── page.cpp │ ├── page.h │ ├── page.ui │ ├── pdf.qrc │ ├── pdfeditor.pro │ ├── pdfgui.cpp │ ├── pdfgui.h │ ├── pdfgui.ui │ ├── properties.ui │ ├── rotatepagerange.cpp │ ├── rotatepagerange.h │ ├── rotatepagerange.ui │ ├── search.ui │ ├── textFrame.ui │ ├── textWindow.ui │ ├── tree.cpp │ ├── tree.h │ └── typedefs.h ├── kernel │ ├── .gitignore │ ├── Makefile │ ├── cannotation.cc │ ├── cannotation.h │ ├── carray.cc │ ├── carray.h │ ├── ccontentstream.cc │ ├── ccontentstream.h │ ├── cdict.cc │ ├── cdict.h │ ├── cinlineimage.cc │ ├── cinlineimage.h │ ├── cobject.cc │ ├── cobject.h │ ├── cobject2string.cc │ ├── cobject2xpdf.cc │ ├── cobjecthelpers.cc │ ├── cobjecthelpers.h │ ├── cobjectsimple.h │ ├── cobjectsimpleI.h │ ├── contentschangetag.cc │ ├── contentschangetag.h │ ├── coutline.cc │ ├── coutline.h │ ├── cpage.cc │ ├── cpage.h │ ├── cpageannots.cc │ ├── cpageannots.h │ ├── cpageattributes.cc │ ├── cpageattributes.h │ ├── cpagechanges.cc │ ├── cpagechanges.h │ ├── cpagecontents.cc │ ├── cpagecontents.h │ ├── cpagedisplay.cc │ ├── cpagedisplay.h │ ├── cpagefonts.cc │ ├── cpagefonts.h │ ├── cpagemodule.h │ ├── cpdf.cc │ ├── cpdf.h │ ├── cstream.cc │ ├── cstream.h │ ├── cstreamsxpdfreader.h │ ├── cxref.cc │ ├── cxref.h │ ├── delinearizator.cc │ ├── delinearizator.h │ ├── displayparams.h │ ├── exceptions.h │ ├── factories.cc │ ├── factories.h │ ├── flattener.cc │ ├── flattener.h │ ├── indiref.h │ ├── iproperty.cc │ ├── iproperty.h │ ├── modecontroller.cc │ ├── modecontroller.h │ ├── operatorhinter.h │ ├── pdfedit-core-dev-config.tmpl │ ├── pdfedit-core-dev.cc │ ├── pdfedit-core-dev.h │ ├── pdfoperators.cc │ ├── pdfoperators.h │ ├── pdfoperatorsbase.cc │ ├── pdfoperatorsbase.h │ ├── pdfoperatorsiter.cc │ ├── pdfoperatorsiter.h │ ├── pdfspecification.cc │ ├── pdfspecification.h │ ├── pdfwriter.cc │ ├── pdfwriter.h │ ├── stateupdater.cc │ ├── stateupdater.h │ ├── static.cc │ ├── static.h │ ├── streamwriter.cc │ ├── streamwriter.h │ ├── textoutput.h │ ├── textoutputbuilder.cc │ ├── textoutputbuilder.h │ ├── textoutputengines.cc │ ├── textoutputengines.h │ ├── textoutputentities.cc │ ├── textoutputentities.h │ ├── textsearchparams.h │ ├── utils.h │ ├── xpdf.cc │ ├── xpdf.h │ ├── xrefwriter.cc │ └── xrefwriter.h ├── os │ ├── Makefile │ ├── compiler.h │ ├── posix.h │ └── win.h ├── tests │ ├── Makefile │ ├── bench │ │ ├── Makefile │ │ ├── compare_results.sh │ │ ├── content_stream_bench.cc │ │ ├── cpdf_bench.cc │ │ ├── delinearize_bench.cc │ │ ├── file_info.cc │ │ ├── utils.cc │ │ ├── utils.h │ │ └── xrefwriter_bench.cc │ └── kernel │ │ ├── .gitignore │ │ ├── Makefile │ │ ├── encrypt_passwd.rc │ │ ├── main.cc │ │ ├── testccontentstream.cc │ │ ├── testcobject.h │ │ ├── testcobjectcomplex.cc │ │ ├── testcobjecthelpers.cc │ │ ├── testcobjectsimple.cc │ │ ├── testcpage.cc │ │ ├── testcpage.h │ │ ├── testcpdf.cc │ │ ├── testcpdf.h │ │ ├── testcstream.cc │ │ ├── testencrypt.cc │ │ ├── testmain.h │ │ ├── testoutlines.cc │ │ ├── testparams.cc │ │ ├── testparams.h │ │ ├── testpdfoperators.cc │ │ ├── teststream.cc │ │ ├── teststreamwriter.cc │ │ ├── testtextoutput.cc │ │ └── testutils.cc ├── tools │ ├── .gitignore │ ├── Makefile │ ├── add_image.cc │ ├── add_text.cc │ ├── common.cc │ ├── common.h │ ├── delinearizator.cc │ ├── displaycs.cc │ ├── flattener.cc │ ├── pagemetrics.cc │ ├── parse_object.cc │ ├── pdf_images.cc │ ├── pdf_object_comparer.cc │ ├── pdf_object_printer.cc │ ├── pdf_page_from_ref.cc │ ├── pdf_page_to_ref.cc │ ├── pdf_to_bmp.cc │ ├── pdf_to_text.cc │ └── replace_text.cc ├── utils │ ├── .gitignore │ ├── Makefile │ ├── algorithms.h │ ├── algorithms │ │ ├── Makefile │ │ └── basic_algos.h │ ├── confparser.cc │ ├── confparser.h │ ├── debug.cc │ ├── debug.h │ ├── doxygen.h │ ├── iterator.h │ ├── listitem.h │ ├── logger.h │ ├── objectstorage.h │ ├── observer.h │ ├── rulesmanager.h │ ├── types.h │ └── types │ │ ├── Makefile │ │ ├── basic_types.h │ │ └── coordinates.h └── xpdf │ ├── .gitignore │ ├── ANNOUNCE │ ├── CHANGES │ ├── COPYING │ ├── INSTALL │ ├── Makefile.in │ ├── README │ ├── aconf-dj.h │ ├── aconf-win32.h │ ├── fofi │ ├── .gitignore │ ├── FoFiBase.cc │ ├── FoFiBase.h │ ├── FoFiEncodings.cc │ ├── FoFiEncodings.h │ ├── FoFiTrueType.cc │ ├── FoFiTrueType.h │ ├── FoFiType1.cc │ ├── FoFiType1.h │ ├── FoFiType1C.cc │ ├── FoFiType1C.h │ ├── Makefile.in │ └── vms_make.com │ ├── goo │ ├── .gitignore │ ├── FixedPoint.cc │ ├── FixedPoint.h │ ├── GHash.cc │ ├── GHash.h │ ├── GList.cc │ ├── GList.h │ ├── GMutex.h │ ├── GString.cc │ ├── GString.h │ ├── Makefile.in │ ├── gfile.cc │ ├── gfile.h │ ├── gmem.cc │ ├── gmem.h │ ├── gmempp.cc │ ├── gtypes.h │ ├── parseargs.c │ ├── parseargs.h │ ├── vms_directory.c │ ├── vms_dirent.h │ ├── vms_make.com │ ├── vms_sys_dirent.h │ ├── vms_unix_time.h │ ├── vms_unix_times.c │ └── vms_unlink.c │ ├── splash │ ├── .gitignore │ ├── Makefile.in │ ├── Splash.cc │ ├── Splash.h │ ├── SplashBitmap.cc │ ├── SplashBitmap.h │ ├── SplashClip.cc │ ├── SplashClip.h │ ├── SplashErrorCodes.h │ ├── SplashFTFont.cc │ ├── SplashFTFont.h │ ├── SplashFTFontEngine.cc │ ├── SplashFTFontEngine.h │ ├── SplashFTFontFile.cc │ ├── SplashFTFontFile.h │ ├── SplashFont.cc │ ├── SplashFont.h │ ├── SplashFontEngine.cc │ ├── SplashFontEngine.h │ ├── SplashFontFile.cc │ ├── SplashFontFile.h │ ├── SplashFontFileID.cc │ ├── SplashFontFileID.h │ ├── SplashGlyphBitmap.h │ ├── SplashMath.h │ ├── SplashPath.cc │ ├── SplashPath.h │ ├── SplashPattern.cc │ ├── SplashPattern.h │ ├── SplashScreen.cc │ ├── SplashScreen.h │ ├── SplashState.cc │ ├── SplashState.h │ ├── SplashT1Font.cc │ ├── SplashT1Font.h │ ├── SplashT1FontEngine.cc │ ├── SplashT1FontEngine.h │ ├── SplashT1FontFile.cc │ ├── SplashT1FontFile.h │ ├── SplashTypes.h │ ├── SplashXPath.cc │ ├── SplashXPath.h │ ├── SplashXPathScanner.cc │ ├── SplashXPathScanner.h │ └── vms_make.com │ ├── xpdf-aconf.h.in │ ├── xpdf-aconf2.h │ └── xpdf │ ├── .gitignore │ ├── Annot.cc │ ├── Annot.h │ ├── Array.cc │ ├── Array.h │ ├── BuiltinFont.cc │ ├── BuiltinFont.h │ ├── BuiltinFontTables.cc │ ├── BuiltinFontTables.h │ ├── CMap.cc │ ├── CMap.h │ ├── Catalog.cc │ ├── Catalog.h │ ├── CharCodeToUnicode.cc │ ├── CharCodeToUnicode.h │ ├── CharTypes.h │ ├── CompactFontTables.h │ ├── CoreOutputDev.cc │ ├── CoreOutputDev.h │ ├── Decrypt.cc │ ├── Decrypt.h │ ├── Dict.cc │ ├── Dict.h │ ├── Error.cc │ ├── Error.h │ ├── ErrorCodes.h │ ├── FontEncodingTables.cc │ ├── FontEncodingTables.h │ ├── Function.cc │ ├── Function.h │ ├── Gfx.cc │ ├── Gfx.h │ ├── GfxFont.cc │ ├── GfxFont.h │ ├── GfxState.cc │ ├── GfxState.h │ ├── GlobalParams.cc │ ├── GlobalParams.h │ ├── ImageOutputDev.cc │ ├── ImageOutputDev.h │ ├── JArithmeticDecoder.cc │ ├── JArithmeticDecoder.h │ ├── JBIG2Stream.cc │ ├── JBIG2Stream.h │ ├── JPXStream.cc │ ├── JPXStream.h │ ├── Lexer.cc │ ├── Lexer.h │ ├── Link.cc │ ├── Link.h │ ├── Makefile.in │ ├── NameToCharCode.cc │ ├── NameToCharCode.h │ ├── NameToUnicodeTable.h │ ├── Object.cc │ ├── Object.h │ ├── Outline.cc │ ├── Outline.h │ ├── OutputDev.cc │ ├── OutputDev.h │ ├── PDFCore.cc │ ├── PDFCore.h │ ├── PDFDoc.cc │ ├── PDFDoc.h │ ├── PDFDocEncoding.cc │ ├── PDFDocEncoding.h │ ├── PSOutputDev.cc │ ├── PSOutputDev.h │ ├── PSTokenizer.cc │ ├── PSTokenizer.h │ ├── Page.cc │ ├── Page.h │ ├── Parser.cc │ ├── Parser.h │ ├── PreScanOutputDev.cc │ ├── PreScanOutputDev.h │ ├── SecurityHandler.cc │ ├── SecurityHandler.h │ ├── SplashOutputDev.cc │ ├── SplashOutputDev.h │ ├── Stream-CCITT.h │ ├── Stream.cc │ ├── Stream.h │ ├── TextOutputDev.cc │ ├── TextOutputDev.h │ ├── UTF8.h │ ├── UnicodeMap.cc │ ├── UnicodeMap.h │ ├── UnicodeMapTables.h │ ├── UnicodeTypeTable.cc │ ├── UnicodeTypeTable.h │ ├── XPDFApp.cc │ ├── XPDFApp.h │ ├── XPDFCore.cc │ ├── XPDFCore.h │ ├── XPDFTree.cc │ ├── XPDFTree.h │ ├── XPDFTreeP.h │ ├── XPDFViewer.cc │ ├── XPDFViewer.h │ ├── XRef.cc │ ├── XRef.h │ ├── XpdfPluginAPI.cc │ ├── XpdfPluginAPI.h │ ├── about-text.h │ ├── about.xbm │ ├── backArrow.xbm │ ├── backArrowDis.xbm │ ├── config.h │ ├── dblLeftArrow.xbm │ ├── dblLeftArrowDis.xbm │ ├── dblRightArrow.xbm │ ├── dblRightArrowDis.xbm │ ├── encrypt_utils.cc │ ├── encrypt_utils.h │ ├── find.xbm │ ├── findDis.xbm │ ├── forwardArrow.xbm │ ├── forwardArrowDis.xbm │ ├── leftArrow.xbm │ ├── leftArrowDis.xbm │ ├── pdffonts.cc │ ├── pdfimages.cc │ ├── pdfinfo.cc │ ├── pdftoppm.cc │ ├── pdftops.cc │ ├── pdftotext.cc │ ├── print.xbm │ ├── printDis.xbm │ ├── rightArrow.xbm │ ├── rightArrowDis.xbm │ ├── vms_make.com │ ├── xpdf.cc │ └── xpdfIcon.xpm ├── testset ├── 00uebung.pdf ├── 3_pkcs.pdf ├── PDFReference16.pdf ├── SLD-Intro.pdf ├── TN5603.Filters.pdf ├── corrupted_bad_dictionary.pdf ├── corrupted_bad_page.pdf ├── corrupted_stream_content.pdf ├── corrupted_stream_length.pdf ├── corrupted_trailer.pdf ├── corrupted_xref.pdf ├── encrypt_nopasswd.pdf ├── encrypt_passwd_a.pdf ├── mode.conf ├── mode_bad.conf ├── mode_empty.conf ├── multi_enc.pdf ├── multiversion.pdf ├── operator.conf ├── smallpdf.pdf └── zadani.pdf ├── tools ├── bench.sh ├── check_files.sh ├── cygwin_build.bat ├── cygwinbuild ├── fake_install_tools.sh ├── generate_lang.sh ├── generate_online_help.sh ├── headergen ├── headergen.txt ├── mass_patch.sh ├── release_check └── rmdir.sh └── version_exclude /.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *~ 3 | *.orig 4 | *.rej 5 | *.a 6 | .project 7 | pdfedit-*.*.*.tar.gz 8 | pdfedit-*.*.*.tar.bz2 9 | config.log 10 | config.status 11 | Makefile 12 | Makefile.flags 13 | Makefile.rules 14 | autom4te.cache 15 | configure 16 | cscope.out 17 | *.bak -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | PDFedit - free program for PDF document manipulation. 2 | Copyright (C) 2006, 2007, 2008 PDFedit team: Michal Hocko, 3 | Miroslav Jahoda, 4 | Jozef Misutka, 5 | Martin Petricek 6 | 7 | This program is free software; you can redistribute it and/or 8 | modify it under the terms of the GNU General Public License 9 | as published by the Free Software Foundation; version 2 10 | of the License. 11 | 12 | This program is distributed in the hope that it will be useful, 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, write to the Free Software 19 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 20 | 02110-1301, USA. 21 | 22 | Copy of GPL is available in doc/LICENSE.GPL file. 23 | -------------------------------------------------------------------------------- /FEATURES: -------------------------------------------------------------------------------- 1 | FEATURES 2 | ======== 3 | 4 | GUI 5 | + Tree 6 | + Property editor 7 | + CommandWindow - kratka zminka o skriptingu 8 | + PageSpace + mody 9 | + Konfigurovatelna menu 10 | 11 | SCRIPTING 12 | - Vsechno je skriptovatelne 13 | + Plugin skripty 14 | 15 | COMMANDLINE = Mod bez GUI 16 | + princip funkce, "plugin skripty 17 | 18 | -------------------------------------------------------------------------------- /config/env.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN(CHK_ENV_VAR,[ 2 | if test "x$[]$1" = x; then 3 | AC_MSG_ERROR($2) 4 | fi 5 | ]) 6 | AC_DEFUN(CHK_ENV_VAR_WARN,[ 7 | if test "x$[]$1" = x; then 8 | AC_MSG_WARN($2) 9 | fi 10 | ]) 11 | AC_DEFUN(CHK_ENV_VAR_NOTICE,[ 12 | if test "x$[]$1" = x; then 13 | AC_MSG_NOTICE($2) 14 | fi 15 | ]) 16 | 17 | AC_DEFUN(CHK_OR_DEFINE_VAR, [ 18 | if test -z "$[]$1" 19 | then 20 | $1=$2 21 | AC_MSG_NOTICE(Using default $1=$2) 22 | else 23 | AC_MSG_NOTICE(Using provided $1=$[]$1) 24 | fi 25 | ]) 26 | -------------------------------------------------------------------------------- /dist-exclude: -------------------------------------------------------------------------------- 1 | .gitignore 2 | autom4te.cache 3 | .git 4 | TODO 5 | FEATURES 6 | maintains 7 | dist-exclude 8 | makedist 9 | testset 10 | Makefile.flags 11 | Makefile.rules 12 | doc/doxygen.warnings 13 | doc/navrh 14 | doc/programmer 15 | doc/xpdf_analyse 16 | doc/copyright.files 17 | src/config_xpdf_variables 18 | src/gui/.moc 19 | src/gui/.obj 20 | src/gui/.headergen.ignore 21 | src/gui/.pdfeditrc.lock 22 | src/gui/.ui 23 | src/gui/menugenerator 24 | src/gui/obr 25 | src/gui/pdfedit 26 | src/gui/run-pdfedit-nd 27 | src/gui/ulab-fix 28 | src/gui/Makefile.qt 29 | src/gui/version.cc 30 | src/kpdf-kde-3.3.2/*.a 31 | src/kpdf-kde-3.3.2/*.o 32 | src/kpdf-kde-3.3.2/Makefile.qt 33 | src/kernel/*.a 34 | src/kernel/*.o 35 | src/kernel/.obj 36 | src/kernel/kernel 37 | src/kernel/kernel.gch 38 | src/utils/.keepme 39 | src/xpdf/Makefile 40 | src/xpdf/aconf.h 41 | src/xpdf/config.log 42 | src/xpdf/config.status 43 | src/xpdf/fofi/*.a 44 | src/xpdf/fofi/*.o 45 | src/xpdf/fofi/Makefile 46 | src/xpdf/goo/*.a 47 | src/xpdf/goo/*.o 48 | src/xpdf/goo/Makefile 49 | src/xpdf/splash/*.a 50 | src/xpdf/splash/*.o 51 | src/xpdf/splash/Makefile 52 | src/xpdf/xpdf/*.a 53 | src/xpdf/xpdf/*.o 54 | src/xpdf/xpdf/Makefile 55 | src/xpdf/xpdf/pdffonts 56 | src/xpdf/xpdf/pdfimages 57 | src/xpdf/xpdf/pdfinfo 58 | src/xpdf/xpdf/pdftoppm 59 | src/xpdf/xpdf/pdftops 60 | src/xpdf/xpdf/pdftotext 61 | src/xpdf/xpdf/xpdf 62 | test/* 63 | -------------------------------------------------------------------------------- /doc/.gitignore: -------------------------------------------------------------------------------- 1 | programmer 2 | doxygen.warnings* 3 | -------------------------------------------------------------------------------- /doc/AUTHORS: -------------------------------------------------------------------------------- 1 | PDFedit authors 2 | =============== 3 | Michal Hocko 4 | Miroslav Jahoda 5 | Jozef Misutka 6 | Martin Petricek 7 | 8 | Thanks to 9 | ========= 10 | Derek Noonburg Xpdf author (http://www.foolabs.com/xpdf) 11 | 12 | Other contributors 13 | ================== 14 | Tiziano Mattei Tango icon theme. See src/gui/icon/Tango/README for more information about this set 15 | Vicente Romero Calero Spanish translation 16 | Andreas Mantke, Georg Hofmann German translation 17 | Alexandre Prokoudine Russian translation 18 | Sylvain French translation 19 | Yi-Shun Wang Chinese (traditional) translation 20 | Pavel Ondrousek RPM package, available at http://sourceforge.net/project/showfiles.php?group_id=177354 21 | Varun Hiremath Debian package, available at http://packages.qa.debian.org/p/pdfedit.html 22 | Pavel Sanda Gentoo ebuild, available at Sun Overlay repository 23 | Lubomir Kundrak NetBSD package, available at http://pkgsrc.se/wip/pdfedit 24 | 25 | Also thanks to Varun Hiremath, Ron Kaminsky and Martin Michlmayr for various small patches 26 | and many other people for their suggestions and bug reports. 27 | -------------------------------------------------------------------------------- /doc/README.cygwin: -------------------------------------------------------------------------------- 1 | This is readme file for cygwin build of pdfedit. 2 | 3 | This is binary build of pdfedit for Cygwin on Windows. 4 | For sources and for more information about pdfedit, head to: 5 | 6 | http://pdfedit.petricek.net - PDFedit homepage 7 | http://sourceforge.net/projects/pdfedit - PDFedit project on sourceforge 8 | 9 | PDFedit is released under GNU GPL license. 10 | A copy of is available in usr/local/share/doc/LICENSE.GPL in this package. 11 | 12 | Requirements 13 | ------------ 14 | You will need to have cygwin installed. 15 | From cygwin packages, you will need Qt3 and X Window installed. If you want 16 | to use icons then you need to have libpng installed. 17 | 18 | Installation 19 | ------------ 20 | Extract all files from this package to root directory where cygwin is installed. 21 | 22 | All pdfedit files will be placed under /usr/local directory 23 | You may want to add /usr/local/bin to your PATH. 24 | 25 | You can delete this readme file after installation. 26 | 27 | Running pdfedit 28 | --------------- 29 | 30 | If you put /usr/local/bin to your PATH in cygwin, run "pdfedit" 31 | You will need to have running X Window server before running pdfedit, 32 | unless you stick only with the commandline interface. 33 | -------------------------------------------------------------------------------- /doc/design/.gitignore: -------------------------------------------------------------------------------- 1 | design_doc.html 2 | -------------------------------------------------------------------------------- /doc/design/general.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | PDFEdit general overview 5 | 6 | This part describes general information about project internals. Which 7 | technologies were used during design and implementation and which helper 8 | (utils) classes were implemented as support for particular tasks. 9 | Finally describes &xpdf_link_index; code reusage and modifications 10 | neccessary to enable such usage. 11 | 12 | 13 | &general_techn; 14 | 15 | &general_layers; 16 | 17 | &general_utils; 18 | 19 | &general_xpdf; 20 | 21 | -------------------------------------------------------------------------------- /doc/design/gui/.gitignore: -------------------------------------------------------------------------------- 1 | menu.html 2 | menu.pdf 3 | tree.html 4 | tree.pdf 5 | settings.html 6 | settings.pdf 7 | -------------------------------------------------------------------------------- /doc/design/gui/main.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | GUI design description 9 | 10 |
11 | 12 | This part describes some basic principles of graphical user interface. 13 | Described is menu settings system, used to manage menu and toolbar items, 14 | setting system, which is used to read, write, manage and watch settings 15 | and defaults and the tree system, which is used to manage the object 16 | treeview on right side of editor window. 17 | Some of the principles (settings system) work also in commandline interface, 18 | although there is one small difference - in comandline mode there is no 19 | system to notify about changed setting, but it is also not necessary, 20 | as there is no user interaction in that mode. 21 | 22 |
23 | 24 | &gui_menu; 25 | 26 | &gui_settings; 27 | 28 | &gui_tree; 29 | 30 |
31 | -------------------------------------------------------------------------------- /doc/design/images/compositepattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/compositepattern.png -------------------------------------------------------------------------------- /doc/design/images/confparser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/confparser.png -------------------------------------------------------------------------------- /doc/design/images/decaratorpattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/decaratorpattern.png -------------------------------------------------------------------------------- /doc/design/images/delinearizator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/delinearizator.png -------------------------------------------------------------------------------- /doc/design/images/facadepattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/facadepattern.png -------------------------------------------------------------------------------- /doc/design/images/factorymethodpattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/factorymethodpattern.png -------------------------------------------------------------------------------- /doc/design/images/iterator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/iterator.png -------------------------------------------------------------------------------- /doc/design/images/iteratorpattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/iteratorpattern.png -------------------------------------------------------------------------------- /doc/design/images/kernel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/kernel.png -------------------------------------------------------------------------------- /doc/design/images/layers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/layers.png -------------------------------------------------------------------------------- /doc/design/images/objectadapter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/objectadapter.png -------------------------------------------------------------------------------- /doc/design/images/observer_classes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/observer_classes.png -------------------------------------------------------------------------------- /doc/design/images/observer_cooperation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/observer_cooperation.png -------------------------------------------------------------------------------- /doc/design/images/observerpattern.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/observerpattern.jpg -------------------------------------------------------------------------------- /doc/design/images/page_tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/page_tree.png -------------------------------------------------------------------------------- /doc/design/images/parser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/parser.png -------------------------------------------------------------------------------- /doc/design/images/rulesmanager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/rulesmanager.png -------------------------------------------------------------------------------- /doc/design/images/scripting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/scripting.png -------------------------------------------------------------------------------- /doc/design/images/xpdf_streams.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images/xpdf_streams.png -------------------------------------------------------------------------------- /doc/design/images_source/confparser.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/confparser.dia -------------------------------------------------------------------------------- /doc/design/images_source/delinearizator.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/delinearizator.dia -------------------------------------------------------------------------------- /doc/design/images_source/iterator.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/iterator.dia -------------------------------------------------------------------------------- /doc/design/images_source/kernel.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/kernel.dia -------------------------------------------------------------------------------- /doc/design/images_source/layers.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/layers.dia -------------------------------------------------------------------------------- /doc/design/images_source/observer_classes.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/observer_classes.dia -------------------------------------------------------------------------------- /doc/design/images_source/observer_cooperation.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/observer_cooperation.dia -------------------------------------------------------------------------------- /doc/design/images_source/page_tree.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/page_tree.dia -------------------------------------------------------------------------------- /doc/design/images_source/parser.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/parser.dia -------------------------------------------------------------------------------- /doc/design/images_source/rulesmanager.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/rulesmanager.dia -------------------------------------------------------------------------------- /doc/design/images_source/xpdf_streams.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/images_source/xpdf_streams.dia -------------------------------------------------------------------------------- /doc/design/kernel/.gitignore: -------------------------------------------------------------------------------- 1 | ccontentstream.html 2 | ccontentstream.pdf 3 | cobjects.html 4 | cobjects.pdf 5 | cpage.html 6 | cpage.pdf 7 | cpdf.html 8 | cpdf.pdf 9 | document_changes.html 10 | document_changes.pdf 11 | filters.html 12 | filters.pdf 13 | observers.html 14 | observers.pdf 15 | pdfoperatoriterator.html 16 | pdfoperatoriterator.pdf 17 | pdfoperators.html 18 | pdfoperators.pdf 19 | stateupdater.html 20 | stateupdater.pdf 21 | xpdf_modifications.html 22 | xpdf_modifications.pdf 23 | -------------------------------------------------------------------------------- /doc/design/kernel/helper_objects.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | Kernel internal objects 5 | 6 | 7 | 8 | &kernel_pdfwriter; 9 | 10 | &kernel_xrefwriter; 11 | 12 | &kernel_filters; 13 | 14 | &kernel_observers; 15 | 16 | &kernel_modecontroller; 17 | 18 | &kernel_progressobserver; 19 | 20 | &kernel_stateupdater; 21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/design/kernel/images/boost_streams_pdfedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/boost_streams_pdfedit.png -------------------------------------------------------------------------------- /doc/design/kernel/images/cannotation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/cannotation.png -------------------------------------------------------------------------------- /doc/design/kernel/images/ccontentstream_operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/ccontentstream_operator.png -------------------------------------------------------------------------------- /doc/design/kernel/images/cobjectsexample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/cobjectsexample.png -------------------------------------------------------------------------------- /doc/design/kernel/images/cpdf_facade.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/cpdf_facade.png -------------------------------------------------------------------------------- /doc/design/kernel/images/cxref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/cxref.png -------------------------------------------------------------------------------- /doc/design/kernel/images/iproperty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/iproperty.png -------------------------------------------------------------------------------- /doc/design/kernel/images/modecontroller.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/modecontroller.png -------------------------------------------------------------------------------- /doc/design/kernel/images/pdfoperator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/pdfoperator.png -------------------------------------------------------------------------------- /doc/design/kernel/images/pdfoperatorexample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/pdfoperatorexample.png -------------------------------------------------------------------------------- /doc/design/kernel/images/pdfoperatoriterator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/pdfoperatoriterator.png -------------------------------------------------------------------------------- /doc/design/kernel/images/pdfoperators.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/pdfoperators.png -------------------------------------------------------------------------------- /doc/design/kernel/images/progressobserver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/progressobserver.png -------------------------------------------------------------------------------- /doc/design/kernel/images/stateupdater.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/stateupdater.png -------------------------------------------------------------------------------- /doc/design/kernel/images/xpdf_streams_simple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/xpdf_streams_simple.png -------------------------------------------------------------------------------- /doc/design/kernel/images/xref_layer_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images/xref_layer_diagram.png -------------------------------------------------------------------------------- /doc/design/kernel/images_source/boost_streams_pdfedit.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/boost_streams_pdfedit.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/cannotation.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/cannotation.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/ccontentstream_operator.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/ccontentstream_operator.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/cobjectsexample.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/cobjectsexample.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/cpdf_facade.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/cpdf_facade.xml -------------------------------------------------------------------------------- /doc/design/kernel/images_source/cxref.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/cxref.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/iproperty.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/iproperty.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/modecontroller.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/modecontroller.xml -------------------------------------------------------------------------------- /doc/design/kernel/images_source/pdfoperatorexample.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/pdfoperatorexample.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/pdfoperatoriterator.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/pdfoperatoriterator.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/pdfoperators.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/pdfoperators.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/progressobserver.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/progressobserver.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/stateupdater.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/stateupdater.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/xpdf_streams_simple.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/xpdf_streams_simple.dia -------------------------------------------------------------------------------- /doc/design/kernel/images_source/xref_layer_diagram.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/design/kernel/images_source/xref_layer_diagram.dia -------------------------------------------------------------------------------- /doc/design/kernel/interface_objects.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | Interface objects 5 | 6 | As descibed above, kernel comunicates with higher layers (see ) 7 | with objects called cobjects. Those 8 | cobjects can be high level and 9 | low level. This chapter and its sections 10 | describe these objects, their responsibilities and mutual cooperation. 11 | 12 | 13 | &kernel_cobjects; 14 | 15 | &kernel_cpdf; 16 | 17 | &kernel_cpage; 18 | 19 | &kernel_cannotation; 20 | 21 | &kernel_cxref; 22 | 23 | &kernel_contentstream; 24 | 25 | &kernel_pdfoperators; 26 | 27 | -------------------------------------------------------------------------------- /doc/doc_format.rules: -------------------------------------------------------------------------------- 1 | #Makefile.rules 2 | #Rules for generating documentation in various formats 3 | #and some common definitions 4 | 5 | .PHONY: clean all all_no_pdf 6 | 7 | #rule for procesing docbook documentation 8 | #prefer using xsltproc and docbook.xsl (nicer output and is also faster) 9 | # over docbook2html (which uses jade) 10 | # TODO give parameter for XLSPATH from configure (set in ../Makefile.flags) 11 | %.html: %.xml 12 | $(TOP_DIR)/tools/docbook2html_any $< $@ || true 13 | 14 | #rule for generating PDF files 15 | %.pdf: %.xml 16 | $(TOP_DIR)/tools/docbook2pdf $< $@ || true 17 | 18 | # rule for generating manpages. We have to be sure that perl is installed 19 | # Regenerate also when version or script for generating changes 20 | %.1: %.xml $(TOP_DIR)/tools/docbook2man.pl $(TOP_DIR)/user/version.xml 21 | [ -x /usr/bin/perl ] || exit 1 22 | $(TOP_DIR)/tools/docbook2man.pl $< >$@ 23 | 24 | #rule for generating HTML documentation to be placed in application help directory 25 | $(html_help_dir)/%.html: %.xml 26 | $(TOP_DIR)/tools/docbook2html $< $@ html || docbook2html -o $(html_help_dir) -u $< 2>&1 >/dev/null || true 27 | 28 | #rule for generating docbook XML from .leaf files (some tex-like Trolltech format) 29 | %.xml: %.leaf $(TOP_DIR)/tools/leaf2xml.pl 30 | $(TOP_DIR)/tools/leaf2xml.pl <$< >$@ 31 | -------------------------------------------------------------------------------- /doc/licence_header_c: -------------------------------------------------------------------------------- 1 | /* 2 | * PDFedit - free program for PDF document manipulation. 3 | * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, 4 | * Jozef Misutka, 5 | * Martin Petricek 6 | * Former team members: Miroslav Jahoda 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; version 2 of the License. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program (in doc/LICENSE.GPL); if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 | * MA 02111-1307 USA 21 | * 22 | * Project is hosted on http://sourceforge.net/projects/pdfedit 23 | */ 24 | -------------------------------------------------------------------------------- /doc/licence_header_shell: -------------------------------------------------------------------------------- 1 | # PDFedit - free program for PDF document manipulation. 2 | # Copyright (C) 2006-2009 PDFedit team: Michal Hocko, 3 | # Jozef Misutka, 4 | # Martin Petricek 5 | # Former team members: Miroslav Jahoda 6 | # 7 | # This program is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; version 2 of the License. 10 | # 11 | # This program is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with this program (in doc/LICENSE.GPL); if not, write to the 18 | # Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 19 | # MA 02111-1307 USA 20 | # 21 | # Project is hosted on http://sourceforge.net/projects/pdfedit 22 | -------------------------------------------------------------------------------- /doc/licence_header_shell.files: -------------------------------------------------------------------------------- 1 | ./getversion 2 | ./makedist 3 | ./src/gui/make-lang 4 | ./src/gui/trans-qs.pl 5 | ./src/kernel/pdfedit-core-dev-config.tmpl 6 | ./tools/bench.sh 7 | ./tools/check_files.sh 8 | ./tools/cygwinbuild 9 | ./tools/fake_install_tools.sh 10 | ./tools/generate_lang.sh 11 | ./tools/generate_online_help.sh 12 | ./tools/headergen 13 | ./tools/make_release 14 | ./tools/mass_patch.sh 15 | ./tools/release_check 16 | ./tools/rmdir.sh 17 | -------------------------------------------------------------------------------- /doc/pdfedit.css: -------------------------------------------------------------------------------- 1 | /* CSS Style for doxygen output */ 2 | /* Style for detailed member documentation */ 3 | .memtemplate { 4 | font-size: 80%; 5 | color: #606060; 6 | font-weight: normal; 7 | } 8 | .memnav { 9 | background-color: #e8eef2; 10 | border: 1px solid #84b0c7; 11 | text-align: center; 12 | margin: 2px; 13 | margin-right: 15px; 14 | padding: 2px; 15 | } 16 | .memitem { 17 | padding: 4px; 18 | background-color: #eef3f5; 19 | border-width: 1px; 20 | border-style: solid; 21 | border-color: #dedeee; 22 | -moz-border-radius: 8px 8px 8px 8px; 23 | } 24 | .memname { 25 | white-space: nowrap; 26 | font-weight: bold; 27 | } 28 | .memdoc{ 29 | padding-left: 10px; 30 | } 31 | .memproto { 32 | background-color: #d5e1e8; 33 | width: 100%; 34 | border-width: 1px; 35 | border-style: solid; 36 | border-color: #84b0c7; 37 | font-weight: bold; 38 | -moz-border-radius: 8px 8px 8px 8px; 39 | } 40 | .paramkey { 41 | text-align: right; 42 | } 43 | .paramtype { 44 | white-space: nowrap; 45 | } 46 | .paramname { 47 | color: #602020; 48 | font-style: italic; 49 | } 50 | /* End Styling for detailed member documentation */ -------------------------------------------------------------------------------- /doc/pdoc_footer.htm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /doc/pdoc_header.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | $title 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /doc/tools/docbook2html_any: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | #docbook to HTML convertor. Depends on docbook2html in same directory as this 5 | # 6 | #If docbook2html fails becase it cannot find its prerequisites (xsltproc, etd ...), 7 | #it tries using docbook2html from jade. 8 | #If it fails because if invalid input file (unclosed xml tags, etc ...) 9 | # ... it fails too 10 | 11 | # use docbook2html in tools 12 | cmd=`echo $0 | sed 's/_any$//'` 13 | 14 | input=$1 15 | output=$2 16 | 17 | # run docbook2html [in] [tmp] 18 | $cmd $input $output 19 | retx=$? 20 | if [ $retx -eq 0 ] 21 | then 22 | # success 23 | exit 0 24 | fi 25 | 26 | if [ $retx -eq 2 ] 27 | then 28 | # invalid input file 29 | exit 2 30 | fi 31 | 32 | #something other wrong -> try docbook2html 33 | docbook2html -u $input 2>&1 >/dev/null 34 | 35 | retx=$? 36 | exit $retx 37 | -------------------------------------------------------------------------------- /doc/tools/docbook2html_chunk: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | #docbook to HTML convertor. Depends on docbook2html in same directory as this 5 | #This convertor generate chunked output 6 | # 7 | #If docbook2html fails becase it cannot find its prerequisites (xsltproc, etd ...), 8 | #or because if invalid input file (unclosed xml tags, etc ...), it fails 9 | 10 | # usage: docbook2html_chunk [type] 11 | # Type can be xhtml or html. If not specified, default is xhtml 12 | 13 | # use docbook2html in tools 14 | cmd=`echo $0 | sed 's/_chunk$//'` 15 | 16 | input=$1 17 | type="$2" 18 | output=$3 19 | 20 | #default type 21 | if [ -z "$type" ] 22 | then 23 | type=xhtml 24 | fi 25 | 26 | # run docbook2html [in] [tmp] 27 | $cmd $input /dev/null $type chunk.xsl 28 | retx=$? 29 | if [ $retx -eq 0 ] 30 | then 31 | # success 32 | exit 0 33 | fi 34 | 35 | if [ $retx -eq 2 ] 36 | then 37 | # invalid input file 38 | exit 2 39 | fi 40 | 41 | #something other wrong -> try docbook2html 42 | #docbook2html cannot chunk 43 | 44 | exit 1 45 | -------------------------------------------------------------------------------- /doc/tools/docbook2pdf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #docbook to PDF convertor. Depends on docbook2html in same directory as this 4 | #needs Apache FOP to work in addition to xsltproc and FO stylesheets 5 | 6 | #Check for fop 7 | FOP=fop 8 | fop=`which fop 2>/dev/null` 9 | if [ -z "$fop" ] 10 | then 11 | echo "'fop' not found. Please install it to be able to generate PDF files" 12 | echo "You can get Apache FOP from http://xmlgraphics.apache.org/fop/" 13 | exit 1 14 | fi 15 | #fop found 16 | 17 | # use docbook2html with target type 'fo' to get .fo output 18 | cmd=`echo $0 | sed 's/pdf$/html/'` 19 | tmp=`mktemp` 20 | 21 | # run docbook2html [in] [tmp] fo 22 | $cmd $1 $tmp fo docbook.xsl "--param generate.index 0 --param toc.section.depth 0 --param toc.max.depth 0 --param generate.toc '' --param headers.on.blank.pages 0 --param footers.on.blank.pages 1" 23 | retx=$? 24 | # success? 25 | if [ $retx -eq 0 ] 26 | then 27 | # run fop [tmp] [out] 28 | $FOP $tmp $2 29 | retx=$? 30 | fi 31 | # delete temporary .fo file 32 | rm $tmp 33 | #return code from fop (or error from docbook2html) 34 | exit $retx -------------------------------------------------------------------------------- /doc/tools/docbook_xslt_paths: -------------------------------------------------------------------------------- 1 | /usr/local/share/xsl/docbook/html 2 | /usr/share/xsl/docbook/html 3 | /usr/share/sgml/docbook/xsl-stylesheets*/html 4 | /usr/local/share/sgml/docbook/xsl-stylesheets*/html 5 | /usr/share/xml/docbook/stylesheet/nwalsh/html 6 | /usr/share/docbook-xsl/html 7 | /usr/share/xml/docbook/stylesheet/nwalsh/html 8 | /usr/share/xml/docbook/stylesheet/nwalsh*/*/html 9 | /usr/share/xml/docbook/stylesheet/docbook-xsl/html 10 | /usr/share/xml/docbook/xsl-style-sheets-1.75-1/html 11 | -------------------------------------------------------------------------------- /doc/user/.gitignore: -------------------------------------------------------------------------------- 1 | qsa-util.xml 2 | qsa-inputdialog.xml 3 | keyboard.xml 4 | pdfedit.xml 5 | pdfedit.1 6 | user_doc.html 7 | user_doc.pdf 8 | appendix.html 9 | appendix.pdf 10 | appendix.xml 11 | version.xml 12 | -------------------------------------------------------------------------------- /doc/user/cmdline/localization.xml: -------------------------------------------------------------------------------- 1 | 2 | Localization 3 | 4 | PDF Editor is run in english language by default, but by setting environment variable LANG before launching 5 | the program, you can tell PDF Editor to look for specific language file. If the localization you requested is 6 | not available, english will be used instead. 7 | 8 | 9 | Aside default english, these localizations are available: 10 | 11 | 12 | cs - Czech 13 | de - German 14 | es - Spanish 15 | ru - Russian 16 | fr - French 17 | zh_TW - Chinese (traditional) 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/user/cmdline/main.xml: -------------------------------------------------------------------------------- 1 | 2 | Command line 3 | 4 | All commandline parameters are also described on editor manpage, 5 | which is installed with the program. 6 | To see the manpage, type command: man pdfedit. 7 | 8 | 9 | &cmdline_description; 10 | 11 | &cmdline_localization; 12 | 13 | 14 | -------------------------------------------------------------------------------- /doc/user/cmdline/pdfedit.head: -------------------------------------------------------------------------------- 1 | 2 | Command line 3 | 4 | 5 | -------------------------------------------------------------------------------- /doc/user/cmdline/pdfedit.tail: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /doc/user/cs/.gitignore: -------------------------------------------------------------------------------- 1 | keyboard.xml 2 | -------------------------------------------------------------------------------- /doc/user/cs/keyboard-src.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Klávesové zkratky 6 | 7 | 8 | 9 | Klávesové zkratky PDF Editoru 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /doc/user/doc.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | */ 4 | body{font-family:Verdana;font-size:10pt} 5 | .authorgroup{font-size:10pt} 6 | .authorgroup .contrib,.authorgroup .email,.authorgroup .surname,.authorgroup .firstname{font-size:10pt} 7 | h3.author{margin-bottom:2pt} 8 | .part .titlepage h1.title{page-break-before:always} 9 | 10 | 11 | h1.title{font-size:16pt} 12 | h2.title{font-size:14pt} 13 | h3.title{font-size:12pt} 14 | 15 | .funcsynopsis{font-size:11pt} 16 | h3.title .funcsynopsis{font-size:11pt} 17 | a .funcsynopsis{font-size:8pt} 18 | -------------------------------------------------------------------------------- /doc/user/examples/test_plugin.qs: -------------------------------------------------------------------------------- 1 | //Test plugin 2 | 3 | /** Function to install the menu/toolbar items that are used by the plugin */ 4 | function installPlugin() { 5 | createMenuItem('helpmenu','-','',''); 6 | createMenuItem('helpmenu','plugintest','Menu item from test plugin','testplugin()','Ctrl+Alt+X','help.png'); 7 | createMenuItem('MainToolbar','-','',''); 8 | createMenuItem('MainToolbar','plugintest2','Toolbar item from test plugin','testplugin()','','help.png'); 9 | } 10 | 11 | /** Function to invoke the pluigin functionality */ 12 | function testplugin() { 13 | message('This is a test plugin'); 14 | } 15 | 16 | //Install the plugin 17 | installPlugin(); 18 | -------------------------------------------------------------------------------- /doc/user/general.xml: -------------------------------------------------------------------------------- 1 | 2 | PDFEdit general overview 3 | 4 | 5 | This means that if you delete something from a document it can still 6 | be seen in the previous revision, and the file will not get smaller. 7 | 8 | 9 | 10 | Pdf Editor allows simple manipulation of objects within the PDF 11 | structure, using a graphical and command-line interface and a 12 | powerful scripting language. 13 | 14 | 15 | Changes to a document are added to it as a new revision so that 16 | old revisions can be viewed or saved as a new file 17 | . All PDF viewers 18 | have to display the content of the most recent revision. Though 19 | we don't know of any PDF viewer (except for PDFedit) which would 20 | enable also revision browsing. 21 | 22 | 23 | -------------------------------------------------------------------------------- /doc/user/glossary.xml: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/user/gui/command.xml: -------------------------------------------------------------------------------- 1 | 2 | Command console 3 | 4 | Command console is useful for typing in your own scripts and macros. 5 | In can be set in 3 different modes of behavior (see ). 6 | 7 | 8 | You can type your script code in the lower part of the window (the commandline or script editor, depending on settings) 9 | and observe output of your commands in upper part (console) 10 | 11 | 12 | -------------------------------------------------------------------------------- /doc/user/gui/images/command_options_cmdedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/command_options_cmdedit.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_commandline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_commandline.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_editor.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_execute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_execute.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_lookandfeel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_lookandfeel.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_objecttree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_objecttree.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_paths.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_paths.png -------------------------------------------------------------------------------- /doc/user/gui/images/options_toolbars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/options_toolbars.png -------------------------------------------------------------------------------- /doc/user/gui/images/pagespace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/pagespace.png -------------------------------------------------------------------------------- /doc/user/gui/images/pdfedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/pdfedit.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_all.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_catalog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_catalog.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_edit.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_edit_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_edit_add.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_edit_del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_edit_del.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_edit_ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_edit_ref.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_gfx_selection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_gfx_selection.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_impor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_impor.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_multiselection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_multiselection.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_op_desc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_op_desc.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_op_modes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_op_modes.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_opt_editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_opt_editor.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_opt_objtree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_opt_objtree.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_outlines.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_outlines.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_pages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_pages.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_rclick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_rclick.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_stream.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_stream.png -------------------------------------------------------------------------------- /doc/user/gui/images/propedit_text_selection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/propedit_text_selection.png -------------------------------------------------------------------------------- /doc/user/gui/images/theme1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/theme1.png -------------------------------------------------------------------------------- /doc/user/gui/images/theme2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/images/theme2.png -------------------------------------------------------------------------------- /doc/user/gui/main.xml: -------------------------------------------------------------------------------- 1 | 2 | Graphical user interface (GUI) 3 | 4 | Window of PDFEdit is split to 5 basic parts : Menu, Toolbars, Command part, 5 | Page space and Objects tree + property editor. 6 | 7 | 8 | 9 | 10 | 11 | 12 | Layout of PDFedit's GUI 13 | 14 | Layout of PDFedit's GUI 15 | 16 | 17 | 18 | &gui_command; 19 | &gui_pagespace; 20 | &gui_objtreepropedit; 21 | &gui_menuAndToolbarsFun; 22 | &gui_settings; 23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_addText.xml: -------------------------------------------------------------------------------- 1 | 2 | Adding text 3 | 4 | 5 | This mode enables adding text lines onto the page. First set some default properties on the toolbar like 6 | , 7 | and . Then by clicking mouse left button on page an edit box is shown 8 | where the added text is written. After pressing Enter the text will be displayed on the page. 9 | The viewed part of the page is updated after text addition. 10 | 11 | 12 | The text is added to the page also if the text edit line losts focus (this can be unpleasant for 13 | window managers that set focus to windows under the mouse cursor). 14 | To cancel text addition press Esc key. 15 | 16 | 17 | Note: When pages are rotated the text can appear unrotated. This is because the text uses own transformation 18 | matrix than the whole page. 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_drawLine.xml: -------------------------------------------------------------------------------- 1 | 2 | Drawing lines 3 | 4 | 5 | Drawing lines is easy with this mode. First set default properties in the toolbar: 6 | , 7 | and . Then by pressing the mouse left button and dragging a line 8 | is created. After releasing mouse button the line is drawn. 9 | The line drawn during dragging is only informative. 10 | The viewed part of the page is updated after each added line. 11 | 12 | 13 | To cancel line drawing press Esc key before releasing the mouse button. 14 | 15 | 16 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_drawRect.xml: -------------------------------------------------------------------------------- 1 | 2 | Drawing rectangles 3 | 4 | 5 | Drawing rectangles and rectangles with background is easy with this mode. 6 | First set default properties in the toolbar: 7 | . Then by pressing the mouse left button 8 | and dragging a new rectangle is crated. 9 | After releasing mouse button the rectangle is drawn. 10 | The rectangle drawn during dragging is only informative. 11 | The viewed part of the page is updated after each added line. 12 | 13 | 14 | To cancel rectangle drawing press Esc key before releasing the mouse button. 15 | 16 | 17 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_highlightingText.xml: -------------------------------------------------------------------------------- 1 | 2 | Highlighting text 3 | 4 | 5 | Highlighting of text is a very desired feature. This mode can highlight selected text. 6 | 7 | 8 | After activating this mode user can select text the same way as by 9 | . After ending the selection 10 | script function is called which draws filled rectangle under each text operator with 11 | default background colour (for more details see 12 | ). 13 | 14 | 15 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_selectAll.xml: -------------------------------------------------------------------------------- 1 | 2 | Selecting all objects 3 | 4 | 5 | This mode is usefull when selecting page objects (without annotations - see 6 | ) which are not 7 | text (see ) or 8 | graphical (see ) 9 | operator (line, rectangle, but not image). 10 | 11 | 12 | When this mode is activated,nonempty areas can be selected pressing the 13 | mouse left button, dragging the mouse and releasing left button. All objects within 14 | selected area will be selected. 15 | 16 | 17 | When clicked only once, the one top level object on the 18 | page is seleceted. If clicked again the second top most object is selected etc. 19 | User doesn't need to know the size of desired object. 20 | 21 | 22 | This mode is very usefull when because only few objects have the same size 23 | . 24 | 25 | 26 | To activate this selection mode just click on appropriate place in the toolbar 27 | ) or select it in menu (see 28 | ). 29 | 30 | 31 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_selectAnnotations.xml: -------------------------------------------------------------------------------- 1 | 2 | Selecting annotations 3 | 4 | 5 | This mode displayes and enables selecting of annotations on a page. 6 | When activated each annotation is displayed as a rectangle (shows 7 | activation rectangle for each of annotations). It's very useful 8 | because user can see all the annotations on a page and does not need 9 | to search for (annotations can be hidden). Only very few viewers support 10 | this feature. 11 | 12 | 13 | An annotations is selected when the mouse cursor is over. 14 | It is selected until the mouse cursor get over another annotation or 15 | till Esc key is not pressed. 16 | 17 | 18 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_selectGraphicalOp.xml: -------------------------------------------------------------------------------- 1 | 2 | Selecting graphical operators 3 | 4 | 5 | This mode is the same as except for 6 | it only selects graphical operators. 7 | 8 | 9 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_selectText.xml: -------------------------------------------------------------------------------- 1 | 2 | Selecting text 3 | 4 | 5 | This mode is useful when selecting text on page. It behaves like expected from 6 | text selecting. Word and line order is respected on pages with 7 | horizontal text lines (most of pdf files). 8 | 9 | 10 | Text selection is very simple using this mode. The selection starts when 11 | mouse left button is pressed on a text element. (If the mouse is over a text element 12 | the cursor changes to ibeam.) When dragging, text is 13 | selected line by line. The selection is limited in how the text elements are stored in 14 | the pdf document (some documents have text elements equal to letters, to words, 15 | to lines or arbitrary). 16 | 17 | 18 | Note: 19 | When a text on one line is written using different fonts it is very likely that it will 20 | be parsed into more lines. This is due to the fact that the base vertical positions are different 21 | and without wild guessing it is almost impossible to distinguish between text on one with different 22 | fonts and text on more lines with different fonts. 23 | 24 | 25 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/functions_strikeThrough.xml: -------------------------------------------------------------------------------- 1 | 2 | Strike through text 3 | 4 | 5 | You can easily strike through words, lines with this mode. 6 | 7 | 8 | Selecting of text is the same as by 9 | . After endind the selection 10 | scipt function is called which draws a line through selected text default 11 | colour, dash style and line width (for more details see 12 | ). 13 | 14 | 15 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/dialog_addFont.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/dialog_addFont.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/dialog_dashpattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/dialog_dashpattern.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/dialog_editPageMetrics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/dialog_editPageMetrics.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/dialog_extractedText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/dialog_extractedText.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/dialog_findText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/dialog_findText.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/insert_pages.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/insert_pages.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/menu_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/menu_edit.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/menu_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/menu_file.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/menu_help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/menu_help.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/menu_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/menu_page.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/menu_tools.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/menu_tools.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/menu_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/menu_view.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_draw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_draw.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_dynamic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_dynamic.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_main.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_operator.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_page.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_revision.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_revision.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_selectionmode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_selectionmode.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_text.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/images/toolbars_treeview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/gui/menuAndToolbarsFun/images/toolbars_treeview.png -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/main.xml: -------------------------------------------------------------------------------- 1 | 2 | Menu, toolbars and on-click functions 3 | 4 | This chapter describes only default functionality available from menu 5 | and toolbars because it is very customizable and can very differ from release to release. 6 | Removing and adding new functionality is very simple. 7 | 8 | 9 | &gui_menu; 10 | 11 | &gui_toolbars; 12 | 13 | &gui_onclickFunctions; 14 | 15 | 16 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | &gui_menu_file; 4 | &gui_menu_view; 5 | &gui_menu_tools; 6 | &gui_menu_page; 7 | &gui_menu_edit; 8 | &gui_menu_help; 9 | 10 | 11 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars.xml: -------------------------------------------------------------------------------- 1 | 2 | Toolbars 3 | 4 | Toolbars are shortcut for functions found either in menu, or by right clicking on specific objects. 5 | Menu items can be either in enabled or disabled state. Some operations have no effect when a document 6 | is not open so they are disabled. Also some operations are not avaliable when specific objects from specific 7 | windows are not selected. 8 | 9 | 10 | &gui_toolbars_main; 11 | &gui_toolbars_page; 12 | &gui_toolbars_selectionModes; 13 | &gui_toolbars_draw; 14 | &gui_toolbars_text; 15 | &gui_toolbars_operator; 16 | &gui_toolbars_dynamic; 17 | &gui_toolbars_treeview; 18 | &gui_toolbars_revision; 19 | 20 | 21 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_dynamic.xml: -------------------------------------------------------------------------------- 1 | 2 | Dynamic 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Dynamic 11 | 12 | Toolbar - Dynamic 13 | 14 | 15 | This toolbar contain dynamic items and its content is updated based on context, i.e. what are you doing now. 16 | It can contain field used to edit text in PDF operators or icons used to filter displayed operators in current stream. 17 | There are four modes available for filtering operators. First and default mode is to show all operators. 18 | The other three modes are to show only text, only font and only graphical operators. The filter settings are per stream, 19 | so you can set diffrnent filterig in different streams. 20 | 21 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_main.xml: -------------------------------------------------------------------------------- 1 | 2 | Main 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Main 11 | 12 | Toolbar - Main 13 | 14 | 15 | 16 | 17 | 18 | Open ... 19 | See . 20 | 21 | 22 | Save 23 | See . 24 | 25 | 26 | Options 27 | See . 28 | 29 | 30 | Close window 31 | See . 32 | 33 | 34 | Show/hide commandline 35 | See . 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_operator.xml: -------------------------------------------------------------------------------- 1 | 2 | Operator 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Operator 11 | 12 | Toolbar - Operator 13 | 14 | 15 | 16 | 17 | 18 | Set color 19 | See . 20 | 21 | 22 | Set font 23 | See . 24 | 25 | 26 | Set line width 27 | See . 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_revision.xml: -------------------------------------------------------------------------------- 1 | 2 | Revision 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Revision 11 | 12 | Toolbar - Revision 13 | 14 | 15 | 16 | When a document is changed it can be saved either as new copy, to old file or to new revision. The last option 17 | saves all changes made to the document. The history of changes is embedded in the document itself. We can choose 18 | which revision we want to have displayed. Only the last revision can be edited. Otherwise we have to save it before 19 | editing. 20 | 21 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_selectionModes.xml: -------------------------------------------------------------------------------- 1 | 2 | Selection modes 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Selection Mode 11 | 12 | Toolbar - Selection Mode 13 | 14 | 15 | 16 | 17 | 18 | Select all objects 19 | See . 20 | 21 | 22 | Select graphical operators 23 | See . 24 | 25 | 26 | Select text 27 | See . 28 | 29 | 30 | Select annotations 31 | See . 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_text.xml: -------------------------------------------------------------------------------- 1 | 2 | Text 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Text 11 | 12 | Toolbar - Text 13 | 14 | 15 | 16 | 17 | 18 | Font 19 | 20 | According to pdf specifications, pdf viewers must support several standard fonts. The selected font 21 | is used as the default in operations where font name is needed (e.g. inserting text lines, ...) 22 | 23 | 24 | 25 | 26 | Font size 27 | 28 | 29 | The selected font size 30 | is used as the default in operations where font size is needed (e.g. inserting text lines, ...) 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /doc/user/gui/menuAndToolbarsFun/toolbars_treeview.xml: -------------------------------------------------------------------------------- 1 | 2 | Treeview 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Toolbar - Treeview 11 | 12 | Toolbar - Treeview 13 | 14 | 15 | 16 | When changing pdf file using Object tree, Selection or Stream tab we can add and remove objects using either keyboard 17 | or these two buttons. 18 | 19 | -------------------------------------------------------------------------------- /doc/user/gui/settings.xml: -------------------------------------------------------------------------------- 1 | 2 | Settings 3 | 4 | 5 | Settings options in PDFEdit is very easy. Options can be set are in gui or directly in configuration 6 | file pdfeditrc in ~/.pdfedit and in PDFEdit home directory. 7 | If exist diferent setting for some option, is use setting in ~/.pdfedit/pdfeditrc. 8 | 9 | 10 | To execute options dialog in gui click to menu on Tools/Options. Or type to 11 | command console options(). Or click to options icon in toolbars. 12 | 13 | 14 | 15 | 16 | 17 | Execute options dialog from menu 18 | 19 | Execute options dialog from menu 20 | 21 | 22 | 23 | 24 | 25 | 26 | &gui_settings_editor; 27 | &gui_settings_paths; 28 | &gui_settings_objecttree; 29 | &gui_settings_commandline; 30 | &gui_settings_toolbars; 31 | &gui_settings_lookandfeel; 32 | 33 | 34 | -------------------------------------------------------------------------------- /doc/user/gui/settings_toolbars.xml: -------------------------------------------------------------------------------- 1 | 2 | Toolbars tab 3 | 4 | 5 | 6 | 7 | 8 | 9 | Toolbars tab 10 | 11 | 12 | 13 | 14 | Each checkbox on this tab represent one toolbar in the program. 15 | You can toggle visibility of each toolbar here, if the checkbox 16 | before toolbar name is checked, the toolbar will be visible. 17 | If unchecked, the toolbar will be hidden. 18 | 19 | 20 | -------------------------------------------------------------------------------- /doc/user/images/filedialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/filedialog.png -------------------------------------------------------------------------------- /doc/user/images/inputitem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/inputitem.png -------------------------------------------------------------------------------- /doc/user/images/inputtext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/inputtext.png -------------------------------------------------------------------------------- /doc/user/images/messageb1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/messageb1.png -------------------------------------------------------------------------------- /doc/user/images/pdfedit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/pdfedit.png -------------------------------------------------------------------------------- /doc/user/images/qchkbox-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qchkbox-w.png -------------------------------------------------------------------------------- /doc/user/images/qcombo1-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qcombo1-w.png -------------------------------------------------------------------------------- /doc/user/images/qgrpbox-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qgrpbox-w.png -------------------------------------------------------------------------------- /doc/user/images/qlined-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qlined-w.png -------------------------------------------------------------------------------- /doc/user/images/qradiobt-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qradiobt-w.png -------------------------------------------------------------------------------- /doc/user/images/qsdateed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qsdateed.png -------------------------------------------------------------------------------- /doc/user/images/qspinbox-w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qspinbox-w.png -------------------------------------------------------------------------------- /doc/user/images/qstimeed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/user/images/qstimeed.png -------------------------------------------------------------------------------- /doc/user/install/install.xml: -------------------------------------------------------------------------------- 1 | 2 | Installation 3 | 4 | 5 | 6 | &install_requiredlib; 7 | 8 | &install_compiling; 9 | 10 | &install_platforms; 11 | 12 | 13 | -------------------------------------------------------------------------------- /doc/user/install/platforms.xml: -------------------------------------------------------------------------------- 1 |
2 | Tested platforms 3 | PDF Editor has been compiled and tested on following platforms: 4 | 5 | 6 | Gentoo Linux x86 - ok 7 | Gentoo Linux x86_64 - ok 8 | FreeBSD 6.0 x86 - ok 9 | Ubuntu Linux 5.10 x86 - ok 10 | Debian unstable (sarge) x86 - ok 11 | Debian unstable x86_64 - ok 12 | 13 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /doc/user/keyboard-src.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Keyboard shortcuts 6 | 7 | 8 | 9 | PDF Editor keyboard shortcuts 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /doc/user/scripting.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | ]> 22 | 23 | 24 | 25 | PDFedit &version; scripting documentation 26 | &scripts; 27 | 28 | -------------------------------------------------------------------------------- /doc/user/scripts/.gitignore: -------------------------------------------------------------------------------- 1 | qsa-util.xml 2 | qsa-inputdialog.xml 3 | scripting.xml 4 | -------------------------------------------------------------------------------- /doc/user/scripts/scripting_nodoc.xml: -------------------------------------------------------------------------------- 1 | 2 | Scripting documentation for PDF Editor 3 | &scripts_intro; 4 | &scripts_startup; 5 |
6 | Scripting API documentation 7 | 8 | Scripting API documentation is included in Appendix 9 | 10 |
11 |
12 | -------------------------------------------------------------------------------- /doc/versionfilter.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cvs status $1 | sed -n 's/^[ \]*Working revision:[ \t]*\([0-9][0-9\.]*\).*/\1/p' -------------------------------------------------------------------------------- /doc/zadani.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/doc/zadani.pdf -------------------------------------------------------------------------------- /maintains: -------------------------------------------------------------------------------- 1 | jozo 2 | ==== 3 | utils/algorithms, types, iterator, listitem 4 | tests/* except michal's 5 | kernel/* except michal's 6 | os/win*, os/compiler(WIN stuff) 7 | projects/* 8 | gui/ few script functions where content stream is handled directly 9 | 10 | 11 | martin 12 | ====== 13 | src/gui/* (with Miro) 14 | src/qsa/* 15 | configure & make files (with Miso) 16 | helper scripts: tools/headergen, tools/make_release, doc/tools/* 17 | 18 | 19 | miro 20 | ==== 21 | 22 | 23 | miso 24 | ==== 25 | xpdf - (changes must be approved by jozo and vice versa) 26 | kernel/cannotation*, cpdf*, cxref*, modecontroller*, pdfwriter*, xrefwriter*, streamwriter*, exceptions.h (with Jozo) 27 | os/compiler*(all but WIN stuff), posix* 28 | tests/testcpdf*, testutils*, testcpage* (with Jozo) 29 | utils/confparser*,delinearizator*, debug*, objectstorage*, observer*, confparser*, rulesmanager* 30 | configure & make files (with Martin) 31 | -------------------------------------------------------------------------------- /projects/.gitignore: -------------------------------------------------------------------------------- 1 | ipch 2 | output/ 3 | *.user 4 | *GeneratedFiles* 5 | *.sdf 6 | *.opensdf 7 | *.suo 8 | bin/ 9 | obj/ 10 | -------------------------------------------------------------------------------- /projects/gui/uninstall/unins000.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/gui/uninstall/unins000.dat -------------------------------------------------------------------------------- /projects/gui/uninstall/unins000.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/gui/uninstall/unins000.exe -------------------------------------------------------------------------------- /projects/libs/D050000L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/D050000L.PFB -------------------------------------------------------------------------------- /projects/libs/N019003L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N019003L.PFB -------------------------------------------------------------------------------- /projects/libs/N019004L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N019004L.PFB -------------------------------------------------------------------------------- /projects/libs/N019023L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N019023L.PFB -------------------------------------------------------------------------------- /projects/libs/N019024L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N019024L.PFB -------------------------------------------------------------------------------- /projects/libs/N021003L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N021003L.PFB -------------------------------------------------------------------------------- /projects/libs/N021004L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N021004L.PFB -------------------------------------------------------------------------------- /projects/libs/N021023L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N021023L.PFB -------------------------------------------------------------------------------- /projects/libs/N021024L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N021024L.PFB -------------------------------------------------------------------------------- /projects/libs/N022003L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N022003L.PFB -------------------------------------------------------------------------------- /projects/libs/N022004L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N022004L.PFB -------------------------------------------------------------------------------- /projects/libs/N022023L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N022023L.PFB -------------------------------------------------------------------------------- /projects/libs/N022024L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/N022024L.PFB -------------------------------------------------------------------------------- /projects/libs/S050000L.PFB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/S050000L.PFB -------------------------------------------------------------------------------- /projects/libs/freetype.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/freetype.lib -------------------------------------------------------------------------------- /projects/libs/freetype6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/freetype6.dll -------------------------------------------------------------------------------- /projects/libs/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/zlib1.dll -------------------------------------------------------------------------------- /projects/libs/zlib1.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/projects/libs/zlib1.lib -------------------------------------------------------------------------------- /projects/other/test_boost/test_boost.cpp: -------------------------------------------------------------------------------- 1 | // How to add boost 2 | //- download boost - http://www.boost.org/ or http://www.boostpro.com/download 3 | //- add include/libs to VS Tools->Options->Directories 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | int main(int , char* []) 10 | { 11 | boost::shared_ptr i; 12 | return 0; 13 | } 14 | 15 | -------------------------------------------------------------------------------- /projects/other/test_boost/test_boost.vcproj: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 12 | 13 | 14 | 15 | 16 | 21 | 25 | 29 | 33 | 34 | 35 | 36 | 37 | 38 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /projects/other/test_cppunit/test_cppunit.cpp: -------------------------------------------------------------------------------- 1 | 2 | int main(int , char* []) 3 | { 4 | return 0; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /projects/other/test_cppunit/test_cppunit.vcproj: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 22 | 26 | 30 | 34 | 35 | 36 | 37 | 38 | 39 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /projects/other/test_freetype2/test_freetype2.cpp: -------------------------------------------------------------------------------- 1 | // How to add freetype 2 | //- download 3 | //- compile DLL, in debug mode it should produce 4 | 5 | #include 6 | 7 | int main(int , char* []) 8 | { 9 | return 0; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /projects/other/test_zlib/test_zlib.cpp: -------------------------------------------------------------------------------- 1 | // How to add zlib 2 | //- download zlib - http://www.zlib.net/ 3 | //- compile DLL, in debug mode it should produce zlib1d.dll & zlib1d.lib 4 | //- put the zlib1d.lib to projects\output\libs\ 5 | //- add zlib1d.lib to Linker->Input in project Properties 6 | //- put the dll to known directory (e.g. from which it is executed) 7 | 8 | #include 9 | 10 | int main(int , char* []) 11 | { 12 | z_stream z; 13 | return 0; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /projects/other/test_zlib/test_zlib.vcproj: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 22 | 26 | 30 | 34 | 35 | 36 | 37 | 38 | 39 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /projects/packaging/gui.installer/config: -------------------------------------------------------------------------------- 1 | x=100 2 | y=100 3 | height=800 4 | vdpi=72 5 | hdpi=72 6 | file=test.pdf -------------------------------------------------------------------------------- /projects/tools/pdftops.vcproj: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 14 | 17 | 18 | 19 | 20 | 21 | 26 | 27 | 32 | 33 | 34 | 35 | 36 | 37 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /projects/vsprops/arch_armv4i.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vsprops/arch_mipsii.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vsprops/arch_x86.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 17 | 18 | -------------------------------------------------------------------------------- /projects/vsprops/base.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 10 | 17 | 22 | 27 | 28 | -------------------------------------------------------------------------------- /projects/vsprops/debug.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | %(DisableSpecificWarnings) 6 | true 7 | $(OutDir)/bsc/ 8 | _DEBUG;DEBUG;%(PreprocessorDefinitions) 9 | MultiThreadedDebug 10 | Disabled 11 | 12 | 13 | %(AdditionalDependencies) 14 | %(IgnoreSpecificDefaultLibraries) 15 | 16 | 17 | $(OutDir)/bsc/$(ProjectName).bsc 18 | 19 | 20 | LIBCMT.lib;libcpmt.lib;msvcprt.lib;libcpmtd.lib 21 | true 22 | 23 | 24 | -------------------------------------------------------------------------------- /projects/vsprops/debug.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 21 | 28 | 32 | 36 | 37 | -------------------------------------------------------------------------------- /projects/vsprops/exe.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(SolutionDir)\output\$(ProjectName).exe 6 | true 7 | $(OutDir)/pdb/$(ProjectName)-$(_Z_PLTFRM_)$(_Z_ARCH_).pdb 8 | true 9 | $(OutDir)/maps/$(ProjectName)-$(_Z_PLTFRM_)$(_Z_ARCH_).map 10 | 11 | 12 | -------------------------------------------------------------------------------- /projects/vsprops/exe.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /projects/vsprops/gui.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | g:\libs\zlib-1.2.5\;C:\Program Files %28x86%29\boost\boost_1_47\;$(IncludePath) 5 | 6 | 7 | C:\Program Files %28x86%29\boost\boost_1_47\lib;$(LibraryPath) 8 | 9 | 10 | 11 | %(DisableSpecificWarnings) 12 | $(SolutionDir)\..\src\gui;%(AdditionalIncludeDirectories) 13 | 14 | 15 | zlib1.lib 16 | 17 | 18 | 19 | 20 | pdfedit-kernel.lib;xpdf.lib;zlib1.lib;freetype.lib;%(AdditionalDependencies) 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /projects/vsprops/kernel.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 4100;4512;4706;4127;4505;4250;%(DisableSpecificWarnings) 6 | 7 | 8 | zlib1.lib 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /projects/vsprops/kernel.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 8 | 16 | 20 | 29 | 30 | -------------------------------------------------------------------------------- /projects/vsprops/lib.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(OutDir)/$(ProjectName).lib 6 | 7 | 8 | -------------------------------------------------------------------------------- /projects/vsprops/lib.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /projects/vsprops/release.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(OutDir)/bsc/ 6 | Full 7 | Speed 8 | NDEBUG;%(PreprocessorDefinitions) 9 | true 10 | true 11 | true 12 | 13 | 14 | true 15 | 16 | 17 | UseLinkTimeCodeGeneration 18 | LIBCMT.lib 19 | true 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vsprops/release.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 19 | 27 | 31 | 35 | 36 | -------------------------------------------------------------------------------- /projects/vsprops/tests.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /projects/vsprops/tests.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /projects/vsprops/tools.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | xpdf.lib;%(AdditionalDependencies) 6 | $(OutDir)\$(ProjectName).exe 7 | true 8 | $(SolutionDir)\output\libs;$(SolutionDir)\libs;$(SolutionDir)\output 9 | $(OutDir)/pdb/$(ProjectName)-$(_Z_PLTFRM_)$(_Z_ARCH_).pdb 10 | true 11 | $(OutDir)/maps/$(ProjectName)-$(_Z_PLTFRM_)$(_Z_ARCH_).map 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /projects/vsprops/tools.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 19 | 20 | -------------------------------------------------------------------------------- /projects/vsprops/win32.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | <_Z_ARCH_>win32 5 | <_Z_PLTFRM_ /> 6 | 7 | 8 | $(SolutionDir)\output\tmp\$(Configuration)\$(ProjectName)\ 9 | 10 | 11 | 12 | WIN32;_WINDOWS;_WIN32_WINNT=0x0502;WINVER=0x0502;%(PreprocessorDefinitions) 13 | 14 | 15 | 16 | 17 | $(_Z_ARCH_) 18 | true 19 | 20 | 21 | $(_Z_PLTFRM_) 22 | true 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vsprops/win32.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 11 | 15 | 20 | 25 | 26 | -------------------------------------------------------------------------------- /projects/vsprops/wince5.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 21 | 25 | 30 | 31 | -------------------------------------------------------------------------------- /projects/vsprops/wince6.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 12 | 21 | 25 | 30 | 31 | -------------------------------------------------------------------------------- /projects/vsprops/xpdf.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Disabled 6 | $(SolutionDir)\..\src;$(SolutionDir)\..\src\xpdf;$(SolutionDir)\..\src\xpdf\xpdf;$(SolutionDir)\..\src\xpdf\splash;$(SolutionDir)\..\src\xpdf\goo;$(SolutionDir)\..\src\xpdf\fofi 7 | 4121;4244;4706;4100;4290;4310;%(DisableSpecificWarnings) 8 | HAVE_SPLASH;HAVE_FREETYPE_FREETYPE_H;HAVE_FREETYPE_H;%(PreprocessorDefinitions) 9 | 10 | 11 | freetype.lib;%(AdditionalDependencies) 12 | $(SolutionDir)\libs 13 | 14 | 15 | XPDF needs generated header file for each operating system. Generate it. Remove after first build (xpdf Property Page-&gt;Configuration Properties-&gt;Build Events-&gt;Pre-Build Event) 16 | copy $(SolutionDir)\..\src\xpdf\xpdf-aconf.h.in $(SolutionDir)\..\src\xpdf\xpdf-aconf.h 17 | 18 | 19 | -------------------------------------------------------------------------------- /projects/vsprops/xpdf.vsprops: -------------------------------------------------------------------------------- 1 | 2 | 7 | 13 | 18 | 23 | 24 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | config_xpdf_variables 2 | Makefile.flags 3 | -------------------------------------------------------------------------------- /src/gui/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile.qt 2 | pdfeditor 3 | -------------------------------------------------------------------------------- /src/gui/Makefile.gui: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | # Workaround for proper Makefile.flags inclusion into the qmake generated 3 | # makefile. 4 | # 5 | # I am able to use configuration specific variables from ../../Makefile.flags 6 | # in pdfedit.pro, however I am not able to force qmake to insert include 7 | # ../../Makefile.flags at the beginning of the generated makefile, so my 8 | # variables are not visible. 9 | # This file shouldn't be named Makefile, because qmake run by accident will 10 | # overwrite it. 11 | # If you want to compile *always* use this makefile rather than generated 12 | # one. 13 | ################################################################################ 14 | 15 | include ../../Makefile.flags 16 | 17 | QTMAKEFILE = Makefile.qt 18 | 19 | include $(QTMAKEFILE) 20 | -------------------------------------------------------------------------------- /src/gui/MyWidget.h: -------------------------------------------------------------------------------- 1 | #ifndef __WIDGET__ 2 | #define __WIDGET__ 3 | 4 | #include 5 | 6 | class MyWidget : public QWidget 7 | { 8 | Q_OBJECT 9 | public: 10 | MyWidget( QWidget * parent =0); 11 | protected: 12 | void keyPressEvent(QKeyEvent *event); 13 | }; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /src/gui/OpenPdf.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 634 10 | 472 11 | 12 | 13 | 14 | true 15 | 16 | 17 | MainWindow 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/gui/aboutDialog.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | AboutDialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | About Pdf Editor 15 | 16 | 17 | 18 | 19 | 20 | Pdf Editor v1.13 21 | 22 | Originally created by Eva Peskova 23 | 24 | peva@matfyz.cz 25 | 26 | supervised and maintained by jm from the PDFedit team 27 | 28 | http://www.pdfedit.cz 29 | 30 | 31 | Qt::AlignCenter 32 | 33 | 34 | Qt::TextBrowserInteraction 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/gui/annotationFrame.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | AnnotationFrame 4 | 5 | 6 | 7 | 0 8 | 0 9 | 338 10 | 73 11 | 12 | 13 | 14 | Annotations tools 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/gui/colorPicker.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | colorPick 4 | 5 | 6 | 7 | 0 8 | 0 9 | 94 10 | 56 11 | 12 | 13 | 14 | 15 | 0 16 | 0 17 | 18 | 19 | 20 | Form 21 | 22 | 23 | true 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 32 34 | 32 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/gui/debug.h: -------------------------------------------------------------------------------- 1 | #ifndef __DEBUG__ 2 | #define __DEBUG__ 3 | 4 | #include 5 | #include 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /src/gui/debugFrame.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | DebugFrame 4 | 5 | 6 | 7 | 0 8 | 0 9 | 440 10 | 213 11 | 12 | 13 | 14 | Debugging tools 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/gui/imageFrame.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | ImageFrame 4 | 5 | 6 | 7 | 0 8 | 0 9 | 545 10 | 171 11 | 12 | 13 | 14 | Image tools 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/gui/images/DeleteText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/DeleteText.png -------------------------------------------------------------------------------- /src/gui/images/TextConvert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/TextConvert.png -------------------------------------------------------------------------------- /src/gui/images/about.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/about.png -------------------------------------------------------------------------------- /src/gui/images/addComment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/addComment.png -------------------------------------------------------------------------------- /src/gui/images/addImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/addImage.png -------------------------------------------------------------------------------- /src/gui/images/addLink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/addLink.png -------------------------------------------------------------------------------- /src/gui/images/addpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/addpage.png -------------------------------------------------------------------------------- /src/gui/images/analyze.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/analyze.png -------------------------------------------------------------------------------- /src/gui/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/background.png -------------------------------------------------------------------------------- /src/gui/images/bubble.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/bubble.png -------------------------------------------------------------------------------- /src/gui/images/change.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/change.png -------------------------------------------------------------------------------- /src/gui/images/changed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/changed.png -------------------------------------------------------------------------------- /src/gui/images/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/comment.png -------------------------------------------------------------------------------- /src/gui/images/commit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/commit.png -------------------------------------------------------------------------------- /src/gui/images/content.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/content.png -------------------------------------------------------------------------------- /src/gui/images/debug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/debug.png -------------------------------------------------------------------------------- /src/gui/images/decrypt_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/decrypt_icon.png -------------------------------------------------------------------------------- /src/gui/images/deletepage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/deletepage.png -------------------------------------------------------------------------------- /src/gui/images/derotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/derotate.png -------------------------------------------------------------------------------- /src/gui/images/disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/disabled.png -------------------------------------------------------------------------------- /src/gui/images/downpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/downpage.png -------------------------------------------------------------------------------- /src/gui/images/enabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/enabled.png -------------------------------------------------------------------------------- /src/gui/images/eraseText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/eraseText.png -------------------------------------------------------------------------------- /src/gui/images/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/exit.png -------------------------------------------------------------------------------- /src/gui/images/export.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/export.png -------------------------------------------------------------------------------- /src/gui/images/firstPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/firstPage.png -------------------------------------------------------------------------------- /src/gui/images/font.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/font.png -------------------------------------------------------------------------------- /src/gui/images/hand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/hand.png -------------------------------------------------------------------------------- /src/gui/images/highlight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/highlight.png -------------------------------------------------------------------------------- /src/gui/images/images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/images.png -------------------------------------------------------------------------------- /src/gui/images/insertTextMarker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/insertTextMarker.png -------------------------------------------------------------------------------- /src/gui/images/insert_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/insert_text.png -------------------------------------------------------------------------------- /src/gui/images/lastPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/lastPage.png -------------------------------------------------------------------------------- /src/gui/images/mainIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/mainIcon.png -------------------------------------------------------------------------------- /src/gui/images/nextpage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/nextpage.png -------------------------------------------------------------------------------- /src/gui/images/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/open.png -------------------------------------------------------------------------------- /src/gui/images/operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/operator.png -------------------------------------------------------------------------------- /src/gui/images/page_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/page_down.png -------------------------------------------------------------------------------- /src/gui/images/position.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/position.png -------------------------------------------------------------------------------- /src/gui/images/previousPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/previousPage.png -------------------------------------------------------------------------------- /src/gui/images/redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/redo.png -------------------------------------------------------------------------------- /src/gui/images/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/refresh.png -------------------------------------------------------------------------------- /src/gui/images/rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/rotate.png -------------------------------------------------------------------------------- /src/gui/images/save-encoded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/save-encoded.png -------------------------------------------------------------------------------- /src/gui/images/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/save.png -------------------------------------------------------------------------------- /src/gui/images/saveas.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/saveas.png -------------------------------------------------------------------------------- /src/gui/images/savecopy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/savecopy.png -------------------------------------------------------------------------------- /src/gui/images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/search.png -------------------------------------------------------------------------------- /src/gui/images/setText.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/setText.png -------------------------------------------------------------------------------- /src/gui/images/settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/settings.png -------------------------------------------------------------------------------- /src/gui/images/snapshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/snapshot.png -------------------------------------------------------------------------------- /src/gui/images/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/stop.png -------------------------------------------------------------------------------- /src/gui/images/undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/undo.png -------------------------------------------------------------------------------- /src/gui/images/unknown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/unknown.png -------------------------------------------------------------------------------- /src/gui/images/uppage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/uppage.png -------------------------------------------------------------------------------- /src/gui/images/view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/view.png -------------------------------------------------------------------------------- /src/gui/images/zoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/gui/images/zoom.png -------------------------------------------------------------------------------- /src/gui/main.cpp: -------------------------------------------------------------------------------- 1 | /************************* 2 | * 3 | * this source code and its parts are distribuded under GPLv2 licence 4 | * 5 | * */ 6 | #include "pdfgui.h" 7 | #include 8 | 9 | int main(int argc, char *argv[]) 10 | { 11 | QApplication a(argc, argv); 12 | pdfGui w; 13 | w.show(); 14 | bool ret = a.exec(); 15 | return ret; 16 | } 17 | -------------------------------------------------------------------------------- /src/gui/rotatepagerange.cpp: -------------------------------------------------------------------------------- 1 | #include "rotatepagerange.h" 2 | 3 | rotatePageRange::rotatePageRange(QWidget *parent) 4 | : QWidget(parent) 5 | { 6 | ui.setupUi(this); 7 | } 8 | 9 | rotatePageRange::~rotatePageRange() 10 | { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/gui/rotatepagerange.h: -------------------------------------------------------------------------------- 1 | /** \file rotatepagerange.h handles mass rotation */ 2 | #ifndef ROTATEPAGERANGE_H 3 | #define ROTATEPAGERANGE_H 4 | 5 | #include 6 | #include "ui_rotatepagerange.h" 7 | 8 | /** \brief class for rotating page range */ 9 | class rotatePageRange : public QWidget 10 | { 11 | Q_OBJECT 12 | 13 | public: 14 | /// constructor 15 | rotatePageRange(QWidget *parent = 0); 16 | /// destructor 17 | ~rotatePageRange(); 18 | 19 | private: 20 | /// graphic interface 21 | Ui::rotatePageRangeClass ui; 22 | }; 23 | 24 | #endif // ROTATEPAGERANGE_H 25 | -------------------------------------------------------------------------------- /src/gui/rotatepagerange.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | rotatePageRangeClass 4 | 5 | 6 | 7 | 0 8 | 0 9 | 141 10 | 97 11 | 12 | 13 | 14 | rotatePageRange 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | Done 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/gui/textFrame.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | TextFrame 4 | 5 | 6 | 7 | 0 8 | 0 9 | 542 10 | 247 11 | 12 | 13 | 14 | Text tools 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/gui/textWindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 150 20 | 160 21 | 104 22 | 71 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/kernel/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile-tests 3 | kernel.pro 4 | main.cc 5 | kernel 6 | kernel.gch 7 | kernel_tests 8 | 1.txt 9 | 1.xml 10 | deps 11 | pdfedit-core-dev-config 12 | -------------------------------------------------------------------------------- /src/kernel/cpagecontents.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/kernel/cpagecontents.cc -------------------------------------------------------------------------------- /src/kernel/pdfoperators.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/kernel/pdfoperators.cc -------------------------------------------------------------------------------- /src/kernel/static.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * PDFedit - free program for PDF document manipulation. 3 | * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, 4 | * Jozef Misutka, 5 | * Martin Petricek 6 | * Former team members: Miroslav Jahoda 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; version 2 of the License. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program (in doc/LICENSE.GPL); if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 | * MA 02111-1307 USA 21 | * 22 | * Project is hosted on http://sourceforge.net/projects/pdfedit 23 | */ 24 | // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80 25 | #include "kernel/static.h" 26 | 27 | -------------------------------------------------------------------------------- /src/os/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Make file for os header files installation - there are no modules to compile 3 | # so we need only {un}install-dev targets here 4 | # We could place it also to another Makefile but it is much cleaner to have 5 | # Makefiles with only one directory responsibility 6 | ################################################################################ 7 | # includes basic building rules 8 | # REL_ADDR has to be defined, because Makefile.rules refers 9 | # to the Makefile.flags 10 | REL_ADDR = ../../ 11 | include $(REL_ADDR)/Makefile.rules 12 | 13 | HEADERS = \ 14 | compiler.h \ 15 | posix.h \ 16 | win.h 17 | 18 | 19 | install-dev: 20 | $(MKDIR) $(INSTALL_ROOT)$(INCLUDE_PATH)/os 21 | $(COPY_FILE) $(HEADERS) $(INSTALL_ROOT)$(INCLUDE_PATH)/os 22 | 23 | uninstall-dev: 24 | cd $(INSTALL_ROOT)$(INCLUDE_PATH)/os && $(DEL_FILE) $(HEADERS) 25 | $(DEL_DIR) $(INSTALL_ROOT)$(INCLUDE_PATH)/os 26 | -------------------------------------------------------------------------------- /src/tests/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for all tests for PDFedit 2 | # 3 | # includes basic building rules 4 | # REL_ADDR has to be defined, because Makefile.rules refers 5 | # to the Makefile.flags 6 | REL_ADDR=../../ 7 | include $(REL_ADDR)Makefile.rules 8 | 9 | .PHONY: distclean clean kernel_tests 10 | 11 | # TODO add install and uninstall targets depending on configuration 12 | 13 | # Compiles only configured tests 14 | all: $(TEST_TARGETS) 15 | 16 | # Defined by KERNEL_TESTS_TARGET variable 17 | kernel_tests: 18 | cd $(KERNELTESTSROOT) && $(MAKE) kernel_tests 19 | 20 | clean: 21 | [ -n $(KERNEL_TESTS_TARGET) ] && cd $(KERNELTESTSROOT) && $(MAKE) clean 22 | 23 | distclean: 24 | [ -n $(KERNEL_TESTS_TARGET) ] && cd $(KERNELTESTSROOT) && $(MAKE) distclean 25 | -------------------------------------------------------------------------------- /src/tests/bench/compare_results.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | usage() 4 | { 5 | echo "`basename $0` result_name field_name file1 [files]" 6 | echo 7 | echo "where" 8 | echo -e "\tresult_name - name of results to filter out (grep like)" 9 | echo -e "\tfield_name - either number of the field or max, min, avg, count" 10 | echo 11 | echo "At least one file is expected. If the file is - then reads from standard input" 12 | } 13 | 14 | from_files() 15 | { 16 | for i in $@ 17 | do 18 | echo $i 19 | grep "$WHICH" $i | cut -d: -f$WHAT | cut -d= -f2 20 | echo --- 21 | done 22 | } 23 | 24 | from_input() 25 | { 26 | grep "$WHICH" | cut -d: -f$WHAT | cut -d= -f2 27 | } 28 | 29 | if [ $# -lt 3 ] 30 | then 31 | usage 32 | fi 33 | 34 | WHICH=$1 35 | WHAT=$2 36 | shift 2 37 | 38 | case $WHAT in 39 | 2|max ) WHAT=2 ;; 40 | 3|min ) WHAT=3 ;; 41 | 4|avg ) WHAT=4 ;; 42 | 5|count) WHAT=5 ;; 43 | * ) echo "Bad value for field" >&2; exit 1 ;; 44 | esac 45 | 46 | if [ ! -f "$1" ] 47 | then 48 | from_input 49 | else 50 | from_files $@ 51 | fi 52 | -------------------------------------------------------------------------------- /src/tests/kernel/.gitignore: -------------------------------------------------------------------------------- 1 | kernel_tests 2 | deps 3 | -------------------------------------------------------------------------------- /src/tests/kernel/encrypt_passwd.rc: -------------------------------------------------------------------------------- 1 | ../../../testset/encrypt_nopasswd.pdf: 2 | ../../../testset/encrypt_passwd_a.pdf:a 3 | -------------------------------------------------------------------------------- /src/tests/kernel/testcobject.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PDFedit - free program for PDF document manipulation. 3 | * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, 4 | * Jozef Misutka, 5 | * Martin Petricek 6 | * Former team members: Miroslav Jahoda 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; version 2 of the License. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program (in doc/LICENSE.GPL); if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 | * MA 02111-1307 USA 21 | * 22 | * Project is hosted on http://sourceforge.net/projects/pdfedit 23 | */ 24 | // vim:tabstop=4:shiftwidth=4:noexpandtab:textwidth=80 25 | 26 | /** 27 | * Cobject test function. 28 | */ 29 | //void cobject_tests(int argc, char ** argv, const char*); 30 | 31 | -------------------------------------------------------------------------------- /src/tools/.gitignore: -------------------------------------------------------------------------------- 1 | add_image 2 | add_text 3 | delinearizator 4 | deps 5 | displaycs 6 | flattener 7 | pagemetrics 8 | parse_object 9 | pdf_images 10 | pdf_object_comparer 11 | pdf_object_printer 12 | pdf_page_from_ref 13 | pdf_page_to_ref 14 | pdf_to_bmp 15 | pdf_to_text 16 | replace_text 17 | -------------------------------------------------------------------------------- /src/utils/.gitignore: -------------------------------------------------------------------------------- 1 | aconf.h 2 | deps 3 | 4 | -------------------------------------------------------------------------------- /src/utils/algorithms.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PDFedit - free program for PDF document manipulation. 3 | * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, 4 | * Jozef Misutka, 5 | * Martin Petricek 6 | * Former team members: Miroslav Jahoda 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; version 2 of the License. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program (in doc/LICENSE.GPL); if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 | * MA 02111-1307 USA 21 | * 22 | * Project is hosted on http://sourceforge.net/projects/pdfedit 23 | */ 24 | #ifndef _ALGORTIHMS_H_ 25 | #define _ALGORTIHMS_H__ 26 | 27 | //============================================ 28 | // Basic includes 29 | //============================================ 30 | 31 | #include 32 | 33 | 34 | #endif //_ALGORTIHMS_H__ 35 | 36 | -------------------------------------------------------------------------------- /src/utils/algorithms/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Make file for os header files installation - there are no modules to compile 3 | # so we need only {un}install-dev targets here 4 | # We could place it also to another Makefile but it is much cleaner to have 5 | # Makefiles with only one directory responsibility 6 | ################################################################################ 7 | # includes basic building rules 8 | # REL_ADDR has to be defined, because Makefile.rules refers 9 | # to the Makefile.flags 10 | REL_ADDR = ../../../ 11 | include $(REL_ADDR)/Makefile.rules 12 | 13 | HEADERS = \ 14 | basic_algos.h 15 | 16 | 17 | install-dev: 18 | $(MKDIR) $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/algorithms 19 | $(COPY_FILE) $(HEADERS) $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/algorithms 20 | 21 | uninstall-dev: 22 | cd $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/algorithms && $(DEL_FILE) $(HEADERS) 23 | $(DEL_DIR) $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/algorithms 24 | -------------------------------------------------------------------------------- /src/utils/types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * PDFedit - free program for PDF document manipulation. 3 | * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, 4 | * Jozef Misutka, 5 | * Martin Petricek 6 | * Former team members: Miroslav Jahoda 7 | * 8 | * This program is free software; you can redistribute it and/or modify 9 | * it under the terms of the GNU General Public License as published by 10 | * the Free Software Foundation; version 2 of the License. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program (in doc/LICENSE.GPL); if not, write to the 19 | * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20 | * MA 02111-1307 USA 21 | * 22 | * Project is hosted on http://sourceforge.net/projects/pdfedit 23 | */ 24 | #ifndef _TYPES_H_ 25 | #define _TYPES_H_ 26 | 27 | //============================================ 28 | // Basic includes 29 | //============================================ 30 | 31 | #include 32 | #include 33 | 34 | 35 | #endif // _TYPES_H_ 36 | 37 | -------------------------------------------------------------------------------- /src/utils/types/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Make file for os header files installation - there are no modules to compile 3 | # so we need only {un}install-dev targets here 4 | # We could place it also to another Makefile but it is much cleaner to have 5 | # Makefiles with only one directory responsibility 6 | ################################################################################ 7 | # includes basic building rules 8 | # REL_ADDR has to be defined, because Makefile.rules refers 9 | # to the Makefile.flags 10 | REL_ADDR = ../../../ 11 | include $(REL_ADDR)/Makefile.rules 12 | 13 | HEADERS = \ 14 | basic_types.h \ 15 | coordinates.h 16 | 17 | 18 | install-dev: 19 | $(MKDIR) $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/types 20 | $(COPY_FILE) $(HEADERS) $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/types 21 | 22 | uninstall-dev: 23 | cd $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/types/ && $(DEL_FILE) $(HEADERS) 24 | $(DEL_DIR) $(INSTALL_ROOT)$(INCLUDE_PATH)/utils/types 25 | -------------------------------------------------------------------------------- /src/xpdf/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | aconf.h 3 | config.log 4 | config.status 5 | config_xpdf_variables 6 | xpdf-aconf.h 7 | -------------------------------------------------------------------------------- /src/xpdf/ANNOUNCE: -------------------------------------------------------------------------------- 1 | Subject: ANNOUNCE: Xpdf 3.02 - a PDF viewer for X 2 | 3 | 4 | Glyph & Cog, LLC is pleased to announce a new version of Xpdf, the 5 | open source Portable Document Format (PDF) viewer for X. The Xpdf 6 | project also includes a PDF text extractor, PDF-to-PostScript 7 | converter, and various other utilities. 8 | 9 | Xpdf runs under the X Window System on Unix, VMS, and OS/2. The non-X 10 | components (pdftops, pdftotext, etc.) also run on Win32 systems and 11 | should run on pretty much any system with a decent C++ compiler. 12 | 13 | Major changes: 14 | * Anti-aliased vector graphics, including stroke adjustment. 15 | * Support for PDF 1.6 and PDF 1.7, including AES decryption and 16 | OpenType fonts. 17 | * User-configurable key/mouse bindings. 18 | * Improved full-screen mode, with the ability to toggle on the fly. 19 | 20 | See the `CHANGES' file for a complete list of changes. 21 | 22 | Source (C++ and C) is available, and it should be fairly easy to 23 | compile for UNIX, VMS, OS/2, and Win32. 24 | 25 | More information, source code, and precompiled binaries are on the 26 | xpdf web page and ftp site: 27 | 28 | http://www.foolabs.com/xpdf/ 29 | ftp://ftp.foolabs.com/pub/xpdf/ 30 | 31 | For information on commercial licensing and consulting, please see the 32 | Glyph & Cog web site: 33 | 34 | http://www.glyphandcog.com/ 35 | -------------------------------------------------------------------------------- /src/xpdf/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/xpdf/README -------------------------------------------------------------------------------- /src/xpdf/fofi/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | deps 3 | -------------------------------------------------------------------------------- /src/xpdf/fofi/FoFiEncodings.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // FoFiEncodings.h 4 | // 5 | // Copyright 1999-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef FOFIENCODINGS_H 10 | #define FOFIENCODINGS_H 11 | 12 | #include 13 | 14 | #ifdef USE_GCC_PRAGMAS 15 | #pragma interface 16 | #endif 17 | 18 | #include "goo/gtypes.h" 19 | 20 | //------------------------------------------------------------------------ 21 | // Type 1 and 1C font data 22 | //------------------------------------------------------------------------ 23 | 24 | extern char *fofiType1StandardEncoding[256]; 25 | extern char *fofiType1ExpertEncoding[256]; 26 | 27 | //------------------------------------------------------------------------ 28 | // Type 1C font data 29 | //------------------------------------------------------------------------ 30 | 31 | extern char *fofiType1CStdStrings[391]; 32 | extern Gushort fofiType1CISOAdobeCharset[229]; 33 | extern Gushort fofiType1CExpertCharset[166]; 34 | extern Gushort fofiType1CExpertSubsetCharset[87]; 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /src/xpdf/fofi/vms_make.com: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/xpdf/fofi/vms_make.com -------------------------------------------------------------------------------- /src/xpdf/goo/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | deps_c 3 | deps_cxx 4 | -------------------------------------------------------------------------------- /src/xpdf/goo/GMutex.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // GMutex.h 4 | // 5 | // Portable mutex macros. 6 | // 7 | // Copyright 2002-2003 Glyph & Cog, LLC 8 | // 9 | //======================================================================== 10 | 11 | #ifndef GMUTEX_H 12 | #define GMUTEX_H 13 | 14 | // Usage: 15 | // 16 | // GMutex m; 17 | // gInitMutex(&m); 18 | // ... 19 | // gLockMutex(&m); 20 | // ... critical section ... 21 | // gUnlockMutex(&m); 22 | // ... 23 | // gDestroyMutex(&m); 24 | 25 | #ifdef WIN32 26 | 27 | #include 28 | 29 | typedef CRITICAL_SECTION GMutex; 30 | 31 | #define gInitMutex(m) InitializeCriticalSection(m) 32 | #define gDestroyMutex(m) DeleteCriticalSection(m) 33 | #define gLockMutex(m) EnterCriticalSection(m) 34 | #define gUnlockMutex(m) LeaveCriticalSection(m) 35 | 36 | #else // assume pthreads 37 | 38 | #include 39 | 40 | typedef pthread_mutex_t GMutex; 41 | 42 | #define gInitMutex(m) pthread_mutex_init(m, NULL) 43 | #define gDestroyMutex(m) pthread_mutex_destroy(m) 44 | #define gLockMutex(m) pthread_mutex_lock(m) 45 | #define gUnlockMutex(m) pthread_mutex_unlock(m) 46 | 47 | #endif 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /src/xpdf/goo/gmempp.cc: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // gmempp.cc 4 | // 5 | // Use gmalloc/gfree for C++ new/delete operators. 6 | // 7 | // Copyright 1996-2003 Glyph & Cog, LLC 8 | // 9 | //======================================================================== 10 | 11 | #include 12 | #include "goo/gmem.h" 13 | 14 | #ifdef DEBUG_MEM 15 | 16 | void *operator new(size_t size) { 17 | return gmalloc((int)size); 18 | } 19 | 20 | void *operator new[](size_t size) { 21 | return gmalloc((int)size); 22 | } 23 | 24 | void operator delete(void *p) { 25 | gfree(p); 26 | } 27 | 28 | void operator delete[](void *p) { 29 | gfree(p); 30 | } 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /src/xpdf/goo/gtypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * gtypes.h 3 | * 4 | * Some useful simple types. 5 | * 6 | * Copyright 1996-2003 Glyph & Cog, LLC 7 | */ 8 | 9 | #ifndef GTYPES_H 10 | #define GTYPES_H 11 | 12 | /* 13 | * These have stupid names to avoid conflicts with some (but not all) 14 | * C++ compilers which define them. 15 | */ 16 | typedef int GBool; 17 | #define gTrue 1 18 | #define gFalse 0 19 | 20 | /* 21 | * These have stupid names to avoid conflicts with , 22 | * which on various systems defines some random subset of these. 23 | */ 24 | typedef unsigned char Guchar; 25 | typedef unsigned short Gushort; 26 | typedef unsigned int Guint; 27 | typedef unsigned long Gulong; 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /src/xpdf/goo/vms_unix_times.c: -------------------------------------------------------------------------------- 1 | /* 2 | * UNIX-style Time Functions 3 | * 4 | */ 5 | #include 6 | #include 7 | #include 8 | #include "goo/vms_unix_time.h" 9 | 10 | /* 11 | * gettimeofday(2) - Returns the current time 12 | * 13 | * NOTE: The timezone portion is useless on VMS. 14 | * Even on UNIX, it is only provided for backwards 15 | * compatibilty and is not guaranteed to be correct. 16 | */ 17 | 18 | #if (__VMS_VER < 70000000) 19 | int gettimeofday(tv, tz) 20 | struct timeval *tv; 21 | struct timezone *tz; 22 | { 23 | timeb_t tmp_time; 24 | 25 | ftime(&tmp_time); 26 | 27 | if (tv != NULL) 28 | { 29 | tv->tv_sec = tmp_time.time; 30 | tv->tv_usec = tmp_time.millitm * 1000; 31 | } 32 | 33 | if (tz != NULL) 34 | { 35 | tz->tz_minuteswest = tmp_time.timezone; 36 | tz->tz_dsttime = tmp_time.dstflag; 37 | } 38 | 39 | return (0); 40 | 41 | } /*** End gettimeofday() ***/ 42 | #endif 43 | -------------------------------------------------------------------------------- /src/xpdf/goo/vms_unlink.c: -------------------------------------------------------------------------------- 1 | /* 2 | * vms_unlink.c 3 | * 4 | * A UNIX-style unlink() function for VMS. 5 | * 6 | * Thanks to Patrick Moreau (pmoreau@cena.dgac.fr). 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | int unlink(char *filename) { 14 | static struct dsc$descriptor_s file_desc; 15 | 16 | file_desc.dsc$w_length = strlen(filename); 17 | file_desc.dsc$b_dtype = DSC$K_DTYPE_T; 18 | file_desc.dsc$b_class = DSC$K_CLASS_S; 19 | file_desc.dsc$a_pointer= filename; 20 | 21 | return (lib$delete_file(&file_desc)); 22 | } 23 | -------------------------------------------------------------------------------- /src/xpdf/splash/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | deps 3 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashErrorCodes.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashErrorCodes.h 4 | // 5 | //======================================================================== 6 | 7 | #ifndef SPLASHERRORCODES_H 8 | #define SPLASHERRORCODES_H 9 | 10 | #include 11 | 12 | //------------------------------------------------------------------------ 13 | 14 | #define splashOk 0 // no error 15 | 16 | #define splashErrNoCurPt 1 // no current point 17 | 18 | #define splashErrEmptyPath 2 // zero points in path 19 | 20 | #define splashErrBogusPath 3 // only one point in subpath 21 | 22 | #define splashErrNoSave 4 // state stack is empty 23 | 24 | #define splashErrOpenFile 5 // couldn't open file 25 | 26 | #define splashErrNoGlyph 6 // couldn't get the requested glyph 27 | 28 | #define splashErrModeMismatch 7 // invalid combination of color modes 29 | 30 | #define splashErrSingularMatrix 8 // matrix is singular 31 | 32 | #define splashErrBadArg 9 // bad argument 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashFontFile.cc: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashFontFile.cc 4 | // 5 | //======================================================================== 6 | 7 | #include 8 | 9 | #ifdef USE_GCC_PRAGMAS 10 | #pragma implementation 11 | #endif 12 | 13 | #include 14 | #ifndef WIN32 15 | # include 16 | #endif 17 | #include "goo/GString.h" 18 | #include "splash/SplashFontFile.h" 19 | #include "splash/SplashFontFileID.h" 20 | 21 | #ifdef VMS 22 | #if (__VMS_VER < 70000000) 23 | extern "C" int unlink(char *filename); 24 | #endif 25 | #endif 26 | 27 | //------------------------------------------------------------------------ 28 | // SplashFontFile 29 | //------------------------------------------------------------------------ 30 | 31 | SplashFontFile::SplashFontFile(SplashFontFileID *idA, char *fileNameA, 32 | GBool deleteFileA) { 33 | id = idA; 34 | fileName = new GString(fileNameA); 35 | deleteFile = deleteFileA; 36 | refCnt = 0; 37 | } 38 | 39 | SplashFontFile::~SplashFontFile() { 40 | if (deleteFile) { 41 | unlink(fileName->getCString()); 42 | } 43 | delete fileName; 44 | delete id; 45 | } 46 | 47 | void SplashFontFile::incRefCnt() { 48 | ++refCnt; 49 | } 50 | 51 | void SplashFontFile::decRefCnt() { 52 | if (!--refCnt) { 53 | delete this; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashFontFileID.cc: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashFontFileID.cc 4 | // 5 | //======================================================================== 6 | 7 | #include 8 | 9 | #ifdef USE_GCC_PRAGMAS 10 | #pragma implementation 11 | #endif 12 | 13 | #include "splash/SplashFontFileID.h" 14 | 15 | //------------------------------------------------------------------------ 16 | // SplashFontFileID 17 | //------------------------------------------------------------------------ 18 | 19 | SplashFontFileID::SplashFontFileID() { 20 | } 21 | 22 | SplashFontFileID::~SplashFontFileID() { 23 | } 24 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashFontFileID.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashFontFileID.h 4 | // 5 | //======================================================================== 6 | 7 | #ifndef SPLASHFONTFILEID_H 8 | #define SPLASHFONTFILEID_H 9 | 10 | #include 11 | 12 | #ifdef USE_GCC_PRAGMAS 13 | #pragma interface 14 | #endif 15 | 16 | #include "goo/gtypes.h" 17 | 18 | //------------------------------------------------------------------------ 19 | // SplashFontFileID 20 | //------------------------------------------------------------------------ 21 | 22 | class SplashFontFileID { 23 | public: 24 | 25 | SplashFontFileID(); 26 | virtual ~SplashFontFileID(); 27 | virtual GBool matches(const SplashFontFileID *id)const = 0; 28 | }; 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashGlyphBitmap.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashGlyphBitmap.h 4 | // 5 | //======================================================================== 6 | 7 | #ifndef SPLASHGLYPHBITMAP_H 8 | #define SPLASHGLYPHBITMAP_H 9 | 10 | #include 11 | 12 | #include "goo/gtypes.h" 13 | 14 | //------------------------------------------------------------------------ 15 | // SplashGlyphBitmap 16 | //------------------------------------------------------------------------ 17 | 18 | struct SplashGlyphBitmap { 19 | int x, y, w, h; // offset and size of glyph 20 | GBool aa; // anti-aliased: true means 8-bit alpha 21 | // bitmap; false means 1-bit 22 | Guchar *data; // bitmap data 23 | GBool freeData; // true if data memory should be freed 24 | }; 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashPattern.cc: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashPattern.cc 4 | // 5 | //======================================================================== 6 | 7 | #include 8 | 9 | #ifdef USE_GCC_PRAGMAS 10 | #pragma implementation 11 | #endif 12 | 13 | #include "splash/SplashMath.h" 14 | #include "splash/SplashScreen.h" 15 | #include "splash/SplashPattern.h" 16 | 17 | //------------------------------------------------------------------------ 18 | // SplashPattern 19 | //------------------------------------------------------------------------ 20 | 21 | SplashPattern::SplashPattern() { 22 | } 23 | 24 | SplashPattern::~SplashPattern() { 25 | } 26 | 27 | //------------------------------------------------------------------------ 28 | // SplashSolidColor 29 | //------------------------------------------------------------------------ 30 | 31 | SplashSolidColor::SplashSolidColor(SplashColorPtr colorA) { 32 | splashColorCopy(color, colorA); 33 | } 34 | 35 | SplashSolidColor::~SplashSolidColor() { 36 | } 37 | 38 | void SplashSolidColor::getColor(int x, int y, SplashColorPtr c) { 39 | splashColorCopy(c, color); 40 | } 41 | -------------------------------------------------------------------------------- /src/xpdf/splash/SplashT1FontEngine.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // SplashT1FontEngine.h 4 | // 5 | //======================================================================== 6 | 7 | #ifndef SPLASHT1FONTENGINE_H 8 | #define SPLASHT1FONTENGINE_H 9 | 10 | #include 11 | 12 | #if HAVE_T1LIB_H 13 | 14 | #ifdef USE_GCC_PRAGMAS 15 | #pragma interface 16 | #endif 17 | 18 | #include "goo/gtypes.h" 19 | 20 | class SplashFontFile; 21 | class SplashFontFileID; 22 | 23 | //------------------------------------------------------------------------ 24 | // SplashT1FontEngine 25 | //------------------------------------------------------------------------ 26 | 27 | class SplashT1FontEngine { 28 | public: 29 | 30 | static SplashT1FontEngine *init(GBool aaA); 31 | 32 | ~SplashT1FontEngine(); 33 | 34 | // Load fonts. 35 | SplashFontFile *loadType1Font(SplashFontFileID *idA, char *fileName, 36 | GBool deleteFile, char **enc); 37 | SplashFontFile *loadType1CFont(SplashFontFileID *idA, char *fileName, 38 | GBool deleteFile, char **enc); 39 | 40 | private: 41 | 42 | SplashT1FontEngine(GBool aaA); 43 | 44 | static int t1libInitCount; 45 | GBool aa; 46 | 47 | friend class SplashT1FontFile; 48 | friend class SplashT1Font; 49 | }; 50 | 51 | #endif // HAVE_T1LIB_H 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /src/xpdf/splash/vms_make.com: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/src/xpdf/splash/vms_make.com -------------------------------------------------------------------------------- /src/xpdf/xpdf-aconf2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * aconf2.h 3 | * 4 | * This gets included by xpdf-xpdf-aconf.h, and contains miscellaneous global 5 | * settings not directly controlled by autoconf. This is a separate 6 | * file because otherwise the configure script will munge any 7 | * #define/#undef constructs. 8 | * 9 | * Copyright 2002-2003 Glyph & Cog, LLC 10 | */ 11 | 12 | #ifndef ACONF2_H 13 | #define ACONF2_H 14 | 15 | #include "os/compiler.h" 16 | 17 | /* 18 | * Make sure WIN32 is defined if appropriate. 19 | */ 20 | #if defined(_WIN32) && !defined(WIN32) 21 | # define WIN32 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | pdffonts 3 | pdfimages 4 | pdfinfo 5 | pdftops 6 | pdftoppm 7 | xpdf 8 | pdftotext 9 | deps 10 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/BuiltinFont.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // BuiltinFont.h 4 | // 5 | // Copyright 2001-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef BUILTINFONT_H 10 | #define BUILTINFONT_H 11 | 12 | #include 13 | 14 | #ifdef USE_GCC_PRAGMAS 15 | #pragma interface 16 | #endif 17 | 18 | #include "goo/gtypes.h" 19 | 20 | struct BuiltinFont; 21 | class BuiltinFontWidths; 22 | 23 | //------------------------------------------------------------------------ 24 | 25 | struct BuiltinFont { 26 | char *name; 27 | char **defaultBaseEnc; 28 | short ascent; 29 | short descent; 30 | short bbox[4]; 31 | BuiltinFontWidths *widths; 32 | }; 33 | 34 | //------------------------------------------------------------------------ 35 | 36 | struct BuiltinFontWidth { 37 | char *name; 38 | Gushort width; 39 | BuiltinFontWidth *next; 40 | }; 41 | 42 | class BuiltinFontWidths { 43 | public: 44 | 45 | BuiltinFontWidths(BuiltinFontWidth *widths, int sizeA); 46 | ~BuiltinFontWidths(); 47 | GBool getWidth(char *name, Gushort *width); 48 | 49 | private: 50 | 51 | int hash(char *name); 52 | 53 | BuiltinFontWidth **tab; 54 | int size; 55 | }; 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/BuiltinFontTables.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // BuiltinFontTables.h 4 | // 5 | // Copyright 2001-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef BUILTINFONTTABLES_H 10 | #define BUILTINFONTTABLES_H 11 | 12 | #include "xpdf/BuiltinFont.h" 13 | 14 | #define nBuiltinFonts 14 15 | #define nBuiltinFontSubsts 12 16 | 17 | extern BuiltinFont builtinFonts[nBuiltinFonts]; 18 | extern BuiltinFont *builtinFontSubst[nBuiltinFontSubsts]; 19 | 20 | extern void initBuiltinFontTables(); 21 | extern void freeBuiltinFontTables(); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/CharTypes.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // CharTypes.h 4 | // 5 | // Copyright 2001-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef CHARTYPES_H 10 | #define CHARTYPES_H 11 | 12 | // Unicode character. 13 | typedef unsigned int Unicode; 14 | 15 | // Character ID for CID character collections. 16 | typedef unsigned int CID; 17 | 18 | // This is large enough to hold any of the following: 19 | // - 8-bit char code 20 | // - 16-bit CID 21 | // - Unicode 22 | typedef unsigned int CharCode; 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/Error.cc: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // Error.cc 4 | // 5 | // Copyright 1996-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #include 10 | 11 | #ifdef USE_GCC_PRAGMAS 12 | #pragma implementation 13 | #endif 14 | 15 | #include 16 | #include 17 | #include 18 | #include "xpdf/GlobalParams.h" 19 | #include "xpdf/Error.h" 20 | 21 | void CDECL error(int pos, const char *msg, ...) { 22 | va_list args; 23 | 24 | // NB: this can be called before the globalParams object is created 25 | if (globalParams && globalParams->getErrQuiet()) { 26 | return; 27 | } 28 | if (pos >= 0) { 29 | fprintf(stderr, "Error (%d): ", pos); 30 | } else { 31 | fprintf(stderr, "Error: "); 32 | } 33 | va_start(args, msg); 34 | vfprintf(stderr, msg, args); 35 | va_end(args); 36 | fprintf(stderr, "\n"); 37 | fflush(stderr); 38 | } 39 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/Error.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // Error.h 4 | // 5 | // Copyright 1996-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef ERROR_H 10 | #define ERROR_H 11 | 12 | #include 13 | 14 | #ifdef USE_GCC_PRAGMAS 15 | #pragma interface 16 | #endif 17 | 18 | #include 19 | #include "xpdf/config.h" 20 | 21 | extern void CDECL error(int pos, const char *msg, ...); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/ErrorCodes.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // ErrorCodes.h 4 | // 5 | // Copyright 2002-2003 Glyph & Cog, LLC 6 | // 7 | // Changes: 8 | // Michal Hocko - errBadHeader added 9 | // 10 | //======================================================================== 11 | 12 | #ifndef ERRORCODES_H 13 | #define ERRORCODES_H 14 | 15 | #define errNone 0 // no error 16 | 17 | #define errOpenFile 1 // couldn't open the PDF file 18 | 19 | #define errBadCatalog 2 // couldn't read the page catalog 20 | 21 | #define errDamaged 3 // PDF file was damaged and couldn't be 22 | // repaired 23 | 24 | #define errEncrypted 4 // file was encrypted and password was 25 | // incorrect or not supplied 26 | 27 | #define errHighlightFile 5 // nonexistent or invalid highlight file 28 | 29 | #define errBadPrinter 6 // invalid printer 30 | 31 | #define errPrinting 7 // error during printing 32 | 33 | #define errPermission 8 // PDF file doesn't allow that operation 34 | 35 | #define errBadPageNum 9 // invalid page number 36 | 37 | #define errFileIO 10 // file I/O error 38 | 39 | #define errBadHeader 11 // Document doesn't have a valid header 40 | #endif 41 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/FontEncodingTables.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // FontEncodingTables.h 4 | // 5 | // Copyright 2001-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef FONTENCODINGTABLES_H 10 | #define FONTENCODINGTABLES_H 11 | 12 | extern char *macRomanEncoding[]; 13 | extern char *macExpertEncoding[]; 14 | extern char *winAnsiEncoding[]; 15 | extern char *standardEncoding[]; 16 | extern char *expertEncoding[]; 17 | extern char *symbolEncoding[]; 18 | extern char *zapfDingbatsEncoding[]; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/NameToCharCode.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // NameToCharCode.h 4 | // 5 | // Copyright 2001-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef NAMETOCHARCODE_H 10 | #define NAMETOCHARCODE_H 11 | 12 | #include 13 | 14 | #ifdef USE_GCC_PRAGMAS 15 | #pragma interface 16 | #endif 17 | 18 | #include "xpdf/CharTypes.h" 19 | 20 | struct NameToCharCodeEntry; 21 | 22 | //------------------------------------------------------------------------ 23 | 24 | class NameToCharCode { 25 | public: 26 | 27 | NameToCharCode(); 28 | ~NameToCharCode(); 29 | 30 | void add(const char *name, CharCode c); 31 | CharCode lookup(const char *name); 32 | 33 | private: 34 | 35 | int hash(const char *name); 36 | 37 | NameToCharCodeEntry *tab; 38 | int size; 39 | int len; 40 | }; 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/PDFDocEncoding.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // PDFDocEncoding.h 4 | // 5 | // Copyright 2002-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef PDFDOCENCODING_H 10 | #define PDFDOCENCODING_H 11 | 12 | #include "xpdf/CharTypes.h" 13 | 14 | extern Unicode pdfDocEncoding[256]; 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/PSTokenizer.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // PSTokenizer.h 4 | // 5 | // Copyright 2002-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef PSTOKENIZER_H 10 | #define PSTOKENIZER_H 11 | 12 | #include 13 | 14 | #ifdef USE_GCC_PRAGMAS 15 | #pragma interface 16 | #endif 17 | 18 | #include "goo/gtypes.h" 19 | 20 | //------------------------------------------------------------------------ 21 | 22 | class PSTokenizer { 23 | public: 24 | 25 | PSTokenizer(int (*getCharFuncA)(void *), void *dataA); 26 | ~PSTokenizer(); 27 | 28 | // Get the next PostScript token. Returns false at end-of-stream. 29 | GBool getToken(char *buf, int size, int *length); 30 | 31 | private: 32 | 33 | int lookChar(); 34 | int getChar(); 35 | 36 | int (*getCharFunc)(void *); 37 | void *data; 38 | int charBuf; 39 | }; 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/UnicodeTypeTable.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // UnicodeTypeTable.h 4 | // 5 | // Copyright 2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef UNICODETYPETABLE_H 10 | #define UNICODETYPETABLE_H 11 | 12 | #include "goo/gtypes.h" 13 | 14 | extern GBool unicodeTypeL(Unicode c); 15 | 16 | extern GBool unicodeTypeR(Unicode c); 17 | 18 | extern Unicode unicodeToUpper(Unicode c); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/XPDFTree.h: -------------------------------------------------------------------------------- 1 | //======================================================================== 2 | // 3 | // XPDFTree.h 4 | // 5 | // Copyright 2002-2003 Glyph & Cog, LLC 6 | // 7 | //======================================================================== 8 | 9 | #ifndef XPDFTREE_H 10 | #define XPDFTREE_H 11 | 12 | #include 13 | 14 | extern "C" { 15 | 16 | externalref WidgetClass xpdfTreeWidgetClass; 17 | 18 | typedef struct _XPDFTreeClassRec *XPDFTreeWidgetClass; 19 | typedef struct _XPDFTreeRec *XPDFTreeWidget; 20 | 21 | #ifndef XPDFIsTree 22 | #define XPDFIsTree(w) XtIsSubclass(w, xpdfTreeWidgetClass) 23 | #endif 24 | 25 | #define XPDFNentryParent "entryParent" 26 | #define XPDFNentryExpanded "entryExpanded" 27 | #define XPDFNentryPosition "entryPosition" 28 | #define XPDFNselectionCallback "selectionCallback" 29 | 30 | #define XPDFCentryParent "EntryParent" 31 | #define XPDFCentryExpanded "EntryExpanded" 32 | #define XPDFCentryPosition "EntryPosition" 33 | 34 | typedef struct { 35 | int reason; 36 | XEvent *event; 37 | Widget selectedItem; 38 | } XPDFTreeSelectCallbackStruct; 39 | 40 | extern Widget XPDFCreateTree(Widget parent, char *name, 41 | ArgList argList, Cardinal argCount); 42 | 43 | } // extern "C" 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/about.xbm: -------------------------------------------------------------------------------- 1 | #define about_width 10 2 | #define about_height 15 3 | static unsigned char about_bits[] = { 4 | 0x78, 0x00, 0xfc, 0x00, 0xce, 0x01, 0x86, 0x01, 0x80, 0x01, 0x80, 0x01, 5 | 0xc0, 0x01, 0xe0, 0x00, 0x70, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 6 | 0x00, 0x00, 0x30, 0x00, 0x30, 0x00}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/backArrow.xbm: -------------------------------------------------------------------------------- 1 | #define backArrow_width 16 2 | #define backArrow_height 15 3 | static unsigned char backArrow_bits[] = { 4 | 0x80, 0x00, 0xc0, 0x00, 0xe0, 0x00, 0xf0, 0x00, 0xf8, 0x00, 0xfc, 0xcc, 5 | 0xfe, 0xcc, 0xff, 0xcc, 0xfe, 0xcc, 0xfc, 0xcc, 0xf8, 0xcc, 0xf0, 0x00, 6 | 0xe0, 0x00, 0xc0, 0x00, 0x80, 0x00}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/backArrowDis.xbm: -------------------------------------------------------------------------------- 1 | #define backArrowDis_width 16 2 | #define backArrowDis_height 15 3 | static unsigned char backArrowDis_bits[] = { 4 | 0x80, 0x00, 0x40, 0x00, 0xa0, 0x00, 0x50, 0x00, 0xa8, 0x00, 0x54, 0x44, 5 | 0xaa, 0x88, 0x55, 0x44, 0xaa, 0x88, 0x54, 0x44, 0xa8, 0x88, 0x50, 0x00, 6 | 0xa0, 0x00, 0x40, 0x00, 0x80, 0x00}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/dblLeftArrow.xbm: -------------------------------------------------------------------------------- 1 | #define dblLeftArrow_width 16 2 | #define dblLeftArrow_height 15 3 | static unsigned char dblLeftArrow_bits[] = { 4 | 0x80, 0x80, 0xc0, 0xc0, 0xe0, 0xe0, 0xf0, 0xf0, 0xf8, 0xf8, 0xfc, 0xfc, 5 | 0xfe, 0xfe, 0xff, 0xff, 0xfe, 0xfe, 0xfc, 0xfc, 0xf8, 0xf8, 0xf0, 0xf0, 6 | 0xe0, 0xe0, 0xc0, 0xc0, 0x80, 0x80}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/dblLeftArrowDis.xbm: -------------------------------------------------------------------------------- 1 | #define dblLeftArrowDis_width 16 2 | #define dblLeftArrowDis_height 15 3 | static unsigned char dblLeftArrowDis_bits[] = { 4 | 0x80, 0x80, 0x40, 0x40, 0xa0, 0xa0, 0x50, 0x50, 0xa8, 0xa8, 0x54, 0x54, 5 | 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x54, 0x54, 0xa8, 0xa8, 0x50, 0x50, 6 | 0xa0, 0xa0, 0x40, 0x40, 0x80, 0x80}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/dblRightArrow.xbm: -------------------------------------------------------------------------------- 1 | #define dblRightArrow_width 16 2 | #define dblRightArrow_height 15 3 | static unsigned char dblRightArrow_bits[] = { 4 | 0x01, 0x01, 0x03, 0x03, 0x07, 0x07, 0x0f, 0x0f, 0x1f, 0x1f, 0x3f, 0x3f, 5 | 0x7f, 0x7f, 0xff, 0xff, 0x7f, 0x7f, 0x3f, 0x3f, 0x1f, 0x1f, 0x0f, 0x0f, 6 | 0x07, 0x07, 0x03, 0x03, 0x01, 0x01}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/dblRightArrowDis.xbm: -------------------------------------------------------------------------------- 1 | #define dblRightArrowDis_width 16 2 | #define dblRightArrowDis_height 15 3 | static unsigned char dblRightArrowDis_bits[] = { 4 | 0x01, 0x01, 0x02, 0x02, 0x05, 0x05, 0x0a, 0x0a, 0x15, 0x15, 0x2a, 0x2a, 5 | 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0x2a, 0x2a, 0x15, 0x15, 0x0a, 0x0a, 6 | 0x05, 0x05, 0x02, 0x02, 0x01, 0x01}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/encrypt_utils.h: -------------------------------------------------------------------------------- 1 | #ifndef _ENCRYPT_UTILS_H_ 2 | #define _ENCRYPT_UTILS_H_ 3 | 4 | #include "goo/gtypes.h" 5 | #include "goo/GString.h" 6 | #include "xpdf/SecurityHandler.h" 7 | #include "xpdf/XRef.h" 8 | 9 | // Sets given security handler to the xref 10 | // Skipps if secHandler is NULL 11 | void setEncryptionCred(XRef * xref, SecurityHandler * secHandler); 12 | 13 | // Checks credentials for given file. 14 | // ownerPassword and userPassword may be NULL meaning an empty password. 15 | // If the check is successfull result is set to gTrue, gFalse otherwise. 16 | // Return value: 17 | // handler == NULL && result == false 18 | // - security handler not found - cannot check credentials 19 | // handler == NULL && result == true 20 | // - document is not encrypted 21 | // handler != NULL 22 | // - credentials checked and result keeps the status 23 | SecurityHandler * checkEncryptionCred(XRef * xref, 24 | GString *ownerPassword, GString *userPassword, 25 | GBool & result); 26 | 27 | #endif 28 | 29 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/find.xbm: -------------------------------------------------------------------------------- 1 | #define find_width 15 2 | #define find_height 15 3 | static unsigned char find_bits[] = { 4 | 0x38, 0x0e, 0x28, 0x0a, 0x2e, 0x3a, 0xfe, 0x3f, 0x7f, 0x7f, 0x61, 0x43, 5 | 0x61, 0x43, 0x61, 0x43, 0x61, 0x43, 0xe1, 0x43, 0x21, 0x42, 0x21, 0x42, 6 | 0x21, 0x42, 0x21, 0x42, 0x3f, 0x7e}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/findDis.xbm: -------------------------------------------------------------------------------- 1 | #define findDis_width 15 2 | #define findDis_height 15 3 | static unsigned char findDis_bits[] = { 4 | 0x10, 0x04, 0x28, 0x0a, 0x04, 0x10, 0xaa, 0x2a, 0x55, 0x55, 0x20, 0x02, 5 | 0x41, 0x41, 0x20, 0x02, 0x41, 0x41, 0xa0, 0x02, 0x01, 0x40, 0x20, 0x02, 6 | 0x01, 0x40, 0x20, 0x02, 0x15, 0x54}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/forwardArrow.xbm: -------------------------------------------------------------------------------- 1 | #define forwardArrow_width 16 2 | #define forwardArrow_height 15 3 | static unsigned char forwardArrow_bits[] = { 4 | 0x00, 0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x33, 0x3f, 5 | 0x33, 0x7f, 0x33, 0xff, 0x33, 0x7f, 0x33, 0x3f, 0x00, 0x1f, 0x00, 0x0f, 6 | 0x00, 0x07, 0x00, 0x03, 0x00, 0x01}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/forwardArrowDis.xbm: -------------------------------------------------------------------------------- 1 | #define forwardArrowDis_width 16 2 | #define forwardArrowDis_height 15 3 | static unsigned char forwardArrowDis_bits[] = { 4 | 0x00, 0x01, 0x00, 0x02, 0x00, 0x05, 0x00, 0x0a, 0x00, 0x15, 0x22, 0x2a, 5 | 0x11, 0x55, 0x22, 0xaa, 0x11, 0x55, 0x22, 0x2a, 0x00, 0x15, 0x00, 0x0a, 6 | 0x00, 0x05, 0x00, 0x02, 0x00, 0x01}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/leftArrow.xbm: -------------------------------------------------------------------------------- 1 | #define leftArrow_width 8 2 | #define leftArrow_height 15 3 | static unsigned char leftArrow_bits[] = { 4 | 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff, 0xfe, 0xfc, 0xf8, 0xf0, 5 | 0xe0, 0xc0, 0x80}; 6 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/leftArrowDis.xbm: -------------------------------------------------------------------------------- 1 | #define leftArrowDis_width 8 2 | #define leftArrowDis_height 15 3 | static unsigned char leftArrowDis_bits[] = { 4 | 0x80, 0x40, 0xa0, 0x50, 0xa8, 0x54, 0xaa, 0x55, 0xaa, 0x54, 0xa8, 0x50, 5 | 0xa0, 0x40, 0x80}; 6 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/print.xbm: -------------------------------------------------------------------------------- 1 | #define print_width 15 2 | #define print_height 15 3 | static unsigned char print_bits[] = { 4 | 0xf0, 0x7f, 0x10, 0x40, 0x10, 0x40, 0xc8, 0x23, 0x08, 0x20, 0x68, 0x23, 5 | 0x04, 0x10, 0x34, 0x10, 0x04, 0x10, 0xff, 0x7f, 0x55, 0x55, 0xab, 0x6a, 6 | 0x55, 0x55, 0xab, 0x6a, 0xfe, 0x3f}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/printDis.xbm: -------------------------------------------------------------------------------- 1 | #define printDis_width 15 2 | #define printDis_height 15 3 | static unsigned char printDis_bits[] = { 4 | 0xa0, 0x2a, 0x10, 0x40, 0x00, 0x00, 0x40, 0x01, 0x08, 0x20, 0x40, 0x01, 5 | 0x00, 0x00, 0x14, 0x10, 0x00, 0x00, 0x55, 0x55, 0x00, 0x00, 0x01, 0x40, 6 | 0x00, 0x00, 0x01, 0x40, 0xaa, 0x2a}; 7 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/rightArrow.xbm: -------------------------------------------------------------------------------- 1 | #define rightArrow_width 8 2 | #define rightArrow_height 15 3 | static unsigned char rightArrow_bits[] = { 4 | 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 5 | 0x07, 0x03, 0x01}; 6 | -------------------------------------------------------------------------------- /src/xpdf/xpdf/rightArrowDis.xbm: -------------------------------------------------------------------------------- 1 | #define rightArrowDis_width 8 2 | #define rightArrowDis_height 15 3 | static unsigned char rightArrowDis_bits[] = { 4 | 0x01, 0x02, 0x05, 0x0a, 0x15, 0x2a, 0x55, 0xaa, 0x55, 0x2a, 0x15, 0x0a, 5 | 0x05, 0x02, 0x01}; 6 | -------------------------------------------------------------------------------- /testset/00uebung.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/00uebung.pdf -------------------------------------------------------------------------------- /testset/3_pkcs.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/3_pkcs.pdf -------------------------------------------------------------------------------- /testset/PDFReference16.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/PDFReference16.pdf -------------------------------------------------------------------------------- /testset/SLD-Intro.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/SLD-Intro.pdf -------------------------------------------------------------------------------- /testset/TN5603.Filters.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/TN5603.Filters.pdf -------------------------------------------------------------------------------- /testset/corrupted_bad_dictionary.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | /Contents 4 0 R 21 | 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 20 >> 26 | stream 27 | 200 500 100 200 re 28 | S 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000000063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | >> 44 | startxref 45 | 295 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/corrupted_bad_page.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | Contents 4 0 R 21 | >> 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 20 >> 26 | stream 27 | 200 500 100 200 re 28 | S 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000000063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | >> 44 | startxref 45 | 295 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/corrupted_stream_content.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | /Contents 4 0 R 21 | >> 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 36 >> 26 | stream 27 | 200 500 100 200 re 28 | S fucking wether 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000000063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | >> 44 | startxref 45 | 310 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/corrupted_stream_length.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | /Contents 4 0 R 21 | >> 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 20 >> 26 | stream 27 | 200 500 100 200 re 28 | S bad lenght of stream 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000000063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | >> 44 | startxref 45 | 316 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/corrupted_trailer.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | /Contents 4 0 R 21 | >> 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 20 >> 26 | stream 27 | 200 500 100 200 re 28 | S 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000000063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | 44 | startxref 45 | 295 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/corrupted_xref.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | /Contents 4 0 R 21 | >> 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 20 >> 26 | stream 27 | 200 500 100 200 re 28 | S 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000xxx063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | >> 44 | startxref 45 | 295 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/encrypt_nopasswd.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/encrypt_nopasswd.pdf -------------------------------------------------------------------------------- /testset/encrypt_passwd_a.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/encrypt_passwd_a.pdf -------------------------------------------------------------------------------- /testset/mode.conf: -------------------------------------------------------------------------------- 1 | . : mdUnknown # This is matches everything 2 | Test.: mdNormal # Default for all Test 3 | . Type: mdReadOnly # Default for all fields with Type name 4 | Test . Type: mdHidden # Specific for Test.Type 5 | : mdAdvanced # Same as .: 6 | # it is mentioned later so this rule is used 7 | -------------------------------------------------------------------------------- /testset/mode_bad.conf: -------------------------------------------------------------------------------- 1 | kkk.ass.dfff 2 | -------------------------------------------------------------------------------- /testset/mode_empty.conf: -------------------------------------------------------------------------------- 1 | # This is just comment 2 | 3 | # empty line because it contains just blanks 4 | # and again comments, so this file is finally empty 5 | -------------------------------------------------------------------------------- /testset/multi_enc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/multi_enc.pdf -------------------------------------------------------------------------------- /testset/multiversion.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/multiversion.pdf -------------------------------------------------------------------------------- /testset/operator.conf: -------------------------------------------------------------------------------- 1 | # An example for operator hint configuration file 2 | # file has following format: 3 | # `#' starts comments 4 | # emtpty lines are ignored 5 | # [operatorName] : Hint text 6 | # stands for hint describtion 7 | 8 | :Hint for this is not available 9 | Tj:Text visualization operator 10 | g : Any idea what it is 11 | q : # empty text 12 | 13 | -------------------------------------------------------------------------------- /testset/smallpdf.pdf: -------------------------------------------------------------------------------- 1 | %PDF-1.2 2 | 3 | 1 0 obj 4 | << /Type /Catalog 5 | /Pages 2 0 R 6 | >> 7 | endobj 8 | 9 | 2 0 obj 10 | << /Type /Pages 11 | /Kids [3 0 R] 12 | /Count 1 13 | >> 14 | endobj 15 | 16 | 3 0 obj 17 | << /Type /Page 18 | /Parent 2 0 R 19 | /MediaBox [0 0 612 792] 20 | /Contents 4 0 R 21 | >> 22 | endobj 23 | 24 | 4 0 obj 25 | << /Length 20 >> 26 | stream 27 | 200 500 100 200 re 28 | S 29 | endstream 30 | endobj 31 | 32 | xref 33 | 0 5 34 | 0000000000 65535 f 35 | 0000000010 00000 n 36 | 0000000063 00000 n 37 | 0000000127 00000 n 38 | 0000000224 00000 n 39 | 40 | trailer 41 | << /Size 5 42 | /Root 1 0 R 43 | >> 44 | startxref 45 | 295 46 | %%EOF 47 | -------------------------------------------------------------------------------- /testset/zadani.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nullishzero/PDFEdit/4eae798e7dda813889f0b245f98b52c8eb158118/testset/zadani.pdf -------------------------------------------------------------------------------- /tools/cygwin_build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem -- Update this to point to where cygwin is installed -- 3 | set CYGWIN_ROOT=e:\cygwin 4 | 5 | set PATH=%CYGWIN_ROOT%\bin;%CYGWIN_ROOT%\usr\X11R6\bin;%CYGWIN_ROOT%\usr\lib\qt3\bin 6 | set QTDIR=/lib/qt3 7 | set QMAKESPEC=cygwin-g++ 8 | rem move one direcctory up 9 | cd .. 10 | bash tools/cygwinbuild 11 | -------------------------------------------------------------------------------- /tools/headergen.txt: -------------------------------------------------------------------------------- 1 | Headergen 2 | --------- 3 | Program to automatically update .h files from .cc file 4 | On execution will parse all .cc files in current directory and generate 5 | or refresh all .h files if needed. 6 | You can put list of files (ore file or regexp per line) in file .headergen.ignore in 7 | directory with files. These files will be ignored. 8 | Any functions from .cc file not present in header file will be added to header, rest 9 | of header is unmodified 10 | Program will also add include guards 11 | (#ifdef __FILENAME_H__ ... ) if not present in header 12 | Current limitations: 13 | - return type of function must be on same line as name of function 14 | - File must conform to coding rules (name of class included in file must be equal 15 | to name of file, except case of letters) 16 | 17 | Default parameter in constructors: 18 | These cannot be in .c files, so it is parsed from comments: 19 | Class::Class(int param /*=default_value*/,int param2 .... in .c file 20 | to 21 | Class::Class(int param=default_value,int param2 .... in .h file 22 | -------------------------------------------------------------------------------- /version_exclude: -------------------------------------------------------------------------------- 1 | src/tests/ 2 | aconf\.h 3 | \.menu-trans.h 4 | src/qsa 5 | src/gui/version.cc 6 | --------------------------------------------------------------------------------