Recurring problems merging PDF with PDF catia

Hi all.
For the record, I am not a CATIA user at all, but we have colleagues who use it. For my part, I am a developer, we use an ERP (IFS) in which we enter sheets on the work orders, and on each work order, we have PDFs that are linked to the element.
On an OF, we have a report that we generate, where we merge these different PDFs to output 1 alone.
The problem is that 9 times out of 10, this merge doesn't work, and when it doesn't, it's only on PDFs that have been generated using CATIA.

Today, we encounter this error message:
Ifs.Fnd.FndSystemException: Explorer: An unhandled exception occurred —> Datalogics.PDFL.LibraryException: Could not find the XObject named ‹ %s ›.: Could not find the XObject named ‹ %s ›. Error number: 537329691

What information could you give me, so that we can properly generate PDFs with CATIA? The weird thing is that these PDFs generated with CATIA open without error...

CATIA version we have: V5 R27, R28, R31

Hello Romain,
I developed an app similar to yours that connects SolidWorks to our ERP, including PDFs.
I didn't use the Datalogics library because I didn't have to merge files.
Since you have bought the library's license, I will start by turning to them and asking them if they have ever had this problem.

Hello remrem,

I did a new analysis, and I don't think we bought a Datalogics license, but I noticed something quite strange.
In the dev that generates the report, I get my PDFs from CATIA, then, I resize them page by page to convert them to A4, and as soon as I come across a CATIA page, I have a blank page in the resized PDF, but on a non-CATIA PDF, I have no bugs... At one point, we had users who encountered the error that the CatiaSymbols font was not recognized, we installed it on the users' workstations and this bug was corrected, now, there is only this error related to XObject but impossible to have any way of solving it

Yet it pays off: Flexible Licensing & Pricing

I've already seen on other development forums such as https://www.developpez.net the use of the OpenSource PdfSharp library: Overview of PDFsharp Library

If you try this library, I'm curious about the result

1 Like

All I can say is that the error that came to us comes from our ERP (therefore from IFS), and that the complete error is as follows:

Ifs.Fnd.FndSystemException: Explorer: An Unhandled Exception has occurred —> Datalogics.PDFL.LibraryException: Could not find the XObject named ‹ %s ›.: Could not find the XObject named ‹ %s ›. Error number: 537329691
at Datalogics.PDFL.Document.Print(PrintUserParams userParams)
at Ifs.Application.InfoServicesFramework.FndPDFLibrary.PrintFile(String filename, String printerName, Int32 copies, Int32 pageFrom, Int32 pageTo, String localPrintjobName)
at Ifs.Application.InfoServicesFramework.DocumentFileHandler.Print(PrintInstance instance, String PrinterName)
at Ifs.Application.InfoServicesFramework.PrintDialog.PrintReportToPhysicalPrinter(PrintInstance instance)
at Ifs.Application.InfoServicesFramework.PrintDialog.cmdOk_Execute(Object sender, FndCommandExecuteEventArgs e)
at Ifs.Fnd.Windows.Forms.FndCommand.OnExecute(Component component)
at Ifs.Fnd.Windows.Forms.FndCommandButton.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message&m)
at System.Windows.Forms.Button.WndProc(Message&m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
— End of inner exception stack trace —

For me, the Datalogics library is already included in IFS, and we don't have control over which library to use

Hello
In a quick search, it would seem that this is a missing Object in the PDF generated by Catia. You should look at this side on the Catia forums directly or see with Dassault. Maybe also see the Adobe version installed and its compatibility with Datalogics.

1 Like

Hi Roman,
I understand better. I thought you were the one who wrote the code.
Are there any options in CATIA to configure PDF export?

1 Like

Hello, I see that it's been a while since you asked the question but as I don't see a resolution I'll try my luck if it can help you and if you still haven't managed to correct the problem.

To start with, can you tell me how your colleagues generate PDFs please?

There are several ways to do this, so maybe start by trying another one (which I could tell you)

Hello.
Last week, I worked on this with the support of the software we use to develop our reports, and they found the cause of the problem, the cause comes from the PDFs themselves, where they have security settings that prohibit merging, but also, extracting pages, even if they are not password protected (these security settings can be accessed from Acrobat Reader by pressing CTRL + D, " security " tab).
Support advised us to ask users who add these PDFs to our ERP to rework them, in order to make them compatible with our development.
Compared to CATIA's software, all I was told is that the software does not provide options to generate PDFs, no possibility to generate other than version 1.3 for example. But all that remains is to find how to " jump " these locks, I had tried to re-generate a PDF with the PDF printer, without success...

Are you sure that merging and extracting pages is only forbidden in Catia PDFs? Personally, it's blocked on ALL my pdfs (even those from Excel, PPT, word...)

Here is an image to make sure that we are talking about the same prohibitions:

1 Like

Same restrictions as @Wrem.rem on pdfs generated by Excel and Solidworks.
And no problem merging with Pdfsam Basic (ver. 4.1.1)

Hello.
This morning, I did additional tests and they were conclusive this time.
On the PDF from CATIA, I used my PDF printer (microsoft print to PDF) to regenerate this document, and on the generated file, I was able to resize them to A4 (once, I had a document in A0 format), and there, the merge worked very well.

Great, good considering the idea of the format