Issue in PDF Converter in As400 for Czech Language

75 pts.
Tags:
AS/400 PDF
AS/400 Spool Files
PDF conversion
I am using CVT2CMD command which I have downloaded from internet and this is for conversion of as400 spool to PDF. I am facing an issue for czech language. Please find the below font and encoding details, /Type /Font             /Subtype /Type1         /Name /F1               /BaseFont /Courier      /Encoding /WinAnsiEncoding

Software/Hardware used:
Software

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi Tom,

Do you have any update on this issue?

Sachin

Discuss This Question: 11  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I have no idea what CVT2CMD does, so I can't answer. But I can ask -- what is the problem that you are having? Is there an error message? Is the .PDF created incorrectly? What happens? Where does the problem happen? Are you trying to learn what parameters to use? Tom
    125,585 pointsBadges:
    report
  • Gambhir
    I am using PDF writer tool in AS400. If I convert English AS400 spool to PDF then it's converting properly but if I tried to convert Czech (Czech Republic Language) AS400 spool to PDF then I am getting some garbage characters in PDF. Do you have any idea on this, what could be the font, encoding etc.? Currently I am using Courier Font and WinAnsiEncoding.
    75 pointsBadges:
    report
  • TomLiotta
    I downloaded and looked at the PDF creation code. I don't know what is wrong, but I can think of directions to look. I will install and run a test on my system. I don't have a Czech spool file, so I can only make some guesses no matter what. It will be a day or so before I can be ready. Before then, please post your QCCSID system. I need a base to start from. Tom
    125,585 pointsBadges:
    report
  • Gambhir
    Yes sure....for czech it's 00870.
    75 pointsBadges:
    report
  • TomLiotta
    A typo in my last reply might have caused a misunderstanding. I should have written "please post your QCCSID system value." Is 00870 your QCCSID system value or is it only the CCSID for Czech characters? Tom
    125,585 pointsBadges:
    report
  • Gambhir
    Hey Tom, Actually my understanding was wrong...I thought you have asked me for Czech language CCSID. 00870 is CCSID for Czech Language. System QCCSID is 65535.
    75 pointsBadges:
    report
  • TomLiotta
    System QCCSID is 65535. 65535 is probably not the value that you should be using. Do you have any time when you could run tests? It would be very informative if you could set the QCCSID value to 00870, perform an IPL and test PDF generation. After the test, set QCCSID back to 65535 and IPL again to return the system back to its current setting. 00870 might not be correct on an ongoing basis, but it is possibly better than 65535. A test would tell a lot about which direction to go. If it had an effect, a more complete picture of the overall system environment would be needed to know how to get the same effect without changing QCCSID. Looking at the code, improper CCSID conversion looks like a good candidate. When you execute the command, what is the CCSID of the job? (And what is the job default CCSID?) Tom
    125,585 pointsBadges:
    report
  • Gambhir
    Hey Tom, It's not the feasible way that we can change the system value for testing. If you have any other way to resolve this problem. Job CCSID is 00870 and job default CCSID is also 00870.
    75 pointsBadges:
    report
  • TomLiotta
    Nothing directly useful yet. I installed/tested CVT2PDF and have a fair idea what it does and how it works. If you are a developer, you can review the specs in PDF Reference, Second Edition, version 1.3, which is the closest I can easily find for the PDF 1.0 version created by the program. Topic 5.5.1, Type 1 Fonts, covers most details that seem relevant, and Appendix G, Example PDF Files, shows simple example PDF files that can be compared to a small file on your system. If you can create a small one or two page spooled file that contains a few characters that won't translate, it seems possible to see where the problem is. You can open a PDF in WordPad to see how text lines look. The text for a print line is simply carried in a line that identifies it as a text string. One critical element is a block of lines near the beginning of the file that identifies the font that the PDF reader should render the text as. In my tests, the font is Type 1 "Courier" and the encoding is "WinAnsiEncoding". I'm pretty sure yours will say the same. The questions will come down to how the bytes in the text line are interpreted for code page and character set (or CCSID) by your PDF reader. The streamfile in the IFS in my test has CCSID 1252, a Windows Unicode CCSID that came from my '*PCASCII' choice. I haven't looked yet to see if any CCSID conversions are done in the RPG code, so I don't know what to expect. The CVT2PDF *MODULE was compiled as CCSID 37 on my system. If you run DSPPGM against the program on your system, you can display the compiled module attributes. What is the 'Coded character set identifier' module attribute on your system? I still need to think up a way to see some actual internal text lines from your PDF through this interface. Maybe DSPF can be used to display the text characters in hexadecimal. I'm not at a solution yet, but I'm getting to know the PDF structure enough to make sense of it. Tom
    125,585 pointsBadges:
    report
  • Gambhir
    Hi Tom, Do you have any update on this issue? Sachin
    75 pointsBadges:
    report
  • Alekos
    I have the same issue for Greek language. Same case like form user from Czech. I have successful conversion of Greek characters (EBCDIC 875) from I series to windows (ANSI 1253). I can see the Greek characters on Windows (using notepad) but I can’t see Greek characters from PDF reader. The system setup is the same as described from Czech.Any suggestion please?
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following