├── src └── main │ └── java │ ├── META-INF │ ├── services │ │ └── javax.imageio.spi.ImageReaderSpi │ └── MANIFEST.MF │ ├── org │ └── jpedal │ │ ├── res │ │ ├── cmm │ │ │ └── cmyk.icm │ │ └── pdf │ │ │ └── defaults │ │ │ └── MustRead.html │ │ ├── examples │ │ └── viewer │ │ │ ├── res │ │ │ ├── back.gif │ │ │ ├── end.gif │ │ │ ├── find.gif │ │ │ ├── help.png │ │ │ ├── icon.png │ │ │ ├── lock.gif │ │ │ ├── logo.gif │ │ │ ├── logo.png │ │ │ ├── menu.png │ │ │ ├── open.gif │ │ │ ├── pdf.png │ │ │ ├── plus.gif │ │ │ ├── rss.gif │ │ │ ├── rss.png │ │ │ ├── save.gif │ │ │ ├── tip.png │ │ │ ├── about.gif │ │ │ ├── color.png │ │ │ ├── display.png │ │ │ ├── facing.gif │ │ │ ├── fback.gif │ │ │ ├── forward.gif │ │ │ ├── grab32.png │ │ │ ├── logo2.png │ │ │ ├── minus.gif │ │ │ ├── pan32.png │ │ │ ├── panb32.png │ │ │ ├── panbl32.png │ │ │ ├── panbr32.png │ │ │ ├── panl32.png │ │ │ ├── panr32.png │ │ │ ├── pant32.png │ │ │ ├── pantl32.png │ │ │ ├── pantr32.png │ │ │ ├── print.gif │ │ │ ├── single.gif │ │ │ ├── start.gif │ │ │ ├── unlock.png │ │ │ ├── updates.png │ │ │ ├── viewer.png │ │ │ ├── back_grey.gif │ │ │ ├── end_grey.gif │ │ │ ├── fforward.gif │ │ │ ├── interface.png │ │ │ ├── mouse_pan.png │ │ │ ├── pageflow.gif │ │ │ ├── printing.png │ │ │ ├── snapshot.gif │ │ │ ├── snapshotX.gif │ │ │ ├── OSFXSplash.png │ │ │ ├── continuous.gif │ │ │ ├── extensions.png │ │ │ ├── facing_grey.gif │ │ │ ├── fback_grey.gif │ │ │ ├── forward_grey.gif │ │ │ ├── grabbing32.png │ │ │ ├── mouse_select.png │ │ │ ├── multiviewer.png │ │ │ ├── pagedisplay.png │ │ │ ├── properties.gif │ │ │ ├── search_next.gif │ │ │ ├── single_grey.gif │ │ │ ├── start_grey.gif │ │ │ ├── fforward_grey.gif │ │ │ ├── pageflow_grey.gif │ │ │ ├── snapshot_menu.gif │ │ │ ├── viewerFXSplash.png │ │ │ ├── continuous_facing.gif │ │ │ ├── continuous_grey.gif │ │ │ ├── help_index_22x22.png │ │ │ ├── menuSearchOptions.png │ │ │ ├── search_previous.gif │ │ │ ├── supportScreenshot.png │ │ │ ├── tips │ │ │ │ ├── apps │ │ │ │ │ ├── prevDoc.png │ │ │ │ │ ├── menuCustomizer.png │ │ │ │ │ ├── multiviewer.html │ │ │ │ │ ├── javabean.html │ │ │ │ │ ├── menuCustomizer.html │ │ │ │ │ ├── openLastDocument.html │ │ │ │ │ └── pdfsupport.html │ │ │ │ ├── guifeatures │ │ │ │ │ ├── HiResPrint.png │ │ │ │ │ ├── selection_description.png │ │ │ │ │ ├── export_button_description.png │ │ │ │ │ ├── right_click_description.png │ │ │ │ │ ├── pagetools_button_description.png │ │ │ │ │ ├── rightClick.html │ │ │ │ │ ├── selection.html │ │ │ │ │ ├── 1_Click_Image_Extraction_description.html │ │ │ │ │ ├── pagetools_button_description.html │ │ │ │ │ ├── HiRes_printing.html │ │ │ │ │ ├── snapshot_button_description.html │ │ │ │ │ ├── export_button_description.html │ │ │ │ │ └── pan_mode_description.html │ │ │ │ ├── info │ │ │ │ │ ├── abobe_uses_jpedal.html │ │ │ │ │ ├── visit_the_forums.html │ │ │ │ │ ├── visit_the_tutorials.html │ │ │ │ │ └── keep_up_with developments.html │ │ │ │ └── forms │ │ │ │ │ └── formsSaving.html │ │ │ ├── ViewerSelectorSplash.png │ │ │ ├── continuous_facing_grey.gif │ │ │ ├── xmlstyle.xslt │ │ │ └── css │ │ │ │ └── JavaFXPages.css │ │ │ ├── gui │ │ │ ├── CommandListenerImpl.java │ │ │ ├── generic │ │ │ │ ├── GUIMouseHandler.java │ │ │ │ ├── GUIButton.java │ │ │ │ ├── GUILayersPanel.java │ │ │ │ └── GUICombo.java │ │ │ ├── FXAdditionalData.java │ │ │ └── javafx │ │ │ │ ├── JavaFXMouseFunctionality.java │ │ │ │ └── JavaFXID.java │ │ │ ├── utils │ │ │ └── PrinterInt.java │ │ │ ├── commands │ │ │ ├── AlwaysShowMouse.java │ │ │ ├── DeletePropertiesOnExit.java │ │ │ ├── Toggle.java │ │ │ ├── AutoScroll.java │ │ │ ├── Preferences.java │ │ │ ├── CurrentPage.java │ │ │ ├── PageCount.java │ │ │ ├── javafx │ │ │ │ └── JavaFXFullScreen.java │ │ │ ├── Scaling.java │ │ │ ├── Reset.java │ │ │ └── Buy.java │ │ │ └── MouseMode.java │ │ ├── jbig2 │ │ └── examples │ │ │ └── viewer │ │ │ └── res │ │ │ ├── end.gif │ │ │ ├── back.gif │ │ │ ├── fback.gif │ │ │ ├── open.png │ │ │ ├── save.png │ │ │ ├── start.gif │ │ │ ├── fforward.gif │ │ │ ├── forward.gif │ │ │ └── properties.png │ │ ├── sun │ │ ├── readme.txt │ │ └── JaiI18N.java │ │ ├── objects │ │ ├── acroforms │ │ │ ├── res │ │ │ │ ├── TextNote.png │ │ │ │ ├── InsertText.png │ │ │ │ ├── UpArrow.png │ │ │ │ ├── Check.png │ │ │ │ ├── Checkmark.png │ │ │ │ ├── RightPointer.png │ │ │ │ ├── Cross.png │ │ │ │ ├── NewParagraph.png │ │ │ │ ├── Star.png │ │ │ │ ├── comment.png │ │ │ │ ├── Up-LeftArrow.png │ │ │ │ ├── Circle.png │ │ │ │ ├── Key.png │ │ │ │ ├── Help.png │ │ │ │ ├── Paragraph.png │ │ │ │ ├── RightArrow.png │ │ │ │ └── CrossHairs.png │ │ │ ├── FormTypes.java │ │ │ ├── ReturnValues.java │ │ │ ├── creation │ │ │ │ ├── FormOptions.java │ │ │ │ └── SwingFormCreator.java │ │ │ └── javafx │ │ │ │ └── JavaFXFormCreator.java │ │ ├── PageOrigins.java │ │ ├── javascript │ │ │ ├── jsobjects │ │ │ │ └── JSObjects.js │ │ │ ├── PDF2JS.java │ │ │ └── JSParser.java │ │ ├── structuredtext │ │ │ └── HTMLMarkedContentGenerator.java │ │ └── PdfClip.java │ │ ├── constants │ │ ├── PageInfo.java │ │ └── ErrorCodes.java │ │ ├── gui │ │ ├── UIViewerInt.java │ │ └── ViewerInt.java │ │ ├── display │ │ ├── GUIModes.java │ │ └── MultiPagesDisplay.java │ │ ├── external │ │ ├── ImageDataHandler.java │ │ ├── LinkHandler.java │ │ ├── PluginHandler.java │ │ ├── AdditonalHandler.java │ │ ├── CustomFormPrint.java │ │ ├── JPedalActionHandler.java │ │ ├── CustomPrintHintingHandler.java │ │ ├── RenderChangeListener.java │ │ ├── FontHandler.java │ │ ├── ErrorTracker.java │ │ ├── AnnotationHandler.java │ │ ├── ColorHandler.java │ │ ├── ImageHelper.java │ │ └── OffsetOptions.java │ │ ├── io │ │ ├── EncryptionUsed.java │ │ ├── filter │ │ │ ├── ccitt │ │ │ │ └── CCITTDecoder.java │ │ │ └── PdfFilter.java │ │ ├── IDObjectDecoder.java │ │ └── RandomAccessBuffer.java │ │ ├── utils │ │ ├── LogScanner.java │ │ └── BrowserLauncher.java │ │ ├── fonts │ │ ├── tt │ │ │ └── Table.java │ │ └── glyph │ │ │ ├── T3Size.java │ │ │ └── PdfGlyphs.java │ │ ├── grouping │ │ ├── SearchListener.java │ │ └── DefaultSearchListener.java │ │ ├── render │ │ ├── TextObject.java │ │ ├── ShapeFactory.java │ │ ├── ImageObject.java │ │ ├── T3Renderer.java │ │ ├── FXDisplayForRasterizing.java │ │ └── output │ │ │ ├── io │ │ │ └── ImageFileType.java │ │ │ └── FontMapper.java │ │ ├── function │ │ └── PDFFunction.java │ │ ├── color │ │ └── PdfPaint.java │ │ ├── exception │ │ ├── PdfSecurityException.java │ │ └── PdfFontException.java │ │ └── parser │ │ └── DecodeStatus.java │ └── com │ └── idrsolutions │ └── image │ ├── tiff │ └── Tile.java │ ├── jpeg2000 │ ├── SubbandCoefficient.java │ ├── PacketItem.java │ ├── Palette.java │ ├── Progression.java │ ├── Packet.java │ ├── Cmap.java │ ├── Precinct.java │ ├── PrecinctInfo.java │ ├── BlockData.java │ ├── CodeBlockInfo.java │ ├── TreeNode.java │ ├── TileComponent.java │ └── TileResolution.java │ └── jpeg │ ├── IndexMap.java │ ├── Component.java │ ├── AdobeHolder.java │ ├── JFIFHolder.java │ └── Info.java └── README.md /src/main/java/META-INF/services/javax.imageio.spi.ImageReaderSpi: -------------------------------------------------------------------------------- 1 | org.jpedal.jbig2.jai.JBIG2ImageReaderSpi -------------------------------------------------------------------------------- /src/main/java/org/jpedal/res/cmm/cmyk.icm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/res/cmm/cmyk.icm -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/back.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/back.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/end.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/find.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/find.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/help.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/icon.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/lock.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/logo.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/logo.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/menu.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/open.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pdf.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/plus.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/rss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/rss.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/rss.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/save.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/save.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tip.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/about.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/about.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/color.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/display.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/display.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/facing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/facing.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/fback.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/fback.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/forward.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/forward.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/grab32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/grab32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/logo2.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/minus.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pan32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pan32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/panb32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/panb32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/panbl32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/panbl32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/panbr32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/panbr32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/panl32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/panl32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/panr32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/panr32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pant32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pant32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pantl32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pantl32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pantr32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pantr32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/print.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/print.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/single.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/single.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/start.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/start.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/unlock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/unlock.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/updates.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/updates.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/viewer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/viewer.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/back_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/back_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/end_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/end_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/fforward.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/fforward.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/interface.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/interface.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/mouse_pan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/mouse_pan.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pageflow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pageflow.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/printing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/printing.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/snapshot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/snapshot.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/snapshotX.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/snapshotX.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/end.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/end.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/OSFXSplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/OSFXSplash.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/continuous.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/continuous.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/extensions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/extensions.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/facing_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/facing_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/fback_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/fback_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/forward_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/forward_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/grabbing32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/grabbing32.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/mouse_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/mouse_select.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/multiviewer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/multiviewer.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pagedisplay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pagedisplay.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/properties.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/properties.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/search_next.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/search_next.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/single_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/single_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/start_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/start_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/back.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/back.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/fback.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/fback.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/open.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/save.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/start.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/start.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/fforward_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/fforward_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/pageflow_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/pageflow_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/snapshot_menu.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/snapshot_menu.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/viewerFXSplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/viewerFXSplash.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/fforward.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/fforward.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/forward.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/forward.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/continuous_facing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/continuous_facing.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/continuous_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/continuous_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/help_index_22x22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/help_index_22x22.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/menuSearchOptions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/menuSearchOptions.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/search_previous.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/search_previous.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/supportScreenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/supportScreenshot.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/prevDoc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/apps/prevDoc.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/jbig2/examples/viewer/res/properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/jbig2/examples/viewer/res/properties.png -------------------------------------------------------------------------------- /src/main/java/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Archiver-Version: Plexus Archiver 3 | Built-By: hudson 4 | Created-By: Apache Maven 3.3.3 5 | Build-Jdk: 1.8.0_11 6 | 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/ViewerSelectorSplash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/ViewerSelectorSplash.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/continuous_facing_grey.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/continuous_facing_grey.gif -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/menuCustomizer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/apps/menuCustomizer.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/multiviewer.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | JPedal 3.50 and later includes a Multiviewer application to open multiple PDFs in the PDF viewer. 4 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/HiResPrint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/HiResPrint.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/info/abobe_uses_jpedal.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | Did you know that Adobe themselves use JPedal to add PDF support to ColdFusion 8.0? 4 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/selection_description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/selection_description.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/export_button_description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/export_button_description.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/right_click_description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/right_click_description.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/sun/readme.txt: -------------------------------------------------------------------------------- 1 | These files are freely available from the Suns website and 2 | are reproduced with full headers and copyright notice as required. 3 | 4 | They have been modified for use by Jpedal 5 | 6 | 17/6/2002 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/pagetools_button_description.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qwertme/OpenViewerFX/HEAD/src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/pagetools_button_description.png -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/info/visit_the_forums.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | If you have any questions about PDF or this software, visit the support section 4 | for advice and help. 5 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/TextNote.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME� 9;���iTXtCommentCreated with GIMPd.eHIDATH�cd@�� �� ,�"��h ##���@0|,a!&L��┅T ��5\#0�F���|2\#�Fz��:=;��&IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/rightClick.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | JPedal now has a right click menu option to allow you to handle extraction with ease.

4 | 5 |



6 | 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/forms/formsSaving.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | JPedal can make use of iText to save out forms if itext is on the classpath.

4 |

5 | You can learn more about iText from the 6 | iText website. 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/InsertText.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD������� pHYs  ��tIME�  ��|YiTXtCommentCreated with GIMPd.e]IDATH���� 4 | P���y:�N"Bw�;)�laȃ�C��|yI*��ZE���qmT,Y/�#Cևˤ���� 5 | QE��sQTYm��E�7�*o� �$�!�IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/UpArrow.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  1�3XiTXtCommentCreated with GIMPd.eiIDATH��1 ���/��d�����E�16PX�*0��A��O� ��z 艺��M� d��� � �V��bg�bb������B=�Rׇ|H�rcW��&Bz�IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Check.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�   �m�iTXtCommentCreated with GIMPd.eyIDATH���;� P���)R�!�.�*R�ʐ�N�!�W6|!)���֗ 4 | @CR d�d X�L`� �#���O�n��� }4 y�ν�l�b��BD����m�2�@L��щ���Esg�IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/info/visit_the_tutorials.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | There are lots of tutorials telling how to use the JPedal library on the support site. 4 |

5 |

6 | Visit the support site for full details. 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Checkmark.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD������� pHYs  ��tIME�   4 | �OS�iTXtCommentCreated with GIMPd.e}IDATH���K� С'�����Ȧ�����U�/UݟgR��LG�:8!�ZH��t' ��bxu�KG�!V:2���#�����(`��#aÄJ4],Нbs3���l�S�g@K���uv�W�r�wIEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/RightPointer.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  54T���iTXtCommentCreated with GIMPd.e�IDATH����� �K���^�kF��U_Q̡�a�0&v4�x�ܫ� ���Z���~���B�_̛<�2X 4 | ��ނa(�� _ب��a�ǔqWE+)=ed��O�����K�oyO���������n�����:#Ɛ�IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/selection.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | JPedal now highlights your on page selections in a more comprehensible manner. Selected items remain selected until they are unselected.

4 | 5 |



6 | 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Cross.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  z�!�iTXtCommentCreated with GIMPd.e�IDATH��V�� s��?ӡKPLx�QƦ��zɨY�g^ "%B7ù ec�aA�_����(�xr� 4 | ��c�@ C��1��ہɚlr��Is�~��/nR�&� ���{R�()��Ƿ׮�*��O�t��oR4��<-s�P���'�IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/NewParagraph.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  7�W�OiTXtCommentCreated with GIMPd.e�IDATH�͕K� �x�+�.�j#?�E�&�a�(Q�� H�AB?/X�A��2yXdmx�1.�"j�n���p���k�²i1A�k� 0��n�Ώ������4�ha��l �K�(���:P.���&�nwAR9�.b�9-���IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Star.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  1��>�iTXtCommentCreated with GIMPd.e�IDATH��V[�0 ��_?L����njb��(�5K�/��-=P. I_�'�� 4 | �N t���X�Z%��t�� lB9GS��gP�w�W.>D� 5 | �D�J�$�Q�_����n�s��ʏ s�*��ء��J`Y�j b�db��c�"]�Lj: RUh IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/comment.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD������� pHYs  ��tIME� 4 | $ ��3iTXtCommentCreated with GIMPd.e�IDATH��K�0Dg��2.Ԙ4��+Yc_i;/��p)�A  5 | J3;�*s 6 | �[�:��i���X��>�.HV-�;ڒ��S����� A̾p�d�R<��H���H|����*+I��E;�~];��t�����ACa�u�p�g@%Za���A9����IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Up-LeftArrow.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  0-M��^iTXtCommentCreated with GIMPd.e�IDATHǵ�K�0���_�l�����]���������.b�_L6� Cf�Y�H��Ir���g��$˵�d{2��?�����D� �����$�:�&����S��� �Z�hv�лC 4 | �\b��L� k��������r:}��B��K� e>��=.?��� IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/1_Click_Image_Extraction_description.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | The Viewer can convert the original images from the current page. 4 |



5 | First highlight the desired image by clicking on the image. Hold down the shift key and click the highlighted image to save the image. 6 |



7 | 8 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/javabean.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | The Viewer is now available to use as a JavaBean component. 4 | A tutorial is available here 5 | on our support pages describing how you can quickly and easily 6 | add PDF support to your applications through the GUI builder Matisse in NetBeans. 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Circle.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  �`iTXtCommentCreated with GIMPd.e�IDATH�Ֆ�� E�5����}`�uu����4M�r��E fb<5���qp�30 "������0� Нk�l��:�� [�ۻ>�`fdʼn����x; �X{�;�hy{ER��&�|�1�5lEST m�o!�A��"H.��ȃ�a\9'o�i)V}g�ZN4�u�J d��Si�*�^?CS�d[g���~[�Zu�^S{�Vx�P���IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Key.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  7��m�iTXtCommentCreated with GIMPd.e�IDATH��1�0 E�Q��cp.��ʄ�����`@$��R��iʀ�/e���c�8� � ��p�� 4 | �T5��k�D��* /��� 5���.���!"���,"poڇ&_s*y�⾒�j�o`n���m�"pE��a�'���^���sb��� 5 | ��Z��J�s���hp� 6 | bs1����[�%"���B�5WJ�&O&O�ܓ�r��s/~K��,IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/CommandListenerImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package org.jpedal.examples.viewer.gui; 7 | 8 | /** 9 | * 10 | * @author markee 11 | */ 12 | public class CommandListenerImpl { 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/pagetools_button_description.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | JPedal provides a whole host of PDF manipulation tools to alter PDF files.

4 | 5 |



6 | 7 | Please note, you will need iText installed on the classpath to use all these features. 8 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Help.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  L>biiTXtCommentCreated with GIMPd.e�IDATHǵ�A�0E?�+���=�Y�  4 | S%ibyP 5 | � �Z���}>W����^�������>%e-�BG[ε���@ȃ ��Ietz��g�bGxwԝ1_�$� _�,F["m4�^��m�ѵ5k}P4ˉ�>s d6��m�^^0%�z� � ���d�t/3�4�hG����-|�,4�; �l�Y�c���ͻt��]*���(`�wt�;~ 6 | �:�J�ZzM���L���ZIEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/info/keep_up_with developments.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | You can keep up with news of new JPedal releases by subscribing to our rss feed at http://www.jpedal.org/jpedal.rss 4 | for advice and help. 5 |



6 | (Please note, Firefox needs version 2.0 or above to support feeds and it will not work on all browsers) 7 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/HiRes_printing.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | The Viewer contains built in functionality allowing access to 4 | the higher resolution printing of PDF pages. 5 |



6 | 7 | 8 |



9 | 10 | By default all pages will be printed as high resolution using the 11 | option found on the preferences window. 12 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/Paragraph.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  6!A=�iTXtCommentCreated with GIMPd.eIDATHǵ��n�0 D�i+�x���;6Щ_��Y[d �!v��Z�-�%��;S� �/�s~>�����`��I��a��q�03��}&JkT����^`I���o��HBKl)F��5x�^V,<���u�kJ�e%�wʕL53B�/%ĒuZS�xJr5 �m�V�j�\8yi�jג� 8�䔀����q� �jS �5o�LY�����l�]�sp;��B�k��R�wV16���~�� V,��z|'iT%W�T�4��/A���(��{�gv���z�[IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/RightArrow.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  6 '�� iTXtCommentCreated with GIMPd.e(IDATH�Ŗ�n�0 ��?�u\�ǘ�����: q� �uWG��(��Mh�Y������������s�볥̬���]�l���69gʬ]Ͳ�U"qVc �J@!NQ �F,�x�S��oV`fH��ǃP̤o�*1r�>fR�"��� lе Q*�Pb�~�7`]�3󌔤.�h-�������H�$�bv+�%@R �k�,(���pH�Zt��]\ ����Hc��_������d�7co�ǒ��?���.�mk�O����is���'�},u2���Jb�>�@b���me�{�/�e.�`@?IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/menuCustomizer.html: -------------------------------------------------------------------------------- 1 | 2 |

3 |

Jpedal has the option for the user to customize the viewer GUI.

4 |

This can be done using the Preference menu found in View->Preferences. Each checkbox enables / disables a GUI item.

5 | 6 | 7 |



8 | 9 |

For more information read the tutorial

10 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/snapshot_button_description.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | The Viewer can convert images from the current page based on a selected area.

4 | 5 | Click on thebutton to turn on image extraction.

6 | Now drag your mouse to form a box around the area you wish to convert.

7 | You'll be asked for the scaling of the image then shown a preview with the option to save.



8 | 9 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/tiff/Tile.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com.idrsolutions.image.tiff; 7 | 8 | /** 9 | * 10 | * @author suda 11 | */ 12 | public class Tile { 13 | 14 | public int x; 15 | public int y; 16 | public int width; 17 | public int height; 18 | public byte[] data; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/openLastDocument.html: -------------------------------------------------------------------------------- 1 | 2 |

3 |

Jpedal 3.79 and later now has the option to open the last viewed document at the last viewed page.

4 |

This can be done using the Preference menu found in View->Preferences in the Viewer tab.

5 |

By checking the "Open previous document at app start" simple viewer will open the last viewed document at the last viewed page upon application start up.

6 | 7 | 8 |



9 | 10 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/res/CrossHairs.png: -------------------------------------------------------------------------------- 1 | �PNG 2 |  3 | IHDR��cbKGD�C� pHYs  ��tIME�  /d<��iTXtCommentCreated with GIMPd.e~IDATHǽ��n�@��=�X�.)R���y"QY�BA�D� 4 | ���$�M�����V`{nf�n�k�)P+����� `�j}�睌q�x�ٸ��*�sfYF!�(EXfE�3�0[�d��N�h��d���2�"l��&�*��ވ�{ ��I��6Ī� �h����?L�C��!�f���㹾�b�Kd����q��ߌc���� ��s�������<ٌlT����<�ퟲaiK�����9����lU�{��G"���Ζ�H�i�hhu>�/My ����Y��쀉�Z���Ub����8V�\�,o]���Y��?:��z�վVB�j���]�_�(�vH#IEND�B`� -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/apps/pdfsupport.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | JPedal includes can now be used to add PDF support to your application in just two lines of code. 4 |

5 |

      Viewer viewer = new Viewer(rootContainer, null);

6 |

      frame.add(rootContainer, BorderLayout.CENTER);

7 | 8 |

rootContainer = Display Component

9 |

frame = Your applications GUI

10 | 11 |

For more information read the tutorial

12 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/export_button_description.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | The Viewer contains built in functionality allowing access to 4 | the various export/extraction facilities offered by JPedal. 5 |



6 | 7 | 8 |



9 | 10 | By default you can either export complete pages as bitmaps, or convert 11 | text and images from individual pages. If you have 12 | iText on the 13 | classpath, you will also be presented with the option to export pages 14 | as PDF files. 15 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/SubbandCoefficient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * To change this license header, choose License Headers in Project Properties. 3 | * To change this template file, choose Tools | Templates 4 | * and open the template in the editor. 5 | */ 6 | package com.idrsolutions.image.jpeg2000; 7 | 8 | import java.awt.image.BufferedImage; 9 | 10 | /** 11 | * 12 | */ 13 | public class SubbandCoefficient { 14 | 15 | public int x; 16 | public int y; 17 | public int width; 18 | public int height; 19 | public float [] floatItems; 20 | public byte [] byteItems; 21 | public BufferedImage bufferedImage; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/tips/guifeatures/pan_mode_description.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | The Viewer allows the user to use the mouse to either select text or pan the view of the pdf by clicking and dragging the mouse around the viewer.



4 | 5 | Click on this button () to toggle between selecting text and view panning mode.



6 | 7 | Shows the mouse will allow text selection.



8 | Shows the mouse will allow the view to be panned.



9 | 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | I did not write this code. I just got it from the sources.jar and posted it here because I needed it and figured others might need it as well. 2 | 3 | This is the last version of OpenViewerFX that included the image processing classes (notably the PNG Quantizer) that are now part of JDeli 4 | 5 | http://mvnrepository.com/artifact/org.jpedal/OpenViewerFX/6.6.14 6 | 7 | https://search.maven.org/remotecontent?filepath=org/jpedal/OpenViewerFX/6.6.14/OpenViewerFX-6.6.14.pom 8 | https://search.maven.org/remotecontent?filepath=org/jpedal/OpenViewerFX/6.6.14/OpenViewerFX-6.6.14.jar 9 | https://search.maven.org/remotecontent?filepath=org/jpedal/OpenViewerFX/6.6.14/OpenViewerFX-6.6.14-javadoc.jar 10 | https://search.maven.org/remotecontent?filepath=org/jpedal/OpenViewerFX/6.6.14/OpenViewerFX-6.6.14-sources.jar 11 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/res/pdf/defaults/MustRead.html: -------------------------------------------------------------------------------- 1 | Core 14 AFM Files - ReadMe or
This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. Col
-------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/xmlstyle.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/constants/PageInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PageInfo.java 31 | * --------------- 32 | */ 33 | package org.jpedal.constants; 34 | 35 | public class PageInfo { 36 | public static final int COLORSPACES = 1; 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/gui/UIViewerInt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * UIViewerInt.java 31 | * --------------- 32 | */ 33 | package org.jpedal.gui; 34 | 35 | public interface UIViewerInt { 36 | void invokeServerMethod(String s, Object[] objects); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/FormTypes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * FormTypes.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.acroforms; 34 | 35 | public enum FormTypes { 36 | XFA_LEGACY, XFA_DYNAMIC, NON_XFA 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/display/GUIModes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * GUIModes.java 31 | * --------------- 32 | */ 33 | package org.jpedal.display; 34 | 35 | /** 36 | * Define if we use Swing or JavaFX 37 | */ 38 | public enum GUIModes { 39 | SWING,JAVAFX 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/ImageDataHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ImageDataHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | @SuppressWarnings("UnusedParameters") 36 | public interface ImageDataHandler extends ImageHandler{ 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/LinkHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * LinkHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | /** 36 | * allow user to over-ride existing link handling 37 | */ 38 | 39 | public interface LinkHandler { 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/io/EncryptionUsed.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * EncryptionUsed.java 31 | * --------------- 32 | */ 33 | package org.jpedal.io; 34 | 35 | @SuppressWarnings("UnusedDeclaration") 36 | public enum EncryptionUsed { 37 | NOT_OPEN, NO_ENCRYPTION, PASSWORD, CERTIFICATE 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/PageOrigins.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PageOrigins.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects; 34 | 35 | /** 36 | *define enums to describe different co-ordinate systems 37 | */ 38 | public enum PageOrigins { 39 | BOTTOM_LEFT,TOP_LEFT 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/utils/LogScanner.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * LogScanner.java 31 | * --------------- 32 | */ 33 | package org.jpedal.utils; 34 | 35 | 36 | 37 | public interface LogScanner { 38 | 39 | //passed any messages from LogWriter.writeLog 40 | void message(String message); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/fonts/tt/Table.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Table.java 31 | * --------------- 32 | */ 33 | package org.jpedal.fonts.tt; 34 | 35 | import java.io.Serializable; 36 | 37 | /** 38 | * generic table class for tables in truetype font */ 39 | public class Table implements Serializable { 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/grouping/SearchListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * SearchListener.java 31 | * --------------- 32 | */ 33 | package org.jpedal.grouping; 34 | 35 | public interface SearchListener { 36 | 37 | boolean isCanceled(); 38 | 39 | @SuppressWarnings("UnusedDeclaration") 40 | void requestCancel(); 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/io/filter/ccitt/CCITTDecoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * CCITTDecoder.java 31 | * --------------- 32 | */ 33 | package org.jpedal.io.filter.ccitt; 34 | 35 | /** 36 | * provide interface for implementing 3 different types of CCITT 37 | */ 38 | public interface CCITTDecoder { 39 | byte[] decode() ; 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/fonts/glyph/T3Size.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * T3Size.java 31 | * --------------- 32 | */ 33 | package org.jpedal.fonts.glyph; 34 | 35 | /** 36 | * 37 | * @author markee 38 | * 39 | * holds width and height for each glyph in unscaled units 40 | */ 41 | public class T3Size { 42 | 43 | public int x,y; 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/TextObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * TextObject.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render; 34 | 35 | import java.awt.*; 36 | 37 | /** 38 | * hold details for String to render 39 | */ 40 | public class TextObject { 41 | public int x,y; 42 | public Font font; 43 | public String text; 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/PluginHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PluginHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | @SuppressWarnings("UnusedParameters") 36 | public interface PluginHandler { 37 | 38 | //allow user to update Plugin when new file loaded 39 | void setFileName(String name); 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/ReturnValues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ReturnValues.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.acroforms; 34 | 35 | /** 36 | * return options for Forms methods 37 | */ 38 | public enum ReturnValues { 39 | GUI_FORMS_FROM_NAME, FORM_NAMES, FORMOBJECTS_FROM_NAME,FORMOBJECTS_FROM_REF 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/ShapeFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ShapeFactory.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render; 34 | 35 | public interface ShapeFactory { 36 | 37 | Object getContent(); 38 | 39 | boolean isEmpty(); 40 | 41 | String getPathCommands(); 42 | 43 | //void setShapeNumber(int shapeCount); 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/function/PDFFunction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PDFFunction.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.function; 35 | 36 | 37 | /** 38 | * Interface for PDF Shading function classes 39 | */ 40 | public interface PDFFunction{ 41 | 42 | float[] compute(float[] values); 43 | float[] computeStitch(float[] subinput); 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/ImageObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ImageObject.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render; 34 | 35 | import java.awt.image.BufferedImage; 36 | 37 | /** 38 | * hold details for String to render 39 | */ 40 | public class ImageObject { 41 | public int x,y; 42 | //public Font font; 43 | public BufferedImage image; 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/AdditonalHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * AdditonalHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | /** 36 | * 37 | * @author markee 38 | */ 39 | public interface AdditonalHandler { 40 | 41 | Object getExternalHandler(int type); 42 | 43 | void addExternalHandler(Object newHandler, int type); 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/javascript/jsobjects/JSObjects.js: -------------------------------------------------------------------------------- 1 | var ADBE = {}; 2 | 3 | var Doc = { 4 | ADBE : ADBE, 5 | external: true, 6 | getField : function(name) { 7 | return JSDoc.getField(name); 8 | }, 9 | getFieldByRef : function(ref) { 10 | return JSDoc.getFieldByRef(ref); 11 | } 12 | }; 13 | 14 | function Event(type, src, target) { 15 | this.source = src; 16 | this.target = target; 17 | this.type = type; 18 | this.change = ""; 19 | this.changeEX = ""; 20 | this.commitKey = 0; 21 | this.name = ""; 22 | this.rc = true; 23 | this.richChange = []; 24 | this.richChangeEx = []; 25 | this.richValue = []; 26 | this.targetName = ""; 27 | this.value = null; 28 | this.willCommit = false; 29 | 30 | switch(type) { 31 | // Page Events 32 | case 31 : 33 | this.name = "Open"; 34 | this.type = "Page"; 35 | break; 36 | case 19 : 37 | this.name = "Close"; 38 | this.type = "Page"; 39 | break; 40 | // Field Events 41 | case 27 : 42 | this.name = "Keystroke"; 43 | this.type = "Field"; 44 | break; 45 | case 38 : 46 | this.name = "Validate"; 47 | this.type = "Field"; 48 | break; 49 | case 4866 : 50 | this.name = "Calculate"; 51 | this.type = "Field"; 52 | break; 53 | case 22 : 54 | this.name = "Format"; 55 | this.type = "Field"; 56 | break; 57 | default : 58 | break; 59 | } 60 | } -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/PacketItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PacketItem.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | * @author suda 38 | */ 39 | public class PacketItem { 40 | public CodeBlock codeBlock; 41 | public byte nCodingPass; 42 | public int dataLength; 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/Palette.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Palette.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | */ 38 | public class Palette { 39 | 40 | public int nEntries; 41 | public int nColumns; 42 | public int[] bitDepts; 43 | public int[][] cValues; 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/generic/GUIMouseHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * GUIMouseHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.gui.generic; 34 | 35 | /**abstract level of mouse support in Viewer*/ 36 | public interface GUIMouseHandler { 37 | 38 | void setupMouse(); 39 | 40 | //void updateRectangle(); 41 | 42 | //void setupExtractor(); 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/Progression.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Progression.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | */ 38 | public interface Progression { 39 | 40 | Packet getNextPacket(); 41 | 42 | Packet createPacket(TileResolution resolution, int precintNumber, int layerNumber); 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/Packet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Packet.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | import java.util.ArrayList; 36 | import java.util.List; 37 | 38 | /** 39 | * 40 | */ 41 | public class Packet { 42 | public int layerNumber; 43 | public final List codeBlocks = new ArrayList(); 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/utils/PrinterInt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PrinterInt.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.utils; 34 | 35 | import org.jpedal.PdfDecoderInt; 36 | import org.jpedal.gui.GUIFactory; 37 | 38 | public interface PrinterInt { 39 | 40 | void printPDF(PdfDecoderInt decodePdf, GUIFactory currentGUI, String blacklist, String defaultPrinter); 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/io/IDObjectDecoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * IDObjectDecoder.java 31 | * --------------- 32 | */ 33 | package org.jpedal.io; 34 | 35 | /** 36 | * specific fucntions for ID 37 | */ 38 | public class IDObjectDecoder extends ObjectDecoder{ 39 | 40 | public IDObjectDecoder(final PdfFileReader pdfFileReader) { 41 | 42 | super(pdfFileReader); 43 | 44 | this.isInlineImage=true; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/creation/FormOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * FormOptions.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.acroforms.creation; 34 | 35 | /** 36 | * specific flags to control HTML forms 37 | */ 38 | public enum FormOptions { 39 | 40 | DISABLE_CACHING_ON_SAME_SIZE_BUTTON_IMAGES, INCLUDE_EXPORT_VALUE_IN_CHECKBOXES, DO_NOT_USE_IMAGES_FOR_CHECKBOXES_OR_RADIO_BUTTONS 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/CustomFormPrint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * CustomFormPrint.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | import org.jpedal.objects.acroforms.GUIData; 36 | import org.jpedal.objects.raw.FormObject; 37 | 38 | import java.awt.*; 39 | 40 | @SuppressWarnings("UnusedDeclaration") 41 | public interface CustomFormPrint { 42 | boolean print(Graphics2D g2, FormObject formObject, GUIData ref); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/JPedalActionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JPedalActionHandler.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.external; 35 | 36 | import org.jpedal.examples.viewer.Commands; 37 | import org.jpedal.gui.GUIFactory; 38 | 39 | @SuppressWarnings("UnusedParameters") 40 | public interface JPedalActionHandler { 41 | void actionPerformed(GUIFactory currentGUI, Commands commands); 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/grouping/DefaultSearchListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * DefaultSearchListener.java 31 | * --------------- 32 | */ 33 | package org.jpedal.grouping; 34 | 35 | public class DefaultSearchListener implements SearchListener { 36 | private boolean isCanceled; 37 | 38 | @Override 39 | public boolean isCanceled() { 40 | return isCanceled; 41 | } 42 | 43 | @Override 44 | public void requestCancel() { 45 | isCanceled = true; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/Cmap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Cmap.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | */ 38 | public class Cmap { 39 | 40 | /** 41 | * 42 | */ 43 | public int[] cmp; 44 | 45 | /** 46 | * 47 | */ 48 | public int[] mtyp; 49 | 50 | /** 51 | * 52 | */ 53 | public int[] pcol; 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/Precinct.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Precinct.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | */ 38 | public class Precinct { 39 | 40 | public int cbx0; 41 | public int cby0; 42 | public int cbx1; 43 | public int cby1; 44 | 45 | public IncQuadTree incQuadTree; 46 | public QuadTree zeroBitTree; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/res/css/JavaFXPages.css: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/java-pdf-library-support/ 8 | * 9 | * List of all example and a link to zip at http://www.idrsolutions.com/java-code-examples-for-pdf-files/ 10 | * 11 | * (C) Copyright 1997-2014, IDRsolutions and Contributors. 12 | * 13 | * This file is part of JPedal 14 | * 15 | This library is free software; you can redistribute it and/or 16 | modify it under the terms of the GNU Lesser General Public 17 | License as published by the Free Software Foundation; either 18 | version 2.1 of the License, or (at your option) any later version. 19 | 20 | This library is distributed in the hope that it will be useful, 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23 | Lesser General Public License for more details. 24 | 25 | You should have received a copy of the GNU Lesser General Public 26 | License along with this library; if not, write to the Free Software 27 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 28 | 29 | 30 | * 31 | * 32 | * --------------- 33 | * JavaFXPages.css 34 | * --------------- 35 | */ 36 | /* 37 | Created on : 20-Jun-2014, 15:26:23 38 | Author : Simon 39 | 40 | Style rules of the page of a PDF 41 | Note that so it doesn't affect the GUI use #PdfDecoderFX before the class 42 | */ 43 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/CustomPrintHintingHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * CustomPrintHintingHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | 36 | import java.awt.*; 37 | import org.jpedal.PdfDecoderInt; 38 | 39 | /** 40 | * allow user to set print hinting 41 | */ 42 | public interface CustomPrintHintingHandler { 43 | boolean preprint(Graphics2D g2, PdfDecoderInt pdf); 44 | boolean postprint(Graphics2D g2, PdfDecoderInt pdf); 45 | } -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg/IndexMap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * IndexMap.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg; 34 | 35 | /** 36 | * 37 | */ 38 | public class IndexMap { 39 | 40 | public int index; 41 | public final Object[] children; 42 | 43 | public IndexMap(int index, Object[] children){ 44 | this.index = index; 45 | this.children = children; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/javascript/PDF2JS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PDF2JS.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.javascript; 34 | 35 | import org.jpedal.objects.raw.FormObject; 36 | 37 | /**JS wrapper around formObject for JS*/ 38 | public class PDF2JS { 39 | 40 | //@SuppressWarnings("UnusedDeclaration") 41 | //FormObject formObject; 42 | 43 | PDF2JS(final FormObject formObject) { 44 | // this.formObject=formObject; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/color/PdfPaint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PdfPaint.java 31 | * --------------- 32 | */ 33 | package org.jpedal.color; 34 | 35 | import java.awt.Paint; 36 | 37 | public interface PdfPaint extends Paint { 38 | 39 | void setScaling(double cropX, double cropH, float scaling, float textX, float textY); 40 | 41 | boolean isPattern(); 42 | 43 | boolean isTexture(); 44 | 45 | int getRGB(); 46 | 47 | //added for HTML conversion 48 | void setRenderingType(int createHtml); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/exception/PdfSecurityException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PdfSecurityException.java 31 | * --------------- 32 | */ 33 | package org.jpedal.exception; 34 | 35 | /** 36 | * used to handle problems with Encryption 37 | */ 38 | public class PdfSecurityException extends PdfException { 39 | 40 | /** 41 | * provides a security exception if access not permitted 42 | */ 43 | public PdfSecurityException(final String message) { 44 | 45 | error_message = message; 46 | 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/exception/PdfFontException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PdfFontException.java 31 | * --------------- 32 | */ 33 | package org.jpedal.exception; 34 | 35 | /** 36 | *used to handle problems or unexpected behaviour in our Font Renderer 37 | */ 38 | public class PdfFontException extends PdfException { 39 | 40 | /** 41 | * provides a security exception if access not permitted 42 | */ 43 | public PdfFontException(final String message) { 44 | 45 | error_message = message; 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg/Component.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Component.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg; 34 | 35 | /** 36 | * 37 | */ 38 | public class Component { 39 | public int blocksX; 40 | public int blocksY; 41 | public int[] codeBlock; 42 | public int[] qTable; 43 | public int pred; 44 | public int v; 45 | public int h; 46 | public Object huffmanTableAC; 47 | public Object huffmanTableDC; 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/AlwaysShowMouse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * AlwaysShowMouse.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.examples.viewer.gui.*; 36 | 37 | /** 38 | * 39 | */ 40 | public class AlwaysShowMouse { 41 | 42 | public static void execute(final Object[] args) { 43 | if (args == null) { 44 | // 45 | } else { 46 | 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/structuredtext/HTMLMarkedContentGenerator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * HTMLMarkedContentGenerator.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.objects.structuredtext; 35 | 36 | /** 37 | * 38 | * @author markee 39 | */ 40 | public class HTMLMarkedContentGenerator extends MarkedContentGenerator { 41 | 42 | public HTMLMarkedContentGenerator() { 43 | 44 | isHTML=true; 45 | } 46 | 47 | public Object getLookup() { 48 | return reverseLookup; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg/AdobeHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * AdobeHolder.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg; 34 | 35 | /** 36 | * 37 | */ 38 | public class AdobeHolder { 39 | 40 | public int version; 41 | public int flag0; 42 | public int flag1; 43 | public int transformCode; 44 | 45 | @Override 46 | public String toString() { 47 | return version+" "+flag0+ ' ' +flag1+ ' ' +transformCode; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg/JFIFHolder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JFIFHolder.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg; 34 | 35 | /** 36 | * 37 | */ 38 | public class JFIFHolder { 39 | 40 | public int majorNo; 41 | public int minorNo; 42 | public int xDensity; 43 | public int yDensity; 44 | public int densityUnits; 45 | public int thumbnailWidth; 46 | public int thumbnailHeight; 47 | public byte[] thumbnailData; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/DeletePropertiesOnExit.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * DeletePropertiesOnExit.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.examples.viewer.gui.*; 36 | 37 | /** 38 | * 39 | */ 40 | public class DeletePropertiesOnExit { 41 | 42 | public static void execute(final Object[] args) { 43 | if (args == null) { 44 | // 45 | } else { 46 | 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/Toggle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Toggle.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.*; 36 | 37 | /** 38 | * 39 | */ 40 | public class Toggle { 41 | 42 | public static void execute(final Object[] args, final PdfDecoderInt decode_pdf) { 43 | 44 | if (args == null) { 45 | // 46 | // 47 | } else { 48 | 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/RenderChangeListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * RenderChangeListener.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | 36 | public interface RenderChangeListener { 37 | 38 | /**Fired when rendering starts.*/ 39 | void renderingStarted(int pageNumber); 40 | 41 | /**Fired when rendering ends.*/ 42 | void renderingEnded(int pageNumber); 43 | 44 | /**called in MultiDisplay and called after decodeOtherPages(int pageNumber, int pageCount) */ 45 | void renderingWorkerFinished(); 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/generic/GUIButton.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * GUIButton.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.gui.generic; 34 | 35 | import java.net.URL; 36 | 37 | /**abstract button object into interface*/ 38 | public interface GUIButton { 39 | 40 | void init(URL path, int i, String message); 41 | 42 | void setVisible(boolean b); 43 | 44 | void setEnabled(boolean b); 45 | 46 | void setIcon(URL url); 47 | 48 | int getID(); 49 | 50 | void setName(String string); 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/PrecinctInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PrecinctInfo.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | */ 38 | public class PrecinctInfo { 39 | 40 | public int precinctWidth; 41 | public int precinctHeight; 42 | public int numPrecinctsWide; 43 | public int numPrecinctsHigh; 44 | public int numPrecincts; 45 | public int precinctWidthInSubband; 46 | public int precinctHeightInSubband; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/constants/ErrorCodes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ErrorCodes.java 31 | * --------------- 32 | */ 33 | package org.jpedal.constants; 34 | 35 | 36 | public class ErrorCodes { 37 | 38 | public static final int JSInvalidFormat=1; 39 | 40 | public static final int JSInvalidDateFormat=2; 41 | 42 | public static final int JSInvalidRangeFormat=3; 43 | 44 | public static final int JSInvalidNumberFormat=4; 45 | 46 | public static final int JSInvalidPercentFormat=5; 47 | 48 | public static final int JSInvalidSpecialFormat=6; 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/T3Renderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * T3Renderer.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render; 34 | 35 | import org.jpedal.color.PdfPaint; 36 | 37 | public interface T3Renderer extends DynamicVectorRenderer { 38 | 39 | /** 40 | * use by type3 fonts to differentiate images in local store 41 | */ 42 | void setType3Glyph(String pKey); 43 | 44 | /** 45 | * used by type 3 glyphs to set colour 46 | */ 47 | void lockColors(PdfPaint strokePaint, PdfPaint nonstrokePaint, boolean lockColour); 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/FontHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * FontHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | import org.jpedal.fonts.PdfFont; 36 | import org.jpedal.io.PdfObjectReader; 37 | import org.jpedal.objects.raw.PdfObject; 38 | import org.jpedal.render.DynamicVectorRenderer; 39 | 40 | /** 41 | * 42 | * @author markee 43 | */ 44 | public interface FontHandler { 45 | 46 | void processFont(boolean isHTML, PdfFont restoredFont, DynamicVectorRenderer current, PdfObject newFont, PdfObjectReader currentPdfFile); 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/BlockData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * BlockData.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | * 38 | */ 39 | public class BlockData { 40 | 41 | /** 42 | * 43 | */ 44 | public byte[] data; 45 | 46 | /** 47 | * 48 | */ 49 | public int start; 50 | 51 | /** 52 | * 53 | */ 54 | public int end; 55 | 56 | /** 57 | * 58 | */ 59 | public byte nCodingPass; 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/AutoScroll.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * AutoScroll.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.gui.GUIFactory; 36 | 37 | /** 38 | * togglesAutoScrolling on or off for Viewer 39 | */ 40 | public class AutoScroll { 41 | 42 | public static void execute(final Object[] args, final GUIFactory currentGUI) { 43 | if (args == null) { 44 | currentGUI.toogleAutoScrolling(); 45 | } else { 46 | 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/gui/ViewerInt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ViewerInt.java 31 | * --------------- 32 | */ 33 | package org.jpedal.gui; 34 | 35 | import org.jpedal.objects.PdfPageData; 36 | 37 | import java.util.Map; 38 | 39 | public interface ViewerInt { 40 | void resetPrintData(); 41 | 42 | byte[] getPrintData(); 43 | 44 | //Hotspots getPrintHotspots(); 45 | 46 | //Map getUserIconsForPrinting(); 47 | 48 | //void deserializeHotspotData(final byte[] hotspotData, boolean b) throws IOException, ClassNotFoundException; 49 | 50 | PdfPageData getPageData(); 51 | 52 | Map getFontList(); 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/io/filter/PdfFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PdfFilter.java 31 | * --------------- 32 | */ 33 | package org.jpedal.io.filter; 34 | 35 | import java.io.BufferedInputStream; 36 | import java.io.BufferedOutputStream; 37 | import java.util.Map; 38 | 39 | /** 40 | * Filters to decompress streams 41 | */ 42 | public interface PdfFilter { 43 | 44 | byte[] decode(byte[] data) throws Exception; 45 | 46 | void decode(BufferedInputStream bis, BufferedOutputStream streamCache, String cacheName, Map cachedObjects) throws Exception; 47 | 48 | boolean hasError(); 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg/Info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Info.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg; 34 | 35 | /** 36 | * 37 | * @author suda 38 | */ 39 | public class Info { 40 | 41 | public int width; 42 | public int height; 43 | public JFIFHolder jfif; 44 | public AdobeHolder adobe; 45 | // public List components = new ArrayList(); 46 | public int nComp; 47 | public int maxV; 48 | public int maxH; 49 | public int maxLineX; 50 | public Frame frame; 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/CodeBlockInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * CodeBlockInfo.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | * 38 | */ 39 | public class CodeBlockInfo { 40 | 41 | /** 42 | * 43 | */ 44 | public int codeBlockWidth; 45 | 46 | /** 47 | * 48 | */ 49 | public int codeBlockHeight; 50 | 51 | /** 52 | * 53 | */ 54 | public int numCodeBlockWide; 55 | 56 | /** 57 | * 58 | */ 59 | public int numCodeBlockHigh; 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/MouseMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * MouseMode.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer; 34 | 35 | /** 36 | * tracks option for our Viewer 37 | */ 38 | public class MouseMode { 39 | 40 | public static final int MOUSE_MODE_TEXT_SELECT = 0; 41 | 42 | public static final int MOUSE_MODE_PANNING = 1; 43 | 44 | int mouseMode; 45 | 46 | 47 | public int getMouseMode() { 48 | return mouseMode; 49 | } 50 | 51 | public void setMouseMode(final int mouseMode) { 52 | this.mouseMode = mouseMode; 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/display/MultiPagesDisplay.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * MultiPagesDisplay.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.display; 35 | 36 | import org.jpedal.render.DynamicVectorRenderer; 37 | 38 | /** 39 | * 40 | * @author markee 41 | */ 42 | public interface MultiPagesDisplay extends Display { 43 | 44 | 45 | int getDisplayRotation(); 46 | 47 | void setCurrentDisplay(DynamicVectorRenderer currentDisplay); 48 | 49 | int getRx(); 50 | 51 | int getRw(); 52 | 53 | int getRh(); 54 | 55 | int getInsetW(); 56 | 57 | int getInsetH(); 58 | 59 | int getRy(); 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/generic/GUILayersPanel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * GUILayersPanel.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.examples.viewer.gui.generic; 35 | 36 | import org.jpedal.PdfDecoderInt; 37 | import org.jpedal.objects.layers.PdfLayerList; 38 | 39 | /** 40 | * 41 | * @author Simon 42 | */ 43 | public interface GUILayersPanel { 44 | void reinitialise(PdfLayerList layersObject, PdfDecoderInt decode_pdf, 45 | Object scrollPane, int currentPage); 46 | 47 | void rescanPdfLayers(); 48 | 49 | void resetLayers(); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/Preferences.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Preferences.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.examples.viewer.gui.popups.SwingProperties; 36 | import org.jpedal.gui.GUIFactory; 37 | 38 | /** 39 | * Shows the Preferences Dialog Box 40 | */ 41 | public class Preferences { 42 | 43 | public static void execute(final Object[] args, final GUIFactory currentGUI) { 44 | if (args == null) { 45 | new SwingProperties(currentGUI); 46 | } else { 47 | 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/CurrentPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * CurrentPage.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.PdfDecoderInt; 36 | import org.jpedal.gui.GUIFactory; 37 | 38 | /** 39 | * 40 | */ 41 | public class CurrentPage { 42 | 43 | public static Object execute(final PdfDecoderInt decode_pdf, final GUIFactory currentGUI) { 44 | 45 | Object status=-1; 46 | 47 | if (decode_pdf != null) { 48 | status=currentGUI.getValues().getCurrentPage(); 49 | } 50 | 51 | return status; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/io/RandomAccessBuffer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * RandomAccessBuffer.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.io; 35 | 36 | import java.io.IOException; 37 | 38 | public interface RandomAccessBuffer { 39 | 40 | long getFilePointer() throws IOException; 41 | void seek(long pos) throws IOException; 42 | @SuppressWarnings("UnusedDeclaration") 43 | int read() throws IOException; 44 | String readLine() throws IOException; 45 | long length() throws IOException; 46 | void close() throws IOException; 47 | @SuppressWarnings("UnusedReturnValue") 48 | int read(byte[] b) throws IOException; 49 | byte[] getPdfBuffer(); 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/utils/BrowserLauncher.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * BrowserLauncher.java 31 | * --------------- 32 | */ 33 | package org.jpedal.utils; 34 | 35 | import java.net.URI; 36 | 37 | 38 | /** 39 | * Browser Launcer is a Class with one method, 40 | * pass in the URL string that you want to open in 41 | * the systems default browser window. 42 | */ 43 | public class BrowserLauncher { 44 | 45 | /* 46 | * method to be able to open urls in browsers. 47 | */ 48 | public static void openURL(final String url) throws Exception { 49 | java.awt.Desktop.getDesktop().browse(new URI(url)); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/ErrorTracker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ErrorTracker.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | /** 36 | * 37 | * @author markee 38 | */ 39 | @SuppressWarnings("ALL") 40 | public interface ErrorTracker { 41 | 42 | public void addPageFailureMessage(String memory_error_decoding_token_stream); 43 | 44 | public String getPageFailureMessage(); 45 | 46 | public boolean ispageSuccessful(); 47 | 48 | public boolean checkForExitRequest(int dataPointer, int streamSize); 49 | 50 | public void finishedPageDecoding(int rawPage); 51 | 52 | public void startedPageDecoding(int rawPage); 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/creation/SwingFormCreator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * SwingFormCreator.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.acroforms.creation; 34 | 35 | import org.jpedal.objects.acroforms.GUIData; 36 | import org.jpedal.objects.acroforms.SwingData; 37 | 38 | /** 39 | * 40 | * @author markee 41 | */ 42 | public class SwingFormCreator { 43 | 44 | public GUIData getData() { 45 | return new SwingData(); 46 | } 47 | 48 | /** 49 | * create appropriate FormFactory 50 | */ 51 | public FormFactory createFormFactory() { 52 | return new SwingFormFactory(); 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/javascript/JSParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JSParser.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.javascript; 34 | 35 | 36 | import org.jpedal.objects.acroforms.AcroRenderer; 37 | import org.jpedal.objects.raw.FormObject; 38 | 39 | 40 | public interface JSParser { 41 | 42 | void execute(String js, FormObject form, AcroRenderer acro); 43 | 44 | void flush(); 45 | 46 | void addCode(String value); 47 | 48 | void setJavaScriptEnded(); 49 | 50 | void executeJS(String code, FormObject ref, AcroRenderer acro); 51 | 52 | void flushJS(); 53 | 54 | Object generateJStype(String textString, boolean b); 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/PageCount.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PageCount.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.PdfDecoderInt; 36 | 37 | /** 38 | * Count the number of pages the current document in the Viewer has 39 | */ 40 | public class PageCount { 41 | 42 | public static Object execute(final PdfDecoderInt decode_pdf) { 43 | 44 | final Object status; 45 | 46 | if (decode_pdf == null) { 47 | status = -1; 48 | } else { 49 | status = decode_pdf.getPageCount(); 50 | } 51 | 52 | return status; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/FXDisplayForRasterizing.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * FXDisplayForRasterizing.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render; 34 | 35 | import org.jpedal.io.ObjectStore; 36 | import org.jpedal.utils.repositories.generic.Vector_Rectangle_Int; 37 | 38 | 39 | public class FXDisplayForRasterizing extends FXDisplay { 40 | 41 | public FXDisplayForRasterizing(final int pageNumber, final boolean addBackground, final int defaultSize, final ObjectStore newObjectRef) { 42 | 43 | super(pageNumber, addBackground, defaultSize, newObjectRef); 44 | 45 | //setupArrays(defaultSize); 46 | areas = new Vector_Rectangle_Int(defaultSize); 47 | } 48 | 49 | 50 | } -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/TreeNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * TreeNode.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | /** 36 | * 37 | */ 38 | public class TreeNode { 39 | 40 | public int index; 41 | public final int width; 42 | public final int height; 43 | public final int[] items; 44 | 45 | public TreeNode(int width, int height){ 46 | this.width = width; 47 | this.height = height; 48 | int dim = width*height; 49 | items = new int[dim]; 50 | for (int i = 0; i < dim; i++) { 51 | items[i] = -1; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/FXAdditionalData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * FXAdditionalData.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.examples.viewer.gui; 35 | 36 | /** 37 | * 38 | * @author markee 39 | */ 40 | public class FXAdditionalData { 41 | 42 | private int[] type; 43 | private Object[] obj; 44 | 45 | public int[] getType() { 46 | return type; 47 | } 48 | 49 | public void setType(int[] type) { 50 | this.type = type; 51 | } 52 | 53 | public Object[] getObj() { 54 | return obj; 55 | } 56 | 57 | public void setObj(Object[] obj) { 58 | this.obj = obj; 59 | } 60 | 61 | 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/AnnotationHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * AnnotationHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | import org.jpedal.io.PdfObjectReader; 36 | 37 | import java.util.Map; 38 | import org.jpedal.PdfDecoderInt; 39 | 40 | public interface AnnotationHandler { 41 | 42 | /**called when each page created*/ 43 | void handleAnnotations(PdfDecoderInt decode_pdf, Map objs, int p); 44 | 45 | /**called when mouse moves so you can react to context*/ 46 | void checkLinks(Map objs, boolean mouseClicked, PdfObjectReader pdfObjectReader, int x, int y, org.jpedal.gui.GUIFactory currentGUI, org.jpedal.examples.viewer.Values commonValues); 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/javafx/JavaFXMouseFunctionality.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JavaFXMouseFunctionality.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.gui.javafx; 34 | 35 | import javafx.scene.input.MouseEvent; 36 | 37 | @SuppressWarnings("UnusedParameters") 38 | public interface JavaFXMouseFunctionality { 39 | 40 | void mouseClicked(MouseEvent e); 41 | 42 | void mouseEntered(MouseEvent e); 43 | 44 | void mouseExited(MouseEvent e); 45 | 46 | void mousePressed(MouseEvent e); 47 | 48 | void mouseReleased(MouseEvent e); 49 | 50 | void mouseDragged(MouseEvent e); 51 | 52 | void mouseMoved(MouseEvent e); 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/ColorHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ColorHandler.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | import org.jpedal.color.PdfPaint; 36 | 37 | import java.awt.*; 38 | import java.awt.image.BufferedImage; 39 | 40 | @SuppressWarnings("UnusedParameters") 41 | public interface ColorHandler { 42 | 43 | //allow user to control how color set when rendering (ie to produce grayscale or bw) 44 | void setPaint(Graphics2D g2, PdfPaint textFillCol, int pageNumber, boolean isPrinting); 45 | 46 | //allow user to process images before drawn (ie to convert to bw or grayscale) 47 | BufferedImage processImage(BufferedImage image, int pageNumber, boolean isPrinting); 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/TileComponent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * TileComponent.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | import java.util.ArrayList; 36 | import java.util.List; 37 | 38 | /** 39 | * 40 | */ 41 | public class TileComponent { 42 | 43 | public int x0; 44 | public int y0; 45 | public int x1; 46 | public int y1; 47 | 48 | public final List resolutions = new ArrayList(); 49 | 50 | public double getWidth() { 51 | return (x1 - x0); 52 | } 53 | 54 | public double getHeight() { 55 | return (y1 - y0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/javafx/JavaFXFullScreen.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JavaFXFullScreen.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.examples.viewer.commands.javafx; 35 | 36 | import javafx.stage.Stage; 37 | import org.jpedal.gui.GUIFactory; 38 | 39 | /** 40 | * Toggles between FullScreen. 41 | */ 42 | public class JavaFXFullScreen { 43 | 44 | private static boolean toggler = true; 45 | 46 | public static void execute(final Object[] args, final GUIFactory currentGUI) { 47 | if (args == null) { 48 | ((Stage)currentGUI.getFrame()).setFullScreen(toggler); 49 | toggler = !toggler; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/generic/GUICombo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * GUICombo.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.gui.generic; 34 | 35 | /**abstract version of ComboBox*/ 36 | 37 | public interface GUICombo { 38 | 39 | void setSelectedIndex(int defaultSelection); 40 | 41 | void setEditable(boolean b); 42 | 43 | void setID(int id); 44 | 45 | void setToolTipText(String tooltip); 46 | 47 | void setEnabled(boolean value); 48 | 49 | int getSelectedIndex(); 50 | 51 | void setSelectedItem(Object index); 52 | 53 | Object getSelectedItem(); 54 | 55 | int getID(); 56 | 57 | void setVisibility(boolean set); 58 | 59 | void setName(String name); 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/fonts/glyph/PdfGlyphs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PdfGlyphs.java 31 | * --------------- 32 | */ 33 | package org.jpedal.fonts.glyph; 34 | 35 | import java.awt.geom.Area; 36 | 37 | /** 38 | * generic holder for glyph data 39 | */ 40 | public interface PdfGlyphs { 41 | Area getStandardGlyph(float[][] trm, int rawInt, String displayValue, 42 | float currentWidth, boolean isSTD); 43 | 44 | PdfGlyph getEmbeddedGlyph(GlyphFactory factory, String charGlyph, float[][] trm, int rawInt, String displayValue, float currentWidth,String key); 45 | 46 | String getBaseFontName(); 47 | 48 | String getDisplayValue(Integer key); 49 | 50 | String getCharGlyph(Integer key); 51 | 52 | String getEmbeddedEnc(Integer key); 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/idrsolutions/image/jpeg2000/TileResolution.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * TileResolution.java 31 | * --------------- 32 | */ 33 | package com.idrsolutions.image.jpeg2000; 34 | 35 | import java.util.ArrayList; 36 | import java.util.List; 37 | 38 | /** 39 | * 40 | */ 41 | public class TileResolution { 42 | 43 | public int x0; 44 | public int y0; 45 | public int x1; 46 | public int y1; 47 | public PrecinctInfo precinctInfo; 48 | public final List tileBands = new ArrayList(); 49 | 50 | public int getWidth() { 51 | return (x1 - x0); 52 | } 53 | 54 | public int getHeight() { 55 | return (y1 - y0); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/Scaling.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Scaling.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import java.awt.Point; 36 | import java.awt.Rectangle; 37 | import javax.swing.SwingUtilities; 38 | import org.jpedal.*; 39 | import org.jpedal.examples.viewer.Values; 40 | import org.jpedal.examples.viewer.gui.*; 41 | import org.jpedal.gui.GUIFactory; 42 | 43 | /** 44 | * 45 | */ 46 | public class Scaling { 47 | 48 | public static void execute(final Object[] args, final Values commonValues, final PdfDecoderInt decode_pdf, final GUIFactory currentGUI, final ViewStack viewStack) { 49 | 50 | // 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/output/io/ImageFileType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ImageFileType.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render.output.io; 34 | 35 | public enum ImageFileType { 36 | JPG(".jpg", "JPG"), 37 | PNG(".png", "PNG"); 38 | 39 | private final String ioType; 40 | private final String fileExtension; 41 | 42 | ImageFileType(final String fileExtension, final String ioType) { 43 | this.fileExtension = fileExtension; 44 | this.ioType = ioType; 45 | } 46 | 47 | public String getFileExtension() { 48 | return fileExtension; 49 | } 50 | 51 | public String getIoType() { 52 | return ioType; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/gui/javafx/JavaFXID.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JavaFXID.java 31 | * --------------- 32 | */ 33 | 34 | package org.jpedal.examples.viewer.gui.javafx; 35 | 36 | import javafx.event.ActionEvent; 37 | import javafx.event.EventHandler; 38 | 39 | public interface JavaFXID { 40 | 41 | /** 42 | * @return the iD 43 | */ 44 | int getID(); 45 | 46 | /** 47 | * @param id the iD to set 48 | */ 49 | void setID(int id); 50 | 51 | void setToolTipText(String text); 52 | 53 | /** 54 | * Call this method instead of addActionListener for JavaFX 55 | * @param eh 56 | */ 57 | void setOnAction(EventHandler eh); 58 | 59 | } 60 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/parser/DecodeStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * DecodeStatus.java 31 | * --------------- 32 | */ 33 | package org.jpedal.parser; 34 | 35 | /* 36 | * flags which can return values after page decode 37 | */ 38 | public class DecodeStatus { 39 | 40 | /**indicate if last decodePage() call had any issues*/ 41 | public static final int PageDecodingSuccessful=1; 42 | 43 | public static final int ImagesProcessed=2; 44 | 45 | public static final int NonEmbeddedCIDFonts=4; 46 | 47 | public static final int YCCKImages=8; 48 | 49 | /**whether any fonts will almost certainly need hinting turned on*/ 50 | public static final int TTHintingRequired=32; 51 | 52 | public static final int TooManyShapes=64; 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/ImageHelper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * ImageHelper.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | import org.jpedal.exception.PdfException; 36 | 37 | import java.awt.image.BufferedImage; 38 | import java.awt.image.Raster; 39 | import java.io.IOException; 40 | 41 | public interface ImageHelper { 42 | 43 | BufferedImage read(byte[] data) throws IOException; 44 | 45 | void write(BufferedImage image, String type, String file_name) throws IOException; 46 | 47 | BufferedImage read(String file_name); 48 | 49 | Raster readRasterFromJPeg(byte[] data) throws IOException; 50 | 51 | BufferedImage JPEG2000ToRGBImage(byte[] data, int w, int h, float[] decodeArray, int pX, int pY) throws PdfException; 52 | 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/PdfClip.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * PdfClip.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects; 34 | 35 | /** 36 | * Code for storing and modifying the current clip held in the GraphicsState. 37 | */ 38 | public interface PdfClip { 39 | 40 | /** 41 | * Updates the clip by adding the passed in shape to the clip. 42 | * 43 | * @param path The path to be added to the clip 44 | * @return Whether the clip has been changed 45 | */ 46 | boolean updateClip(Object path); 47 | 48 | /** 49 | * Gets the current clipping shape. Must be cast to the appropriate object. 50 | * @return 51 | */ 52 | Object getClippingShape(); 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/Reset.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Reset.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.PdfDecoderInt; 36 | import org.jpedal.examples.viewer.Values; 37 | 38 | /** 39 | * 40 | */ 41 | public class Reset { 42 | 43 | public static void execute(final Object[] args, final Values commonValues, final PdfDecoderInt decode_pdf) { 44 | 45 | if (args == null) { 46 | decode_pdf.resetViewableArea(); 47 | commonValues.viewportScale = 1; 48 | commonValues.dx = 0; 49 | commonValues.dy = 0; 50 | commonValues.maxViewY = 0; 51 | } else { 52 | 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/external/OffsetOptions.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * OffsetOptions.java 31 | * --------------- 32 | */ 33 | package org.jpedal.external; 34 | 35 | /** 36 | * flags to allow user to set offset in display or print 37 | */ 38 | public class OffsetOptions { 39 | 40 | public static final int DISPLAY =0 ; 41 | 42 | public static final int PRINTING =1 ; 43 | 44 | /** 45 | * Internal values - please do not use. 46 | */ 47 | public static final int INTERNAL_DRAG_BLANK = 995; 48 | public static final int INTERNAL_DRAG_CURSOR_TOP_LEFT = 996; 49 | public static final int INTERNAL_DRAG_CURSOR_TOP_RIGHT = 997; 50 | public static final int INTERNAL_DRAG_CURSOR_BOTTOM_LEFT = 998; 51 | public static final int INTERNAL_DRAG_CURSOR_BOTTOM_RIGHT = 999; 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/objects/acroforms/javafx/JavaFXFormCreator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * JavaFXFormCreator.java 31 | * --------------- 32 | */ 33 | package org.jpedal.objects.acroforms.javafx; 34 | 35 | import org.jpedal.objects.acroforms.GUIData; 36 | import org.jpedal.objects.acroforms.creation.FormFactory; 37 | import org.jpedal.objects.acroforms.creation.SwingFormCreator; 38 | 39 | /** 40 | * 41 | * @author markee 42 | */ 43 | public class JavaFXFormCreator extends SwingFormCreator { 44 | 45 | @Override 46 | public GUIData getData() { 47 | return new JavaFXData(); 48 | } 49 | 50 | 51 | /** 52 | * create appropriate FormFactory 53 | */ 54 | @Override 55 | public FormFactory createFormFactory() { 56 | return new JavaFXFormFactory(); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/render/output/FontMapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * FontMapper.java 31 | * --------------- 32 | */ 33 | package org.jpedal.render.output; 34 | 35 | public interface FontMapper { 36 | 37 | /** 38 | * how to handle fonts 39 | */ 40 | //public static final int IGNORE = 1; 41 | int FAIL_ON_UNMAPPED = 2; 42 | int DEFAULT_ON_UNMAPPED = 3; 43 | //public static final int EMBED_UNKNOWN_AS_IMAGE = 4; 44 | //public static final int EMBED_UNKNOWN_WITH_FONT = 5; 45 | int EMBED_ALL = 6; 46 | int EMBED_ALL_EXCEPT_BASE_FAMILIES = 7; 47 | 48 | String getFont(); 49 | 50 | String getWeight(); 51 | 52 | String getStyle(); 53 | 54 | boolean isFontEmbedded(); 55 | 56 | boolean equals(FontMapper fontMapper); 57 | 58 | boolean isFontSubstituted(); 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/sun/JaiI18N.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved. 3 | * 4 | * Redistribution and use in source and binary forms, with or without 5 | * modification, are permitted provided that the following conditions are met: 6 | * 7 | * -Redistributions of source code must retain the above copyright notice, this 8 | * list of conditions and the following disclaimer. 9 | * 10 | * -Redistribution in binary form must reproduct the above copyright notice, 11 | * this list of conditions and the following disclaimer in the documentation 12 | * and/or other materials provided with the distribution. 13 | * 14 | * Neither the name of Sun Microsystems, Inc. or the names of contributors may 15 | * be used to endorse or promote products derived from this software without 16 | * specific prior written permission. 17 | * 18 | * This software is provided "AS IS," without a warranty of any kind. ALL 19 | * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY 20 | * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR 21 | * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE 22 | * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING 23 | * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS 24 | * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, 25 | * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER 26 | * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF 27 | * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE 28 | * POSSIBILITY OF SUCH DAMAGES. 29 | * 30 | * You acknowledge that Software is not designed,licensed or intended for use in 31 | * the design, construction, operation or maintenance of any nuclear facility. 32 | */ 33 | package org.jpedal.sun; 34 | class JaiI18N 35 | { 36 | public static String getString( final String key ) 37 | { 38 | return PropertyUtil.getString( key ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/org/jpedal/examples/viewer/commands/Buy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * =========================================== 3 | * Java Pdf Extraction Decoding Access Library 4 | * =========================================== 5 | * 6 | * Project Info: http://www.idrsolutions.com 7 | * Help section for developers at http://www.idrsolutions.com/support/ 8 | * 9 | * (C) Copyright 1997-2015 IDRsolutions and Contributors. 10 | * 11 | * This file is part of JPedal/JPDF2HTML5 12 | * 13 | This library is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU Lesser General Public 15 | License as published by the Free Software Foundation; either 16 | version 2.1 of the License, or (at your option) any later version. 17 | 18 | This library is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 | Lesser General Public License for more details. 22 | 23 | You should have received a copy of the GNU Lesser General Public 24 | License along with this library; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 | 27 | 28 | * 29 | * --------------- 30 | * Buy.java 31 | * --------------- 32 | */ 33 | package org.jpedal.examples.viewer.commands; 34 | 35 | import org.jpedal.gui.GUIFactory; 36 | import org.jpedal.utils.BrowserLauncher; 37 | 38 | /** 39 | * Code to handle Buy button we display in demo versions of Viewer 40 | */ 41 | public class Buy { 42 | 43 | public static void execute(final Object[] args, final GUIFactory currentGUI) { 44 | if (args == null) { 45 | try { 46 | BrowserLauncher.openURL("http://www.idrsolutions.com/jpedal-pricing/"); 47 | } catch (final Exception e1) { 48 | currentGUI.showMessageDialog("Please visit http://www.idrsolutions.com/jpedal-pricing/"); 49 | // 50 | } 51 | } 52 | } 53 | } 54 | --------------------------------------------------------------------------------