PDF Troubleshooting

 

Extra borders of the table are displayed inside or outside the table.

Set the color of the corresponding borders to white. In the application, HTML is converted to PDF using the PDF generation function of Visualforce in Salesforce, and although it is displayed correctly on HTML, it may not be as expected when converted to PDF in Visualforce. This is due to the specification of Visualforce, so it cannot be supported.

 

The borders of the table are not displayed.

Set the borders again from the Table Properties. On the Word template, the borders of adjacent cells are displayed and the borders of the target cell may not be set.

 

The borders of the table are cut off at the page break of the child record.

This is a specification. PDF is output by the PDF generation function of Visualforce of Salesforce, and the page break position is automatically judged by the function of Visualforce.

When automatic judgment is made, the borders output of the table between page breaks cannot be adjusted on the OFC side.

In Office File Creator Pro, borders are output without being cut by setting.

PDF Page Break Settings

 

A one-page template is output as two pages.

Reduce the top and bottom margins in the Page Layout.

 

The row height of the table is low.

Specify the row height from the Table Properties.

 

The text position of the cells in the table is set to center alignment, but the PDF is output with bottom alignment.

When setting the vertical position of text in a cell, set the table properties and paragraphs.

  • From Table Properties > Cells tab, set vertical alignment to "Center"
  • From Paragraph > Indents and Spacing tab, set the Line spacing to "Single"

 

The text position of the cells in the table is set to bottom alignment, but the PDF is output with center alignment.

When setting the vertical position of text in a cell, set the table properties and paragraphs.

  • From Table Properties > Cells tab, set the Vertical alignment to "Bottom"
  • From Paragraph > Indents and Spacing tab, set the Line spacing to "Exactly" and adjust the "At" values

 

When setting merge fields in a table in a Word template, the text in the cell does not wrap and the table stretches horizontally.

From Table Properties>Options in the Table tab, check off "Automatically resize to fit contents".

 

The beginning of characters is aligned by tab spacing in Word, but it is not output at the correct position.

The Word tab spacing is not supported. Create a table with uncolored borders to align the top position.

 

The text is shifted to the left, right, top, and bottom.

Create a table and place the text within the table. Set the layout by dividing cells and showing/hiding table borders.

 

Watermarks are not output.

Watermarks in Word are not supported.

 

An image is superimposed over the company name, but the image is out of alignment.

It is not possible to output images over text. Save the Word template file as a PDF manually, then enlarge the target text and image to 200-400% and save a screen capture. Set the image to the template.

*When taking a screen capture, enlarge the text and image because they are blurred at full size. However, if the image size is too large, an output error will occur. Adjust the magnification ratio accordingly.

 

The company logo image is not output in PDF output.

It may be an object instead of an image. Objects such as shapes and text boxes are not supported. Right-click on the object and select "Save as Picture" to save it as an image and replace the object with an image.

 

Shapes are not output.

Objects such as shapes and text boxes are not supported.

 

Text Boxes are not output.

Objects such as shapes and text boxes are not supported.

 

The layout is corrupted.

The pattern may not be supported for PDF output. Check the following.

  • Blank spaces with tabs in Word are not supported.
  • Tables cannot be aligned left to right, nor can text be displayed next to a table. For different layouts on the left and right sides, create a single table and set it up by dividing cells and displaying/hiding table borders.
  • Tables copied and pasted from other applications may have a corrupted layout when output. If the copied layout is corrupted, create a new table in the template file.
  • Objects such as shapes and text boxes are not supported.
  • Images cannot be output over text. Save the Word template file as a PDF manually, then enlarge the target text and image to 200-400% and save a screen capture. Set the image to the template.

 

Double-byte characters are not output.

Please make sure that "PDF Includes MultiByte Character" in the template record is set to "Include" and "PDF default font" is set to "Arial Unicode MS". Or, the output characters may be External characters. External characters are not supported.

 

The error message "An internal server error has occurred" is shown.

Plese check the error message on the preview screen by clicking the "Preview PDF" button on the OFC_Template record page. More detailed error messages will be displayed in the preview.

 

The error message "common.apex.runtime.impl.ExecutionException: id: xxxxx Invalid integer: 0.99999.." is shown.

The template file may have been created outside of the Microsoft Office desktop version. Create a template file in Microsoft Office Desktop Edition. Template files created by other applications are not supported.

 

The error message "common.apex.runtime.impl.ExecutionException: id:xxxx Attempt to de-reference a null object: execute=write:curElem=r row=4" is shown.

There may be a template file pattern that is not supported by Office File Creator. The following are possible ways to deal with this issue.

  • Change text font to "standard"
  • Change complex parts of the layout to simple ones
  • Delete shapes