Document Solutions for PDF 7.1.0

Released: Apr 17, 2024

7.1.0 での更新項目

機能

Document Solutions for PDF

  • Add Rich Media to PDF Documents - Enhance your PDF documents by seamlessly incorporating rich media elements such as audio and video. With the addition of rich media, you can elevate user engagement and create dynamic, interactive content within your PDFs. Incorporate multimedia support programmatically into your PDF documents using the new RichMediaAnnotation class. Here are the key capabilities of the class:
    • Embed Multimedia Content: RichMedia annotations enable incorporating multimedia assets, including audio, video, and animations, into PDF files. This can enhance presentations, educational materials, or interactive forms.
    • Annotation Properties: RichMedia annotations have properties that define how the multimedia content should be presented. These properties may include the activation conditions, visibility settings, and the appearance of the annotation.
    • Activation and Deactivation: Activation conditions determine when the multimedia content should start or stop playing. For example, you can set the content to play when the user clicks the annotation or when the page containing the clip becomes visible.
    • Presentation Style: RichMedia annotations support two types of presentation styles - Embedded and Windowed.
    • Control Navigation: RichMedia annotations allow you to control the settings of navigation options to True or False.
  • Optimize PDF File Size - You can now optimize the PDF file by using new API that helps eliminate redundant instances of identical images internally within the document. It will now also be possible to optimize the PDF File size of a merged PDF document. The following new API has been introduced:
    • New GcPdfDocument.RemoveDuplicateImages() method to remove instances of identical images internally.
    • MergeDocumentOptions.RemoveDuplicateImages boolean property which if 'true', calls RemoveDuplicateImages() method internally.
  • Draw Rotated Text within Unrotated Rectangular Bounds - Drawing rotated text within unrotated rectangular bounds offers several advantages, such as allowing better space utilization, consistency in layout, efficiency with responsive designs without major disruptions to the design, and more. Support has been added for drawing rotated text within unrotated rectangular bounds. Users can now employ the DrawRotatedText and MeasureRotatedText methods within the GcGraphics class to draw rotated text within unrotated rectangular bounds, similar to how Microsoft Excel draws rotated text inside borderless cells.
    • DrawRotatedText facilitates the drawing of text at an angle within a specified rectangle, while MeasureRotatedText calculates the bounds for accurate text placement.
    • Enabled users to set the alignment of the rotated text using RotatedTextAlignment enumeration, which is used as one of the parameters in the above methods. These new methods are applicable to all classes derived from GcGraphics, including those involved in drawing to PDF, SVG, and bitmaps.
  • Drawing Text in Slanted Rectangles - Text can now be rotated within slanted rectangles, similar to how Microsoft Excel draws rotated text in cells with borders. To achieve this layout, a special DrawSlantedText method has been added, which is very similar to the DrawRotatedText method except for the last parameter of the SlantedTextAlignment type that specifies the alignment of slanted text within the target rectangle. There are six modes for this enum type: BelowRotatedInside, BelowRotatedOutside, AboveRotatedInside, AboveRotatedOutside, CenterInsideOutside, and CenterOutsideInside.

Document Solutions PDF Viewer

  • Select Text and Add Comments - DsPdfViewer has enhanced the comment functionality to align with a user-friendly approach to adding comments. The new "Add comment" option in the context menu will help users select any text and add comments to the selection. The Reply Tool now activates automatically when a markup annotation or text comment is added via the context menu, focusing on the new comment in the list. This approach facilitates quick collaboration, feedback collection, and effective communication among multiple users, thereby contributing to a more efficient user interface for reviewing documents. Additional enhancements to the Reply Tool include:
    • Temporary highlighting of a selected annotation on the PDF page is now featured when the annotation is chosen in the comments list within the Reply Tool.
    • Users can now delete a comment item using the Delete key and navigate through comment items using the TAB and Arrow keys.
    • The functionality to resize the right sidebar element has been incorporated.
    • The color has been removed from Reply Tool icons, resulting in improved annotation icons.
    • An additional option, 'showContextMenuOnSelection,' has been added to programmatically control the context menu behavior when text is selected. The option has the following values:
      • "Auto": Automatically determines whether to show the context menu based on the device type.
      • "On": Always shows the context menu when text is selected.
      • "Off": Never shows the context menu when text is selected.
      • The default value is "Auto".
  • Work with Rich Media Annotations (audio/video) in PDF Documents
    • DsPdfViewer now facilitates the playback of embedded media resources, such as audio and video, providing users with a more immersive experience and direct interaction with multimedia content embedded within PDF documents. This enhancement is achieved by integrating multimedia support through rich media annotations, aligning with the PDF specification.
    • In this release, the Annotation editor and Quick edit toolbar under 'Attachments and stamps' now feature a newly added toolbar button labeled "Add rich media". This button helps to add media files (audio/video) to the PDF document. Just click on the "Add rich media" button and browse for the media file you want to add to the PDF document, which will be embedded in the PDF document.
    • You can also remove the media files or modify their properties within the viewer. The property panel allows editing various RichMedia annotation properties, including Media, Poster, Activation/Deactivation, Presentation Style, and Controls (navigation) settings. You can also download the Media and Poster files from the properties panel.
    • The PDF Viewer has extended this support to various video formats, including MP4, SWF, FLV, and WebM, while also covering audio formats such as MP3, OGG, and WAV.