Unplanned
Last Updated: 01 Dec 2023 11:28 by Xiao
PdfFormatProvider: Inline image is incorrectly measured.
Need More Info
Last Updated: 01 Dec 2023 05:38 by fname

 

 

The table styles are not imported correctly from HTML. The back color is not respected. The column width is incorrect. The font size is different.

Font is not in proper case- All the cases are in lower case

Duplicated
Last Updated: 30 Nov 2023 10:29 by ADMIN

Hi,

We are using HTMLFormatProvider and PDFFormatProvider for converting HTML  string to PDF file.  The below issues are identified while converting PDF.

 

1. Text Foreground  and Background color is not working in pdf.

HTML:

<p><span style="color: rgb(216, 55, 98); background-color: rgb(28, 122, 144); font-size: 30px;">Test</span></p>

We get the same issue even though we added below code.

foreach (Run run in document.EnumerateChildrenOfType<Run>())
{
    if (!run.Properties.HighlightColor.HasLocalValue)
	{
		run.HighlightColor = run.Shading.BackgroundColor.LocalValue;
	}
}

Attached the PDF file 

2. Strikeout is not working in PDF

  Sample HTML:

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p><span style="font-size: 24px;"><del>Delete Strike Through line in the paragraph</del></span></p>
</body>
</html>

attached the PDF file .

It would be appreciated , if you provide the solution for those issues

 

Regards,

Babu

 

 

Unplanned
Last Updated: 30 Nov 2023 10:05 by ADMIN

Hi there I have a pdf and whenever I try to Import the PDF file into PdfFormatProvider.Import method for flattening purposes, it throws null reference exception.

I have added a sample .net project with PDF added as source. You just need to run the project on your end. I am using version 2023.3.1106 of document processing library.

I am using ASP.NET 4.8 framework.

Thanks

Completed
Last Updated: 30 Nov 2023 09:39 by ADMIN
Release R1 2024

When characters are in the ranges 61472-61566, 61565-61695, 65535-65535 they are correctly exported with Wingdings font. However, when the character value is outside these ranges the font fallback mechanism exports them with different font and this causes wrong glyph rendering in the resulted PDF. The following code snippet shows how the Wingdings characters can be modified so that they are correctly exported to PDF when converting from WordsProcessing's RadFlowDocument: RadFlowDocument document = new DocxFormatProvider().Import(File.ReadAllBytes(@"test_document.docx"));

foreach (Run run in document.EnumerateChildrenOfType<Run>())
{
    if (run.FontFamily.GetActualValue(document.Theme).Source.Contains("Wingdings"))
    {
        StringBuilder modifiedText = new StringBuilder();

        foreach (char character in run.Text)
        {
            modifiedText.Append(character > 256 ? character : (char)(character + 61440));
        }

        run.Text = modifiedText.ToString();
    }
}

Workaround: When creating a RadFixedDocument:

using (RadFixedDocumentEditor editor = new RadFixedDocumentEditor(this.fixedDocument))
{
	byte[] data = File.ReadAllBytes(@"CustomFont.ttf");
	FontsRepository.RegisterFont(new FontFamily("CustomFont"), FontStyles.Normal, FontWeights.Normal, data);
	FontBase customFont;
	FontsRepository.TryCreateFont(new FontFamily("CustomFont"), FontStyles.Normal, FontWeights.Normal, out customFont);
	editor.CharacterProperties.Font = customFont;
	string text = "w";

	StringBuilder modifiedText = new StringBuilder();
	foreach (char character in text)
	{
		modifiedText.Append(character > 256 ? character : (char)(character + 61440));
	}

	text = modifiedText.ToString();

	editor.InsertRun(text);
}

Completed
Last Updated: 29 Nov 2023 16:16 by ADMIN
Release R1 2024
When getting the hash code of CFF (Compact Font Format) font`s UnderlineThickness and there is no such value set in the font file the default value should be returned but an exception is thrown: NullReferenceException: 'Object reference not set to an instance of an object.'
Completed
Last Updated: 29 Nov 2023 15:56 by ADMIN
Release R1 2024
When exporting a document containing different font types but with the same name and properties same characters are missing or drawn as rectangles.



Observed:

Completed
Last Updated: 29 Nov 2023 15:48 by ADMIN
Release R1 2024
When decoding a CalRgb ColorSpace image an exception is thrown: NotSupportedException: 'Not supported colorspace: CalRgb'
Completed
Last Updated: 29 Nov 2023 15:26 by ADMIN
Release R1 2024
Some of the leftmost borders are omitted when exported to PDF.
Completed
Last Updated: 29 Nov 2023 13:06 by ADMIN
Release R1 2024
NullReferenceException: 'Object reference not set to an instance of an object.' is thrown on export because the value of TransformMethod property is not obtained.
Unplanned
Last Updated: 29 Nov 2023 12:53 by Arvind
The table styles are not imported correctly from HTML. The back color is not respected. The column width is incorrect. The font size is different.
Completed
Last Updated: 29 Nov 2023 11:33 by ADMIN
Release R1 2024
The table is not properly split when it is positioned at the end of the page and the text content is long.
Unplanned
Last Updated: 29 Nov 2023 07:38 by Novak

NumberedHierarchical list type has inconsistent indentation after bullets.

Unplanned
Last Updated: 28 Nov 2023 14:56 by ADMIN
At this point, the justify alignment is not supported.
Unplanned
Last Updated: 28 Nov 2023 14:52 by ADMIN
Introduce support for Implicit Intersection Operator '@'.
Unplanned
Last Updated: 27 Nov 2023 11:04 by Manikandan
Created by: Manikandan
Comments: 0
Category: PdfProcessing
Type: Bug Report
0
NotSupportedException when parsing CFF Type1 font.
Unplanned
Last Updated: 27 Nov 2023 07:29 by MVDH
When encoding an image with Grayscale color space an exception is thrown: IndexOutOfRangeException: 'Index was outside the bounds of the array.'
Unplanned
Last Updated: 27 Nov 2023 07:24 by MVDH
When encoding an image with Indexed color space an exception is thrown: NotSupportedException: 'Not supported colorspace: Indexed'
Unplanned
Last Updated: 27 Nov 2023 06:50 by MVDH
When decoding the image with a CCITTFaxDecode filter an exception is thrown: NullReferenceException: 'Object reference not set to an instance of an object.'
Unplanned
Last Updated: 23 Nov 2023 15:10 by ADMIN
ADMIN
Created by: Deyan
Comments: 2
Category: SpreadProcessing
Type: Feature Request
46
Add support for creating Tables and applying tables styles (predefined ones or custom).
1 2 3 4 5 6