Completed
Last Updated: 13 Feb 2023 15:55 by ADMIN
Release LIB 2023.1.220 (20 Feb 2023)
Simeon
Created on: 27 Sep 2021 08:32
Category: PDFViewer
Type: Bug Report
3
PdfViewer: Some Image XObjects are imported but not displayed in PdfViewer
Some Image XObjects are imported but not displayed in PdfViewer.

It seems all the documents contain scanned images produced by a Lexmark scanner.
10 comments
ADMIN
Dimitar
Posted on: 20 Jan 2023 13:35

Hi Al,

The latest version, 2023 R1.

Let me know if I can assist you further.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Al
Posted on: 19 Jan 2023 16:14
what release version should we look for in order to see this fix?
ADMIN
Dimitar
Posted on: 15 Sep 2022 10:54

Hi Bouly,

Thank you for adding the new file. I can confirm that the file is correctly opened in RadPdfViewer. 

I have compared the files but they are completely different. It appears that the tool you are using completely recreated the file and when opened with a text editor it's completely different from the original.  

I have tested this and I am afraid there is no way to determine if the image is correctly loaded. There is no exception on the import. 

Once more, please accept our apologies for the inconvenience this issue is causing you.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

LE CORGUILLE
Posted on: 14 Sep 2022 13:37

Hi dimitar,

 

I'm sorry to anwser you so lately but i'm not looking the forum every day even every month.

I've uploaded the result file you request.

cheers

 

ADMIN
Svilen
Posted on: 21 Jul 2022 08:32

Hello, Al,

Svilen here from the Technical Support Team.

I offer my apologies on behalf of the team for the inconvenience I assume this issue has caused you. Our team is devoted to providing the best experience to our users, which includes fixing bugs and implementing features that affect the most clients. This is why we rely on our public Feedback Portal where our community can provide feedback for the ones we need to prioritize. 

We do our best to fix all bugs, yet some receive less attention than others, which is why they can sometimes be delayed, such as this one. As much as I'd like to share an ETA on its resolution, currently, none is available, so I would not want to mislead you. Once we resolve this bug, we will immediately update the public feedback page to notify you and other clients. 

Thank you for your understanding.

Regards,
Svilen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Al
Posted on: 18 Jul 2022 13:53
i just ran into this, it’s hard to believe that nothing has been done on this since last September.
ADMIN
Dimitar
Posted on: 27 May 2022 06:33

Hi Bouly,

Would it be possible to send me the file after the script is executed on it so I can compare it with the original as well? 

Thank you in advance for your patience and cooperation. 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

LE CORGUILLE
Posted on: 26 May 2022 10:48

Hi Dimitar,

 

Please, to refer Ticket ID: 1565786 and i 've added a sample file.

 

Attached Files:
ADMIN
Dimitar
Posted on: 26 May 2022 07:11

Hello Bouly,

Without having a file at hand to test this I cannot suggest a way to detect if the file cannot be opened. Since this is a public thread I would suggest opening a new ticket for this and attaching the file that is not correctly opened. This way we can properly investigate the case and confirm that indeed this is the issue with the specific file. We will be able to determine if there is a way to detect this issue as well. 

A general way to handle such documents is to use the Exception Handling mechanism.

Thank you in advance for your patience and cooperation. 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

LE CORGUILLE
Posted on: 20 May 2022 10:25

To resolve this, I used ghostscript/gswin64c

I add ghoscript portable application in my project and transform the file before viewing it.

My problem, I need a way to dectect the trouble before transform the file.

 

From the web

@echo off
setlocal EnableDelayedExpansion

rem ghostscript executable name
set "ghostscript=gswin64"

rem directories to scan for files
set "filesDir[0]=D:\Partages\SMPLA\Gravette\Documents\LPM\LPM"
rem set "filesDir[1]=FOLDER2"
rem set "filesDir[2]=FOLDER3"

rem extension of files to be scanned
set "ext=pdf"

rem new file be creation or input file overwrite
set "createNewPDFs=0"
rem file prefix for new files (if they should be created)
set "filepre=compr_"

rem loop over all directories defined in filesDir array
for /f "tokens=2 delims==" %%d in ('set filesDir[') do (
   if exist "%%~d" (
      pushd "%%~d"
      rem loop over all files in all (sub)directories with given extension
      for /f "delims=*" %%f in ('dir "*.%ext%" /b /s /a:-d') do (
         if [%createNewPDFs%] EQU [1] (
            %ghostscript% -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile="%%~dpf%filepre%%%~nxf" "%%~f"
         ) else (
            %ghostscript% -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile="%TEMP%\%%~nxf" "%%~f"
        
    copy "%%~f" "%%~f.old"
    move /y "%TEMP%\%%~nxf" "%%~f"
         )

      )
      popd
   )
)