farling42 / fvtt-pdf-pager

PDF Pager for Foundry
MIT License
6 stars 4 forks source link

Provide a way to put image fields into the PDF #68

Open farling42 opened 1 year ago

farling42 commented 1 year ago

Find how a PDF can mark where the image associated with the Actor/Item can be placed.

farling42 commented 1 year ago

See https://answers.acrobatusers.com/Add-image-box-form-people-upload-photo-q163001.aspx

farling42 commented 1 year ago

COC7 character sheet PDF produces the following from pdf.js:

<section data-annotation-id="702R" data-internal-link="" class="buttonWidgetAnnotation pushButton" style="left: 73.8433%; top: 3.85914%; width: 17.0408%; height: 15.418%; z-index: 6;">
    <canvas width="141" height="166"></canvas>
    <a data-element-id="702R" href="" id="pdfjs_internal_id_702R"></a>
</section>

A normal CoC7 Actor sheet has:

<div class="sheet-portrait">
    <img class="photo" src="icons/svg/mystery-man.svg" title="bob" data-edit="img">
</div>
farling42 commented 5 months ago

Display of existing image added in 0.48.0

But there is no method for a user to modify the current image via the PDF sheet.