Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3709

RS: export lectures as PDF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12.5.9, 13.0
    • Component/s: None
    • Labels:
      None

      Description

      The PDF toolkit cannot calculate the width of text with line feeds. They need to be removed first. I don't need if the issue is specific to PDFBox 2 or is older because it is almost impossible to add a line feed in the title of a lecture block.

      2018-10-25 07:34:42,438 [ajp-nio2-8067-exec-3] ERROR OLATRuntimeException - OLAT::ERROR ^%^ N67-E6 ^%^ org.olat.core.logging
      https://xyz.ch/auth/RepositoryEntry/101385059/lectures/0
      Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:62.0) Gecko/20100101 Firefox/62.0
      **RedScreen** U+000A ('controlLF') is not available in this font Helvetica-Bold encoding: WinAnsiEncoding
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>attendance.list.to.sign</compname>
      		<compclass>org.olat.core.gui.components.link.Link</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>attendance.list.to.sign</command>
      			<tostring>com:attendance.list.to.sign,org.olat.core.gui.control.Event@265f2b04</tostring>
      		</event>
      	</componentinfo>
      	<controllerinfo>
      		<controllername>org.olat.modules.lecture.ui.TeacherLecturesTableController$ToolsController</controllername>
      		<controllername>org.olat.modules.lecture.ui.TeacherLecturesTableController</controllername>
      		<controllername>org.olat.modules.lecture.ui.TeacherOverviewController</controllername>
      		<controllername>org.olat.course.run.CourseRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      >>> stack of 1.cause::org.olat.core.logging.OLATRuntimeException: U+000A ('controlLF') is not available in this font Helvetica-Bold encoding: WinAnsiEncoding
      -> at org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:116)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57)
         at org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46)
         at org.olat.core.gui.components.Window.dispatchRequest(Window.java:589)
         at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:282)
         at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
         at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:273)
         at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:190)
         at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:294)
         at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:237)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
      >>> stack of 2.cause::java.lang.IllegalArgumentException: U+000A ('controlLF') is not available in this font Helvetica-Bold encoding: WinAnsiEncoding
      -> at org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:426)
         at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:324)
         at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:353)
         at org.olat.core.util.pdf.PdfDocument.addParagraph(PdfDocument.java:148)
         at org.olat.modules.lecture.ui.export.LecturesBlockSignaturePDFExport.create(LecturesBlockSignaturePDFExport.java:141)
         at org.olat.modules.lecture.ui.TeacherLecturesTableController.doExportAttendanceListForSignature(TeacherLecturesTableController.java:315)
         at org.olat.modules.lecture.ui.TeacherLecturesTableController.access$200(TeacherLecturesTableController.java:86)
         at org.olat.modules.lecture.ui.TeacherLecturesTableController$ToolsController.event(TeacherLecturesTableController.java:397)
         at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:202)
         at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
         at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      
      

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              srosse Stéphane Rossé
              Tester:
              Mandy Menzel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m