Error in PDF creation

Hey Guys,

I have an Problem with the PDF creation. I customized it a bit like described in the documentation and it worked fine. But suddenly It stopped working. Now even after deleting the customization and all of the code it wont work. The error only occurs for this list. Every time I try to start the PDF Export I get the following error:

Dear Joshua,

Could you please provide your customization?

Dear Alex,

actually I was able to track down the error now. But it doesnt make sense that it worked for a while and suddenly stopped working. The error occurs when there is a picture column in the form! When a I delete the picture fields the export works fine. Maybe a Bug on your side?

Hello again,

I was able to reproduce this error with a complete new list with an image column. So this is probably a bug?

Dear Joshua,

I’m sorry, I can’t reproduce your issue yet.

  1. Could you please provide your PDF customization?
  2. Have you updated to the newest version? https://plumsail.com/docs/forms/general/update-package.html

Dear Alex,

  1. there is no customization anymore.
  2. Yes I updatet earlier today.

But I found something out: The PDF creation works if the image column is set . If there is no image url set it fails

Dear Joshua,

I’ve reproduced the issue, it’s definitely a bug. We’ll analyze the issue more closely, but now, as a workaround, you can use this code on Display form to avoid the error:

fd.spRendered(function() {
	var img = $(fd.field("Picture").$el).find('img');
	if (img.attr('src') == "http://") {
		img.remove()
	}
})

Dear Joshua,

The issue is solved, you can try again without this code.

Dear Alex,

works like a charm :slight_smile: thanks for your help!