Itext7 can it repair a pdf with errors like invalid operator,bad trailer dictionary and Name tree node missing required Limit - itext7

I am processing a file from a supplier and was getting errors.
Finally tracked it down using ghostscript
The file has issues - it it possible to open the file, fix the issues and save the file using Itext7 ?
I can do it with an external process with ghostscript but would prefer to no have an extra process running.
The supplier of the PDF is using an old version of itext with BIRT Report Engine
The following warnings were encountered at least once while processing this file:
invalid operator used in text block
bad trailer dictionary
Name tree node missing required Limits entry
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> iText 2.1.7 by 1T3XT <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.

Related

Clickable file with line number link in Intellij console output on Windows

Firstly, I'm using Intellij IDEA 2021.3.4 (Community Edition).
And in my project there is an XML file, and Java code which validates the XML files.
As part of the validation, if there is an error detected then the absolute file path and line number are printed to the console in the format:
file:///Users/rob/git/project/src/main/resources/com/app/test/Page.xml:6
I'm on Mac, and the log message is clickable. If I click on it then the IDE opens that file at the specified line number.
However, this same feature does not work when on Windows.
I've tried logging the message in various formats but none work.
Is the problem with the format of my log message, or just an issue with Intellij on Windows?
Various formats I've tried on windows:
file://C:\\Users\\rob\\git\\project\\src\\main\\resources\\com\\app\\test\\Page.xml:6
file://C:\\\\Users\\\\rob\\\\git\\\\project\\\\src\\\\main\\\\resources\\\\com\\\\app\\\\test\\\\Page.xml:6
file://C:/Users/rob/git/project/src/main/resources/com/app/test/Page.xml:6

unable to open the downloaded excel birt report through maximo

Birt Report consist a simple created SQL query based report using date paramater which is having two section one is SR Details and second is section deals with Worklog.
After running on to the production and downloaded in excel format, I am unable to open the report in excel format.
Here is the error as follows
AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO\64385E05.log
"AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO\xxxxxxx.log"
This error cause to due to excel installation,after changing the registry on installation path with 0, now its opening the excel report.

How to create a mini dump with more than Application data in it?

I have configured my WER to create a full memory mini dump:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpType"=dword:00000002
When I generate such a dump and open it in windbg it prints the following line:
User Mini Dump File with Full Memory: Only application data is
available
As you can see, not everything is included (like the handles are missing).
OK, so I have tried a custom dump type:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpType"=dword:00000000
"CustomDumpFlags"=dword:00000006
According to the documentation it corresponds to MiniDumpWithFullMemory|MiniDumpWithHandleData, however, opening the new dump in windbg prints out the same line, no handle data.
So, my question is how can I configure my Windows 8 to automatically produce crash dumps with more than just the Application Data in it? For example, with the handles?

SSIS 2005 how to resolve the error "input column has lineage id that was not previously used in the data flow task" programmatically

I'm trying to write a program that automatically add columns from the OLE DB Sources in all of the components in a .dtsx file (the target is SSIS 2005). When I process the .dtsx with my program seems that the columns are added correctly, but when I open the modified package, in the components appears this message:
input column has lineage id that was not previously used in the data flow task.
If I double click on the component and then I press OK the error disappear.
My question is:
is there a way to have the same behavior programmatically? I'll try to automate this operation for the user by using this program but with this error block me in the project.
i had this problem, i could resolve that by bellow solution but i know it's not useful solution.
meta data can not detect your changes , you can delete your task and create again that task.
Both source and destination column must have the same linage id.

Issue Running Console App using a Shortcut

I created a console application in VS2012 which, by itself compiles fine. I published it on a local network and made a shortcut on another computer on the network. When I run the app by double-clicking the shortcut OR by executing via the command line I get the error:
"Cannot continue. The application is improperly formatted."
Details provide the following information:
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of Y:\Errol\CommodityVolJob\ConsoleApplication2.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest from file:///Y:/Errol/CommodityVolJob/ConsoleApplication2.application: the manifest may not be valid or the file could not be opened.
+ Manifest XML signature is not valid.
+ SignatureDescription could not be created for the signature algorithm supplied.

Resources