Unplanned
Last Updated: 30 Nov 2023 18:51 by Martin Ivanov
Currently, there are 10px of margin on each side of the FixedDocumentPresenter element showing the page. This is controlled by the PageMargins property of the PagesLayoutManagerBase class, which is set to a fixed value of 10. To change this, you will need to implement custom PagesLayoutManager and few other page presenter classes from scratch. 

Add a property that allows easily changing of the PageMargins value.

At this moment, you can work this around by setting the PageMargins via reflection.
var pageMarginsPropInfo = typeof(PagesLayoutManagerBase).GetField("pageMargins", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.NonPublic);
pageMarginsPropInfo.SetValue(null, new Size(0, 0));

Unplanned
Last Updated: 16 Oct 2023 09:38 by Dominik

Provide a default appearance for fields that do not contain one. 

Workaround: set border and background manually:

var provider = new PdfFormatProvider();
var document = provider.Import(File.ReadAllBytes(@"..\..\..\Systemvariablen.pdf"));

foreach (var item in document.AcroForm.FormFields)
{ 
    var widget = item.Widgets.First() as VariableContentWidget;
     
    if (widget != null)
    { 
        widget.AppearanceCharacteristics.Background = new RgbColor(255, 0, 0);
        widget.AppearanceCharacteristics.BorderColor = new RgbColor(0, 0, 255);
        widget.Border = new AnnotationBorder(2, AnnotationBorderStyle.Solid, null);
      
        widget.RecalculateContent(); 
    }
}

pdfViewer.Document = document;

Unplanned
Last Updated: 10 Aug 2023 07:23 by Flavio
Created by: Flavio
Comments: 0
Category: PDFViewer
Type: Feature Request
1
Auto-enable text selection like adobe (see attached)
Unplanned
Last Updated: 24 Apr 2023 12:13 by Boštjan
Implement getting the glyph sizes from the Adobe Font Metrics File Format Specification 
Unplanned
Last Updated: 27 Sep 2022 06:36 by Hartmut
Created by: Hartmut
Comments: 0
Category: PDFViewer
Type: Feature Request
1

From the PDF Specification: "An ink annotation represents a freehand “scribble” composed of one or more disjoint paths. When opened, it displays a pop-up window containing the text of the associated note."

Sometimes the Ink annotations are imported as UnsupportedAnnotation and not displayed as expected. In such cases, the annotations could be removed from the RadFixedPage content in the following manner:

foreach (RadFixedPage page in document.Pages)
{
	List<Annotation> inkAnnotations = page.Annotations.Where(a => a.Type == AnnotationType.Ink).ToList();
	foreach (Annotation inkAnnotation in inkAnnotations)
	{
		page.Annotations.Remove(inkAnnotation);
	}
}

Unplanned
Last Updated: 18 Aug 2022 14:14 by Jens
Created by: Jens
Comments: 0
Category: PDFViewer
Type: Feature Request
1
From PDF Specification: "The value of the field dictionary’s Ff entry is an unsigned 32-bit integer containing flags specifying various characteristics of the field. Bit positions within the flag word are numbered from 1 (low-order) to 32 (high-order)."

Field flags common to all field types: ReadOnlyRequiredNoExport.
Unplanned
Last Updated: 19 Apr 2022 12:45 by Dimitar
Implement editor functionalities like add, edit or delete content.
Unplanned
Last Updated: 08 Apr 2022 13:24 by Joe
When rendering PDF file with a TrueType font and Unicode platform Id (platformId: 0), glyphs are not obtained from CMAP table and are displayed with default rectangle placeholders.
Unplanned
Last Updated: 23 Mar 2022 09:31 by Uma
Created by: Uma
Comments: 0
Category: PDFViewer
Type: Feature Request
2
This type of dictionary allows users to specify files and define different files for different systems or platforms.
Unplanned
Last Updated: 05 Jan 2022 11:06 by ADMIN
Currently, a NotSupportedException is thrown and handled internally. As a result, the image is missing from the page content.
Unplanned
Last Updated: 10 Feb 2022 11:03 by ADMIN
Allow passing specific pages (e.g. "1, 4, 6") and more than one page range (e.g. "1-3, 6-7") to the print dialog`s Pages page range.
Unplanned
Last Updated: 20 Apr 2021 13:03 by ADMIN
When the document contains an invalid code space range in the embedded CMap table the CMap table is not correctly imported, which leads to wrong character mapping in the text selection.
Unplanned
Last Updated: 25 Mar 2021 07:55 by ADMIN

According to the PDF specification (Adobe® Portable Document Format Version 1.7):
Append a rectangle to the current path as a complete subpath, with lower-left corner (x, y) and dimensions width and height in user space.

The operation: 

x y width height re

An invalid case:

0 - 595 -842 re

This leads to an exception thrown: System.NullReferenceException: 'Object reference not set to an instance of an object.'

Unplanned
Last Updated: 05 Mar 2021 12:09 by ADMIN
According to the PDF specification: Codes are never longer than 12 bits; therefore, entry 4095 is the last entry of the LZW table.
Unplanned
Last Updated: 16 Dec 2020 14:23 by ADMIN
Created by: Simeon
Comments: 0
Category: PDFViewer
Type: Feature Request
1
Enable the users to draw different shapes on the PDF page.
Unplanned
Last Updated: 26 Nov 2020 07:25 by ADMIN
Provide an event that is fired when all annotations are clicked. Currently, the AnnotationClicked event is not fired for all annotations. Perhaps we can use the same event and add a property that controls for which annotations the vent is fired. 
Unplanned
Last Updated: 12 Nov 2020 09:10 by ADMIN
Introduce a fallback mechanism for glyphs that cannot be found in the current font 
Unplanned
Last Updated: 10 Nov 2020 15:27 by ADMIN

When extracting text from a composite font the ToUnicode mapping should be used but when this mapping is missing the char codes must be mapped by constructing a secondary map from fonts ordering and registry. 

A possible workaround could be to register a TrueType font using the FontsRepository.RegisterFont() method:

FontsRepository.RegisterFont(new FontFamily(fontName), FontStyles.Normal, FontWeights.Normal, File.ReadAllBytes(pathToFont));
and then to iterate the document content and change the specific font with the registered one:
FontsRepository.TryCreateFont(new FontFamily(fontName), FontStyles.Normal, FontWeights.Normal, out FontBase font);

foreach (RadFixedPage page in document.Pages)
{
	foreach (ContentElementBase contentElement in page.Content)
	{
		if (contentElement is TextFragment textFragment)
		{
			if (textFragment.Font.Name == fontName)
			{
				textFragment.Font = font;
			}
		}
	}
}

Unplanned
Last Updated: 05 Nov 2020 12:18 by ADMIN
Expose event that allow on to track if the rotation is changed
Unplanned
Last Updated: 29 Oct 2020 09:22 by ADMIN
PdfViewer: Show the DropDownList icon when the document contains ComboBox field
1 2 3 4 5