Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

unable to convert the HTML to PDF in adobe workbench using PDF generator

Avatar

Level 2

HI 

 

Need urgent help 

I am trying to convert the HTML to PDF in workflow but the conversion is not happening. Also I tried in adminui still facing the same issue.


ALC-PDG-001-000-
Job ID for the submitted htmlFileToPDF job =13cc6d-58a2e7-9a7221-31e46e-1d8854-caec3b
[3/11/21 7:28:00:371 CST] 000016c4 GeneratePDFIm A ALC-PDG-001-000-Trying the primary conversion via webkit
[3/11/21 7:28:00:372 CST] 000016c4 Html2PDFWebki A ALC-PDG-001-024-file:/app/aem62/icorr_aem62/aem62_temp/pdfg-usradmin/13/cc6d-58a2e7-9a7221-31e46e-1d8854-caec3b/test.html: Time Job Submitted: 3/11/21 7:28 AM for job = 13cc6d-58a2e7-9a7221-31e46e-1d8854-caec3b
[3/11/21 7:28:00:372 CST] 000016c4 Html2PDFWebki A ALC-PDG-001-016-file:/app/aem62/icorr_aem62/aem62_temp/pdfg-usradmin/13/cc6d-58a2e7-9a7221-31e46e-1d8854-caec3b/test.html: Job Type: HTML to PDF
[3/11/21 7:28:00:382 CST] 000016c4 ProcessResour A ALC-BMC-001-505: Service HtmlToPdfSvc: Starting native process with command line "/app/was85/WebSphere/was85_node/installedApps/adobe/icorr_aem_1/HtmlToPdfSvc/bin/HTML2PDFConverter.sh" -IOR IOR:00bdbdbd0000002249444c3a636f6d2f61646f62652f736572766963652f4d616e616765723a312e3000bdbd0000000100000000000005f8000102bd00000023646c677361736373323435353030312e72312d636f72652e72312e6169672e6e657400bdadcabdbd0000001f4c4d42490000001502f3da47001500050442522d3700080100000000000000bd0000000a000000010000001400bdbdbd0501000100000000000101000000000049424d0a0000000800bd00011700000200000026000000020002bdbd49424d04000000050005020102bdbdbd0000001f0000000400bd0003000000200000000400bd0001000000250000000400bd000300000021000004580001bdbd000000060002bdbd000000240000002000bd00260002bdbd000000010000000e31302e3136322e3139372e34360082af004000000000000806062b1200021e02000000340401000806062b1200021e020000002463696c6461706465762e63686172746973696e737572616e63652e6e65743a31303431350000000000000001494210ce000000290000002563696c6461706465762e63686172746973696e737572616e63652e6e65743a313034313500bdbdbd00000000000000000042bdbd000000240000002000bd00660042bdbd000000010000000e31302e3136322e3139372e3436009782004000000000000806062b1200021e02000000340401000806062b1200021e020000002463696c6461706465762e63686172746973696e737572616e63652e6e65743a31303431350000000000000001494210ce000000290000002563696c6461706465762e63686172746973696e737572616e63652e6e65743a313034313500bdbdbd00000000000000000002bdbd000000240000002000bd00260002bdbd000000010000000e31302e3136322e3139372e34360082af00400000000000080606678102010101000000340401000806066781020101010000002463696c6461706465762e63686172746973696e737572616e63652e6e65743a31303431350000000000000001494210ce000000290000002563696c6461706465762e63686172746973696e737572616e63652e6e65743a313034313500bdbdbd00000000000000000042bdbd000000240000002000bd00660042bdbd000000010000000e31302e3136322e3139372e343600978200400000000000080606678102010101000000340401000806066781020101010000002463696c6461706465762e63686172746973696e737572616e63652e6e65743a31303431350000000000000001494210ce000000290000002563696c6461706465762e63686172746973696e737572616e63652e6e65743a313034313500bdbdbd00000000000000000002bdbd000000240000002000bd00260002bdbd000000010000000e31302e3136322e3139372e34360082af004000000000000806062b1200021e06000000340401000806062b1200021e060000002463696c6461706465762e63686172746973696e737572616e63652e6e65743a31303431350000000000000001494210ce000000290000002563696c6461706465762e63686172746973696e737572616e63652e6e65743a313034313500bdbdbd00000000000000000042bdbd000000240000002000bd00660042bdbd000000010000000e31302e3136322e3139372e3436009782004000000000000806062b1200021e06000000340401000806062b1200021e060000002463696c6461706465762e63686172746973696e737572616e63652e6e65743a31303431350000000000000001494210ce000000290000002563696c6461706465762e63686172746973696e737572616e63652e6e65743a313034313500bdbdbd000000000000000049424d21000000ba00bd00010000bdbd000000054c44415000bdbdbd0000003449424d20576562537068657265204170706c69636174696f6e20536572766572204e6574776f726b204465706c6f796d656e740000000009382e352e352e313800bdbdbd00000008392f31302f3230000000000c63663138323033362e303100000000392863656c6c293a77617338355f63656c6c3a286e6f6465293a77617338355f6e6f64653a28736572766572293a69636f72725f61656d5f3100bdffff0001bdbd000000140000000800bd007e00019782 -AppServer websphere
[3/11/21 7:28:00:431 CST] 0000156c ProcessResour A ALC-BMC-001-508: Service HtmlToPdfSvc: Native process PID = 22451
[3/11/21 7:28:00:436 CST] 000016c4 J2EEConnectio A Service: HtmlToPdfSvc resource: ProcessResource@feee0cf0(name=HTML2PDFConverter.sh,pid=22451) applying queue wait adjustment of 0s to timeout of transaction: com.ibm.ws.tx.jta.TransactionImpl@fe5479a2#tid=2119742868. Supplied timeout: 300s, Effective timeout: 300s.
[3/11/21 7:28:00:436 CST] 000016c4 J2EEConnectio A Service: HtmlToPdfSvc successfully scheduled an interrupt for transaction: com.ibm.ws.tx.jta.TransactionImpl@fe5479a2#tid=2119742868 after 300s.
[3/11/21 7:28:00:513 CST] 00001c3a ProcessResour W ALC-BMC-001-024: Service HtmlToPdfSvc: Process ProcessResource@feee0cf0(name=HTML2PDFConverter.sh,pid=22451) terminated abnormally with error code {3}
[3/11/21 7:28:00:525 CST] 000016c4 ProcessResour E ALC-BMC-001-001: Unexpected exception while rolling back transaction
[3/11/21 7:28:00:526 CST] 000016c4 ProcessResour E TRAS0014I: The following exception was logged org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No

 

any valuable suggestion are appreciated. 

 

Thank you  

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@Apurva1_12 

Seems the Html2Pdf converter executable is crashing.

 

JFYI- There is a long list of prerequisites for successful Html2Pdf conversion on Unix, so please ensure:

 

  • The directories /usr/lib/X11/fonts and /usr/share/fonts exists. If the directories do not exist, then use the ln command to create a symbolic link from /usr/share/X11/fonts to /usr/lib/X11/fonts and another symbolic link from /usr/share/fonts to /usr/share/X11/fonts.
Symlinks
ln -s /usr/share/fonts /usr/share/X11/fonts
and
ln -s /usr/share/X11/fonts /usr/lib/X11/fonts

 

  •   IBM fonts are copied under usr/share/fonts
  •   Ghost vulnerability fix glibc is available on the machine
  •   The latest versions of 32-bit libcurl, libcrypto and libssl libraries should be installed on the system.
  •    Make sure the above libs exist and create symlinks /usr/lib/libcurl.so (or libcurl.a for AIX), /usr/lib/libcrypto.so (or libcrypto.a for AIX) and /usr/lib/libssl.so (or libssl.a for AIX) pointing to the latest versions (32-bit) of respective libraries
  •    IBM SSL Socket Provider related requirements for HtmlToPDF

     

    Copy the java.security file from <WAS_Installed_JAVA>\jre\lib\security
      [ Default Location is = <WAS_Installed>\Appserver\java_1.7_64\jre\lib\security ] to anywhere on your machine.
      Edit the java.security file at the copied location and change the default SSL socket factories to use the ones provided by jsse2 instead of WebSphere.


      Default provider :
      Default JSSE socket factories
      #ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
      #ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
      WebSphere socket factories (in cryptosf.jar)
      ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
      ssl.ServerSocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLServerSocketFactory

     

     

      Modified file should look like below :
      Default JSSE socket factories
      ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
      ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
     WebSphere socket factories (in cryptosf.jar)
     #ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
     #ssl.ServerSocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLServerSocketFactory

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

@Apurva1_12 

Seems the Html2Pdf converter executable is crashing.

 

JFYI- There is a long list of prerequisites for successful Html2Pdf conversion on Unix, so please ensure:

 

  • The directories /usr/lib/X11/fonts and /usr/share/fonts exists. If the directories do not exist, then use the ln command to create a symbolic link from /usr/share/X11/fonts to /usr/lib/X11/fonts and another symbolic link from /usr/share/fonts to /usr/share/X11/fonts.
Symlinks
ln -s /usr/share/fonts /usr/share/X11/fonts
and
ln -s /usr/share/X11/fonts /usr/lib/X11/fonts

 

  •   IBM fonts are copied under usr/share/fonts
  •   Ghost vulnerability fix glibc is available on the machine
  •   The latest versions of 32-bit libcurl, libcrypto and libssl libraries should be installed on the system.
  •    Make sure the above libs exist and create symlinks /usr/lib/libcurl.so (or libcurl.a for AIX), /usr/lib/libcrypto.so (or libcrypto.a for AIX) and /usr/lib/libssl.so (or libssl.a for AIX) pointing to the latest versions (32-bit) of respective libraries
  •    IBM SSL Socket Provider related requirements for HtmlToPDF

     

    Copy the java.security file from <WAS_Installed_JAVA>\jre\lib\security
      [ Default Location is = <WAS_Installed>\Appserver\java_1.7_64\jre\lib\security ] to anywhere on your machine.
      Edit the java.security file at the copied location and change the default SSL socket factories to use the ones provided by jsse2 instead of WebSphere.


      Default provider :
      Default JSSE socket factories
      #ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
      #ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
      WebSphere socket factories (in cryptosf.jar)
      ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
      ssl.ServerSocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLServerSocketFactory

     

     

      Modified file should look like below :
      Default JSSE socket factories
      ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
      ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
     WebSphere socket factories (in cryptosf.jar)
     #ssl.SocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLSocketFactory
     #ssl.ServerSocketFactory.provider=com.ibm.websphere.ssl.protocol.SSLServerSocketFactory