Ann: WPViewPDF Version V3.07.0 - for Delphi, .NET + ActiveX

    • Offizieller Beitrag

    WPViewPDF is a component that allows you to load one or multiple PDF files and to display or print it/them as one.

    It is possible to export pages as bitmaps (PNG, JPEG) or as text. It is possible to add drawings which will be displayed and printed on top of the original data. The drawing objects can be moved and sized by the programmer in code or by the user in the end product.

    With WPViewPDF PLUS you can also add graphics and images to the PDF data (stamp PDF). It is possible to combine several PDF files into one new file (merge PDF). It is also possible to save selected pages (extract pages) or delete certain pages. It is possible to change field data, for example to merge data to fill out forms.

    Version 3 is the result of extensive work. The logic required to load, render and manipulate PDF data was completely reinvented to create this new version. It makes use of clever and effective caching for quick response times. It also makes use of multithreading for better user interaction.

    The PrintHDC method was revised and, as a result, printing to any Windows device is now much easier and produces a higher quality printout.

    The multithreaded scrolling viewer can quickly change between zoom states and various layout modes, including multi-column display and side-by-side page layout. It can also display a _separate thumbnail view_ to the PDF.

    Unlike version 1 and 2, version 3 uses floating point numbers for graphic output. This offers better print results for many PDF files. Even with the higher text rendering quality, printing is faster since less data has to be transferred to the printer. Embedded fonts are completely supported.

    Version 3 PLUS introduces a new stamping method which allows it to place objects or highlighting rectangles on the page. This objects can be moved and sized by the user. The scripted stamping was also implemented because it facilitates the addition of titles or page numbers to a range of pages.

    Pages can be selected and dragged to a new location.

    Text extraction can now also create text in rich text format (RTF) - here the logic makes use of PDF tags to keep text together which belongs together.

    PDF features supported:
    - new support for embedded Type3 fonts
    - new separation color space (Type 0, 2 and 4)
    - new LAB color space
    - new DeviceN color space
    - encrypted PDFs
    - PDFs with compressed XREF tables
    - better support for JPEG format (YAAC)
    - better annotation support

    Optionally an external converter program can be set up, i.e. jbig2dec, in order to decode images compressed using JBIG2. (The decoder program is not included)

    With WPViewPDF you get a VCL, an ActiveX and a .NET component in one reasonably priced package. It is updated regularly and, since it is based on a DLL, updating works effectively and a new build of your application is not necessary.

    The Demo Setup can be downloaded here:
    https://www.wpcubed.com/ftp/PDFViewDemo.zip
    This setup contains the DLL and the VCL for Delphi and sample projects.

    Regards,
    Julian Ziersch
    WPCubed GmbH
    https://www.wpcubed.com

    • Offizieller Beitrag

    The new build V3.00.3 adds this new features:

    + support printing of multiple pages on one paper sheet. To activate use COMPDF_PrintUseScaling.

    - improved display of images which are build up from very small bitmap elements

    + now it is possible to move a shape to a different page. See wpModifyExistingObj.

    + it is possible to delete a named shape

    It includes several improvements and optimations to the painting routine. Type3 fonts are rendered better.

    • Offizieller Beitrag

    16.5.2011: V3.0.6
    - fix for character set decoding problem
    - new code to display highlighted text (find method)
    + new possibility to draw highlighting rectangles on page
    + new DLL function to read info items from PDF

    13.5.2011: V3.0.5
    + The DLL exports a new function: pdfGetInfoW. It makes it possible to quickly read a PDF file info items.
    * modification to scroller control to allocate less memory as buffer
    - some improvements to printing code
    - fix to handling of images with alpha channel

    • Offizieller Beitrag

    1.6.2011: V3.0.7
    + we now include a .NET wrapper (full version includes source)
    - fixed problem with locating PDF resources
    - fixed problem with charsets
    * Delphi Demos are now installed in directory Demos.VCL
    - fixed problem with command COMPDF_ShowGotoPage
    - fixed problem with command COMPDF_GotoYPos


    23.5.2011: V3.0.6c
    - fixed problem: sometimes an italic font was used instead of the regular.
    * implements work around for one mistake found in some XREF tables.
    * improves XREF reconstruction
    - fix bug: info items retrieved from a PDF file were not provided as unicodes

    • Offizieller Beitrag

    10.6.2011: V3.0.8
    + new command: COMPDF_GotoNamedDest can be used to jump to a named destination
    + new command: COMPDF_DrawObjectLocateAtXY read the name of a draw object at the mouse position or a given x,y position.
    - fixed bug in CCITT decoding method and added possibility to skip incomplete data in G3 decoded images
    - fixed problem in outline handling (jumps)
    - fixed problem with clicks on scrollbars
    * improved saving of PDF, which now better preserves PDFA Information
    * the Delphi unit WPViewPDF3 now always included PDFLicense.INC and uses the license keys.
    - fix for command COMPDF_GotoPrev - it didn't work on last page

    13.6.2011: V3.0.8'
    - An ActiveX for VisualBasic 6 is now included.

    • Offizieller Beitrag

    A new build is online now:

    4.7.2011: V3.01.2
    * COMPDF_GotoYPos used coordinates of current page. This has been changed. It now uses the absolute coordinates from top of text as it worked in V2
    + COMPDF_GotoPage can now use an optional string parameter which is used as y or x,y coordinate in 72 dpi world, and optionally, after %, the zoom value
    - PrintRenderer now handles stencil images correctly. (fix problem with inverted images)
    - pdfPrint option to send ESCAPE codes should now work
    - fix in save routine - Colorspace property and Annotation were sometimes not saved correctly which caused problems in Acrobat Reader
    - when merging PDF files setting the info items now works
    - setting the paper bin when printing now works (COMPDF_SelectPrinterBin0)

    29.6.2011: V3.01.1
    - pdfPrint did not work properly.
    - page ranges ("1-3") were not correctly interpreted. They are now always 1 based, as it was in WPViewPDF V2. (see Page rotation)
    - MakeBitmap now always rotates according to page setting
    - updated PDFView demo (Delphi)
    - ViewOption "ShowDeletionCross" now works. If active, deleted pages will not be hidden but crossed out.

    28.6.2011: V3.01.0
    * MSGPDF_CHANGESELPAGE is now sent when user changes page selection
    * zooming now tries to maintain the position in the text - the same line should be displayed in the middle of the window. This also works with
    MouseWheel zooming with ctrl key - here the position at the mouse pointer is locked.

    • Offizieller Beitrag

    A new release V3.01.5 is now available.

    With the PLUS edition it is now possible to move pages in a PDF file.

    You can either add a menu to select the page number where the selected pages should moved to, or the user can interactively move the pages by drag&drop:

    When using the PDFView demo, please use the right mouse button move and drag the pages.

    Regards,
    WPCubed GmbH

    • Offizieller Beitrag

    A new release V3.1.07 can now be downloaded.

    It fixes a number of rendering and PDF problems.

    30.8.2011: V3.01.7'
    - improvement to image decoding and rendering
    + COMPDF_PrinterSetMediatype can be used to set the MediyType identifier for the
    printout. pdfPrint uses option MEDIATYPE=N
    - LoadFromFileAsCopy was working like LoadFromFile (and locking the file)
    - fix problem with certain encrypted PDFs which use an empty password
    * fix problem decoding monochrome images which used an unusual colorspace syntax
    - fix to handle the rotated pages some HP scanner write in PDF file
    - fix to handle named color spaces
    - fix in GDI+ renderer to set font name correctly
    + when using SaveSelectionToStream it is now possible to spcify a range of pages in the
    FileExt parameter. The syntax is "range;PDF"
    4.8.2011: V3.01.6
    - fix in CCITT image decoding code
    - fix in decoding indexed image code
    - move pages method did not move deleted pages correctly

    • Offizieller Beitrag

    23.10.2011: V3.02.0
    + much improved for Type3 fonts with optimization for bitmap types.
    - fixes problem for some PDF files which use encryption
    - some fixes in PDF stream loading method
    + added hints to zoom panel (bottom right). Use COMPDF_SetShowHint,1,'1' to activate.

    30.9.2011: V3.01.9'
    - fix problem with display of some text which were using symbols encoded as unicode
    - fix problem when saving files containing special colorspace references
    - fix problem: image draw objects where using image ID+1. (COMPDF_MouseAddOneDrawObject)

    20.9.2011: V3.01.9
    + CheckOwnerPassword can be used to pass owner password to lift save restrictions. TRUE is returned if the password was accepted.
    - fix problem with streams in certain PDF files (problem was introduced in 3.01.7)

    16.9.2011: V3.01.8
    Replaced wp_type1ttf.dll - it was using MFC DLL.

    8.9.2011: V3.01.8
    * wp_type1ttf.dll now compiled from new freetype V2.4.6
    * increased resolution of font renderer - improves display of bar-fonts
    - improved vector rendering
    + when using SaveSelectionToStream it is now possible to specify a range of pages in the FileExt parameter. The syntax is "range;PDF". Rage is 1 based, i.e. 1-1
    + VCL: Added Plus.SavePagesToFile(filename, from, to). from and to is 0 based.
    - fix problem with indexed images which used transparancy mask (caused red shading over barcodes)

    • Offizieller Beitrag

    13.11.2011 - new version V3.02.2

    * The image handling has been changed to prepare and improve performance and support for different color spaces.

    + embedded JBIG2 data (JBIG2Decode) can now be decoded by external tool. Please use the command COMPDF_SetJBIG2Tool to initialize a plugin.

    + new color space handling

    + support for LAB colors in Images and on pages

    + added 3000 unicode names for conversion

    - fix problem with character code #0 used inside text

    - fix problem with certain image masks

    • Offizieller Beitrag

    17.11.2011: V3.02.3

    + added support for separation color type 0 (much improved display of many government forms)

    + when using StampText you can change the origin of the coordinates,
    create roman page numbering and use page offset

    * improved Type3 font support (avoids wrong recursion)

    - improved postscript path handling

    - fix problem with scrolling after search operation

    - trigger OnChangePage event when scrolling text

    - fix exception after right click in bookmark viewer

    • Offizieller Beitrag

    7.12.2011: V3.02.7
    + Support for 128 bit AES decryption

    2.12.2011: V3.02.6
    - rgb was swapped by CMYK conversion
    - fixed freezing problem when using in standard C application.
    Please call at first Command(1289,1) // COMPDF_CPP_PROGRAM
    - Print function now scales down the page to print on a paper which was smaller. Use COMPDF_PrintUseScaling to specify scaling mode.
    - the freetype dll "wp_type1ttf.dll" is now loaded explicitly from the same location as the
    main WPViewPDF engine and only if not found there, from the current system path.
    - pdfMakeImage created wrong image format
    - decode parameter of CIITT filter was not detected if relative object
    - Images are not cached by default anymore. (COMPDF_CacheImages)
    - fix problem with Encoding property of some fonts

    25.11.2011: V3.02.5
    - PLUS - tiff to PDF was not working
    - fixed problem in YCCK jpeg conversion
    - fix new problem with grayscale indexed images
    - fixed problem with threads not being closed when window was destroyed

    • Offizieller Beitrag

    1.1.2012: V3.02.9
    * Better handling for font encoding. Solves problems with unknown characters in certain PDF files.

    24.12.2011: V3.02.8
    - fix problem when color is defined in paint path and not before
    - fix option "DELETESOURCE" for pdfMerge
    - PLUS - solves problem when saving PDF files with links.
    * pdfMerge did not delete temporary files when merging PDF files
    + new option "DELETESOURCE" for pdfMerge
    * improvement to text extraction to solve some problems when font used Encoding and ToUnicode properties

    9.12.2011: V3.02.7'
    + Delphi VCL: Save methods will now raise the exception EPDFSecurityForbidsSaving if saving of document is not allowed. You as developer can override this at Your own risk. Use command(COMPDF_DisableSecurityOverride,1) to disable this check.
    + improvement to decryption

    • Offizieller Beitrag

    27.1.2012: V3.03.1
    + viewer sends message WM_PDF_EVENT with parameter MSGPDF_DblClick on double click
    + OnDblClick event in Delphi component - unlike usual event it also receives the PageNr.
    + fixes problem when merging AES encrypted files.
    - fixes problem with saving some PDF files
    + Experimental: when saving to text (with GetPageText) You can choose as format "xyhtm". In this case the position will be added to the created <div> and <span> tags. This mode is only suitable when single pages are exported.
    + command: COMPDF_SaveBMPToClipboard - when called within the DrawRect event the selected piece of the page will be copied as a bitmap
    + command: COMPDF_SaveBMPToFile. Here the selected rectangle will be saved to a BMP file.
    - AttachStream was not working.
    - fixes problem with scrollbars

    • Offizieller Beitrag

    7.2.2012: V3.03.3
    + support for axial shading (solo and pattern)
    - fixed a potential resource leak when form xobjects were used
    + improved: when saving to text (with GetPageText) You can choose as format "xyhtm". In this case the position will be added to the created <div> and <span> tags. This mode is only suitable when single pages are exported.

    3.2.2012: V3.03.2
    * improved support for CMYK graphics
    * some improvements for color functions
    + function parser for separation color functions now also does if and ifelse statements

    • Offizieller Beitrag

    23.3.2012: V3.04
    - improve handling of PDF files with corrupt font information which does not define font width
    - fast subsequently loading of PDF data sometimes crashed the editor - this has been fixed.
    - scroll tracking sometimes froze the viewer (.NET only)
    - IStreams were not implemented correctly - so the LoadFromStream did not work with .NET before

    6.3.2012: V3.03.4'
    * improved display of grayscale JPEG images
    - fixed small memory leak in function pdfMerge

    5.3.2012: V3.03.4
    - fix problem with SetFocus
    + it is now possible to select a different renderer for printing.
    use command COMPDF_UseGDIForPrinting (145) with parameter 1
    or, with pdfPrint, the option STDGDI=1
    + implemented the MapFont event to change font names

    17.2.2012: V3.03.3'
    - fix problem: AttachStream was not working
    * SecurityOptions also disabled saving as text. This has been changed. Only saving as PDF is switched off.
    - fix problem with encrypted PDF files which were using an empty file ID
    + new chapter in this manual: Commands

    9.2.2012: V3.03.3
    - printing did always try to change paper size and so scaling did not work as expected.
    + support for axial shading (solo and pattern)
    - fixed a potential resource leak when form xobjects were used
    + improved: when saving to text (with GetPageText) You can choose as format "xyhtm". In this case the position will be added to the created <div> and <span> tags. This mode is only suitable when single pages are exported.

    • Offizieller Beitrag

    30.3.2012: V3.05
    - improved handling for fonts which name starts with @

    * (WPViewPDF PLUS) improved handling for fields. Now also text fields can be updated, which did not contain an appearance stream.

    The demo shows how to read current fields, how to change the values which are displayed and printed. When the document is saved, the modified appearance will be saved.

    • Offizieller Beitrag

    31.5.2012: V3.05.5
    - fixes a problem which caused the PDF loading to fail on an application server
    - possibility to disable shading with command COMPDF_DISABLE_SHADECOMMAND = 2010 (works globally)
    + command COMPDF_ZoomSaveRestore can be used to save / restore a zoom setting
    + use COMPDF_DrawObjectLocateAtXY to locate a draw object and COMPDF_DrawObjectReadProp to read its position

    7.5.2012: V3.05.4
    - load nested acro fields
    - improvement to indexed color space
    - use the commands COMPDF_SelectPaperWidth, - Length and - Size to specify the paper size the printer should use.
    - options for pdfPrint to select paper size

    22.4.2012: V3.05.3
    - modified CITTFAX decoder for compatibility to FitzFax

    18.4.2012: V3.05.2
    - improved performance of pdfMerge function
    - fixed problem with embedded JPEG images which were made transparent

    16.4.2012: V3.05.1
    * fixed a possible problem caused during multithreading
    * after loading the first pages are painted at once before multi threading starts.
    + multithreading can be disabled with command COMPDF_DisableThreading=146
    - fix for monochrome indexed images