Skip to content

PDF Info set to default, transparent PNGs do not work #3

@Gramps

Description

@Gramps

It seems the PDF has a default title and creator set which may be a mistake in the code on line 145:

content += _addInfo("Test", "Nolan")

I fixed it by just removing these two strings. Passing anything to _addInfo seems kind of useless since we pass these during the initial PDF creation at PDF.newPDF(), PDF.setTitle(), and PDF.setCreator() so this should just pull from the main variables these set:

func _addInfo():
        var ret = str(len(_xref)) + " 0 obj\n<<\n"
	if not _title.is_empty():
		ret += "/Title (" + _title + ")\n"
	if not _creator.is_empty():
		ret += "/Creator (" + _creator + ")\n"
	ret += ">>\nendobj\n"
	return ret

Also, no matter what I do, I cannot get PNGs to have transparency which makes layering images over each other a mess. I'm not sure if this is just not possible or if there may be another bug somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions