Coder Social home page Coder Social logo

djphoenix719 / pdfoundry Goto Github PK

View Code? Open in Web Editor NEW
41.0 5.0 19.0 23.88 MB

A fully featured PDF viewer module for Foundry VTT, including form fillable actor sheets, journal links, and more!

License: Apache License 2.0

CSS 5.71% TypeScript 12.41% JavaScript 75.69% HTML 2.76% TeX 1.56% SCSS 1.87%
foundry-vtt pdf-viewer fillable-forms

pdfoundry's People

Contributors

brockhaus avatar brothersharper avatar dependabot[bot] avatar djphoenix719 avatar lozalojo avatar lozanoje avatar saif-ellafi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pdfoundry's Issues

v0.6.7 NPC Sheet broken?

Opened one of my NPCs and changed the sheet to pdfoundry.PDFActorSheetAdapter. Produced a blank pdf view. Wanted to change it back, so clicked Sheet Select. This opens a dialog with a Select Sheet dropdown and a Conform button. The dropdown is empty. I cannot change to a different sheet.

Foundry 0.6.6 via Node
DND5e 0.96
Will disable other modules and re-test.

Option to disable Create PDF for players

Although I trust them, I'd rather that my players didn't have the ability to create PDFs. This would prevent them from reading an adventure PDF and getting spoilers.

If the button in Journal could be removed for them as well as disabling it, that would be most preferred!

All text in text fields is oriented 90 degrees clockwise.

Describe the bug
All text in text fields is oriented 90 degrees clockwise.

To Reproduce
Steps to reproduce the behavior:

  1. Upload the PDF as instructed in the manual.
  2. Chose the PDF as a Character Sheet.
  3. Write anything in Text Fields.

Expected behavior
Have the text displayed in proper orientation.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Version Information:

  • FoundryVTT 0.7.5
  • PDFoundry 0.7.10

Additional context
Fillable spaces were made by me from extracted pages and work fine in Adobe Acrobat Reader DC 20.012.20048 and Foxit PhantomPDF 9.5.0.20721
SWNr Karta edytowalna.pdf

[BUG] Checkboxes in new actors default to enabled

Describe the bug
When I create a new actor from an imported form-fillable pdf, PDFoundry selects all the checkboxes by default.

To Reproduce
Steps to reproduce the behavior:

  1. Upload Form-Fillable PDF (I am uploading to asset folder on the Forge
  2. Create the PDF in the game world Journal
  3. Create a New Actor, selecting the pdf foundry sheet.
  4. Select the pdf -- The pdf opens with every checkbox selected.

Expected behavior
A clear and concise description of what you expected to happen.

  1. In step 4 below, I expect a new actor's sheet to open with no checkboxes selected.

Screenshots
Screen Shot 2020-09-26 at 8 57 35 AM

Screen Shot 2020-09-26 at 2 26 23 PM

Version Information:
Server
The Forge; Foundry VTT version: 0.6.6
Client
MacOS: 10.15.6
Browser: Microsoft Edge version 85.0.564.63 and Chrome Version 85.0.4183.121

I have also confirmed the issues with Windows 10 (2004) and Edge (Version 85.0.564.63)

Additional context
Add any other context about the problem here.

Document Foundry 0.7.5 Support Status

Is your feature request related to a problem? Please describe.
Does #28 mean that Foundry 0.7.5 is not yet supported? I know module.json only lists compatibility up to 0.7.3 but it's so common for module authors not to update module.db that it's hard to know when that's lagging awaiting the next module release and when someone REALLY means that it's not supported.

Describe the solution you'd like
Add Foundry 0.7.5/0.7.x statements to https://foundryvtt.com/packages/pdfoundry/ and README.md here so folks who consider PDFoundry an important part of their game know the compatibility status.

Describe alternatives you've considered
At some point I'll stand up a 0.7.5 instance and do some testing myself, but having an issue to collect positive/negative reports seems like it will help concentrate news about testing that the community has done.

Additional context
N/A

[BUG] Centered text fields are left aligned

Describe the bug
In some PDFs, the text fields are centered, yet PDFoundry renders those as left align.

To Reproduce
Steps to reproduce the behavior:

  1. Load and open a PDF which has centered text fields in Foundry VTT using PDFoundry.
  2. Enter text into the centered text field.
  3. The text isn’t centered, but left aligned.

Expected behavior
I expect the text to be left aligned, like it is in Adobe Reader.

Screenshots
This is part of a sheet rendered in Adobe Reader:

Bildschirmfoto 2020-09-05 um 11 06 01

This is the same file rendered in Foundry:

Bildschirmfoto 2020-09-05 um 11 06 17

PopOut compatability

PopOut compatibility must be investigated; it is worthwhile to add compatibility if it is simple to do.

Dropdown state not saved upon closing Character Sheet PDF [BUG]

Describe the bug
When a dropdown list is used to set a value in a formfillable PDF for a character sheet the value does not remain once the sheet has been closed.

To Reproduce
Steps to reproduce the behavior:

  1. Create a character sheet with a formfillable PDF
  2. Set a value in a dropdown list
  3. Close sheet
  4. Open sheet and find the value missing

Expected behavior
I expected there to be a value in the are filled by the dropdown list.

Screenshots
This image shows a dropdown list being used in the relevant sheet.
image

Version Information:

  • FoundryVTT [0.6.6]
  • PDFoundry [0.7.4]
  • Activated Systems & Modules w/ Versions:
    image

P.S I was unable to attach any files as part of this post. Will attempt to reach you over Discord with a share. These files are the actor JSON and the formfillable PDF.

Sheet settings not saving

Describe the bug
When I close out of Foundry on the Forge, and then come back in, later, I have to open one of the PDFoundry characters and make sure the proper sheet is chosen. All sheets are adjusted when I make this change, but it returns to the default sheet choice in Foundry when I close out. Just to ensure I'm describing this so as to be understood, I can get all of my sheets back once I've opened one of the characters and change it to the PDFoundry sheet I built, but each time I close out it returns all sheets to the default.

To Reproduce
Steps to reproduce the behavior:

  1. Close out of Foundry, come back after at least a few minutes,
  2. Open the sheet from the Actor, all Actors do it, including the Template Actor,
  3. The default Simple Worldbuilding System (with plus) Actor sheet is in place,
  4. Select the sheet to change both from default to the pdfoundry sheet,
  5. Select the custom PDF sheet, any of them should do.

Expected behavior
I expected my sheet to open automatically. It's not 0.7.6, either, because it was doing this three days ago, as well.

Screenshots
Wouldn't really help.

Version Information:

  • Browser 82.0.3 (64-bit) Firefox
  • FoundryVTT 0.7.6
  • PDFoundry 0.7.10
  • Activated Systems & Modules w/ Versions
    Decks of Cards 0.2.7, but that one's inactive
    Dice So Nice 3.1.1
    Lordu's Custom Dice for Dice So Nice 0.1
    Simple Worldbuilding Plus 0.3.0
    Torg Eternity Unofficial (Shared Compendiums) v1.0, but I've not begun putting anything into it, yet.

Additional context
I can't think of any.

As far as sending files, I can grab copies of my my Template and a Character PDF copy, but I haven't made any Actors off of the Forge, and I don't yet know how to send things from the Forge without downloading the whole ball of wax.
Captain Mo.pdf
TE-FVTT-CS.pdf

Nothing is filled out on either of these copies, unless I left some testing information on there; they're clean on The Forge.

Thank you for helping me out with this. If something's wrong with my setup, please let me know?

~Paul

Open PDF on specific page directly from journal

Would it be possible to have Journal Entries open a defined PDF on a defined page rather than opening the Journal Entry if the entry only contains a single link to a PDF?
Editing the Journal Entry then could be done via context menu maybe.

[BUG] bug displaying pdf icons in the journal entries

Describe the bug
bug displaying pdf icons in the journal entries (see screenshot) "icons", "pdf"

Screenshots
vaesen is a pdf
Capture d’écran 2020-08-25 à 12 38 12

Version Information:

  • Mac native application
  • FoundryVTT [0.6.6]
  • PDFoundry [0.6.7]
  • activated modules
    Capture d’écran 2020-08-25 à 12 25 07

[BUG]

PDF path does not take into account the routePrefix in options.json

To Reproduce
Steps to reproduce the behavior:

  1. setup a foundry instance with a route prefix "examplePrefix"
  2. install module
  3. enable and view PDFoundry manual error.

PDF.js v2.6.320 (build: bfbef604) Message: Missing PDF "https://vtt.example.com/modules/pdfoundry/assets/manual/en/manual.pdf".

route should be https://vtt.example.com/examplePrefix/modules/pdfoundry/assets/manual/en/manual.pdf

  • FoundryVTT [e.g. 0.6.6]
  • PDFoundry [e.g. 0.7.1]

I can still add pdf's by manually adding the route prefix so I know it works but the manual doesn't load through the default ui buttons and it's slightly more work to add new pdf's. There may be other issues caused by this but I have not found them.

[BUG] Opening a PDF results in a lot of warnings

Describe the bug
Opening a PDF results in a massive amounts of warnings. The particular PDF is Candlekeep Companion, opening it from sidebar results in this:
image

Version Information:

  • FVTT Electron App
  • FoundryVTT 0.7.1
  • PDFoundry 0.6.1

[BUG] Journal entry tokens on map are remembering page offsets from the previously used journal entry token when referencing the same PDF.

Describe the bug
I'm referencing the same PDF for multiple PDF Journal Entries -- but refer to different page offsets. I drop these journal entries onto my different maps. Problem is that the journal entry token on each map is remembering the page offset last used -- even when caching is disabled.

To Reproduce
Steps to reproduce the behavior:

  1. Create a PDF Journal Entry called BOO for PDF A with page offset X. Notice that "Test Settings" works as expected.
  2. Create a PDF Journal Entry called FOO for PDF A with page offset Y. Notice that "Test Settings" works as expected.
  3. Drag an instance of BOO to Map NEAT.
  4. Drag an instance of FOO to Map COOL.
  5. Go to Map NEAT and double-click on instance BOO.
  6. Notice that it probably shows the PDF using page offset Y from #2 above.
  7. Notice that as you manipulate the PDF for either BOO or FOO that the page offset you expect for the other is messed up. Shows the last page offset you were using.
  8. However, notice that "Test Settings" works as expected for all the Journal Entries listed in the Journal.
  9. Notice that the page offset used for the last "Test Settings" is remembered by all the journal entry instances on the maps.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Version Information:

  • Browser: Using Foundry VTT application.
  • FoundryVTT 0.6.6
  • PDFoundry 0.7.4
  • Pathfinder 1 version 0.74.0 (I don't think you need my module information)

Additional context
It's absolutely critical to my purposes to be able to reference the same PDF in multiple Journal Entries and be able to use different page offsets. If I move around in the PDF, I do NOT want that offset remembered -- I always want the page offset I setup for the Journal Entries to be used. Currently, accessing the Journal Entries from the Journal directly and clicking the "Test Settings" button is the behavior I want to have when I click the Journal Entry instances on my maps -- and I will use that as a work-around until this issue is fixed. But it would make things much easier if this problem was fixed.

[BUG] Page offset doesn't work if scrolling or spread mode has been changed from the default

Describe the bug
Dynamic links with Page offset doesn't work if the scrolling mode or spread mode have been changed.

To Reproduce
Steps to reproduce the behavior:

  1. Open a PDF and access PDFjs settings in the double arrow top right
  2. Change from Vertical scrolling to Horizontal scrolling or Wrapped scrolling
  3. Try opening the same PDF with a dynamic link with page offset
  4. PDF opens to first page (seems to also be the case with "remembered page location")

Version Information:

  • FVTT App
  • FoundryVTT 0.7.1
  • PDFoundry 0.6.10

Additional context
This seems also to be the case if you change the Spread options. Not sure how easy this will be to fix, but maybe disabling those options (or reset them on opening?) if it can't be fixed.

Allow custom form field background colors and transparency values

Is your feature request related to a problem? Please describe.
Would be amazing if we could change the form field colors and transparency values, to achieve better synergy with the sheet. Something like:
image

Describe the solution you'd like
Since each sheet is a different world, I'd suggest a setting where user can simply input the rgba() value

Describe alternatives you've considered
Replicate multiple themes each with preset colors and transparency for form fields. But this will bloat too much.

Additional context
As a hint, this is where the css style matters:

.annotationLayer .textWidgetAnnotation input,
.annotationLayer .textWidgetAnnotation textarea,
.annotationLayer .choiceWidgetAnnotation select,
.annotationLayer .buttonWidgetAnnotation.checkBox input,
.annotationLayer .buttonWidgetAnnotation.radioButton input {
  background-color: rgba(0, 54, 255, 0.13);

EDIT: As a side suggestion please also consider the :hover style border that shows up, it can be weird in some forms

.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
  border: 1px solid rgba(0, 0, 0, 1);
}

Links to open a PDF on page x.

Having PDFs in FVTT is great but having to navigate to a page you seek is cumbersome. Also linking to a PDF (@item[PDF-Title]) only opens the sheet not the PDF. This severely limits the usefulness.

Introducing a way to link to a specific page inside of a specific PDF would be greatly beneficial. For example you have a Journal Entry "Races" containing information about the races available in your setting. Having a link there that leads directly to the page in the PDF containing detailed information about the races would add another layer of usefulness. This would allow you to place that link for further reading available to everyone looking at that JournalEntry.
I don't know how such a link could look like but it should be made easy to remember.

An alternative (also very beneficial and one that should possibly be introduced along with links) would be a way to set up a Journal Entry that does not even opens a Journal Entry but a PDF on a specific page directly. This way - if you have a PDF containing all the information - you could name the Journal Entry Races and have it open the PDF on the page that shows the information on races without the need to write anything in your Journal.
Linking to a bookmark present in the PDF is also a viable alternative.

[BUG] Inspect Data seems not to be working

Describe the bug
When I have set up an actor with an actor sheet, clicking on Inspect Data does nothing.

To Reproduce

  1. Create an actor with a form-fillable PDF as its sheet.
  2. Click on Inspect Data after opening the PDF via double clicking the actor’s token.

Expected behavior
I expect the Data Inspector to open.

Version Information:

  • FoundryVTT 0.6.6
  • PDFoundry 0.7.4 (I think it did work on 0.7.2)
  • Activated Systems & Modules w/ Versions: Simple Worldbuilding System 0.36

[BUG] PDF Details are openable by anyone

Describe the bug
PDF Details are openable by anyone

To Reproduce
Steps to reproduce the behavior:

  1. Log in to a game with a PDF as a Player
  2. Click on the PDF entry than the icon

Expected behavior
Opening of the PDF itself, or otherwise the details of the PDF but with the settings being locked (like being able to see Modules but not able to turn them on or off), rather than editable to then be denied access to edit.

Version Information:

  • Chrome 81.0.4044.92
  • FoundryVTT 0.6.5
  • PDFoundry 0.6.6
  • Pathfinder 2nd Edition 1.10.4.1757
    Installed Modules:
  • actually-private-rolls--v0.2;
  • adventuremusic--v1.0;
  • better-rolltables--v1.5.0;
  • CautiousGamemastersPack--v0.1.6;
  • chat-images--v1.1.3;
  • combatready--v1.1.8;
  • compendium-folders--v1.0.2;
  • cursor-hider--v1.1.7;
  • cursor-zoom--v1.0.0-compatible-with-0.6.5;
  • DancingLights--v2.1.5;
  • deselection--v1.4.4;
  • displaymode--v0.5;
  • dynamic-illumination--v0.3.3;
  • easy-target--v2.2;
  • followme--v1.0.0;
  • forien-token-rotation--v0.1.1;
  • fpsmeter--v1.0.0;
  • fxmaster--v0.7.2;
  • game-icons-net--v0.0.5;
  • group-initiative--v1.3.1;
  • healthEstimate--v1.3.3;
  • image-previewer--v0.7;
  • lib-wrapper--v1.0.1;
  • look-at-that--v0.0.1;
  • michaelghelfi--v1.0;
  • miskasmaps--v1.0;
  • mountup--v3.0.1;
  • multilevel-tokens--v0.3.0;
  • music-assist--v0.1.0;
  • parallaxia--v0.2.9;
  • permission_viewer--v0.7;
  • pick-up-stix--v0.8.2;
  • pings--v1.2.9;
  • polyglot--v1.1.1;
  • searchanywhere--v2.0.4;
  • simplemobile--v0.1.1;
  • spellarena--v1.1.0;
  • teleport--v2.1.7;
  • furnace--v2.2;
  • tidy-ui_game-settings--v0.1.15;
  • TinyTokens--v0.0.4;
  • token-auras--v1.4;
  • token-health--v0.1.7;
  • token-info-icons--v1.1.5;
  • tokenmagic--v0.3.0c;
  • turnAlert--v1.4.0;
  • vance-sidebar-resizer--v0.0.2;

@PDF not working with MEME Editor Replacement

Describe the bug
embedding a pdf in a journal entry does not work. The @pdf syntax seems to be not recognized
when dragging a pdf into a journal entry, it is recognized as a journalEntry (eg @JournalEntry[fmKbkcXeg07L0dvk]{"name of the pdf"}

To Reproduce
see screenshot

Screenshots
Capture d’écran 2020-08-25 à 13 03 28

Version Information:

  • Mac native
  • FoundryVTT [.6.6]
  • PDFoundry [0.6.7]
  • Activated Systems & Modules w/ Versions
    Capture d’écran 2020-08-25 à 12 25 07

Setting PDFs as Journal Notes on the tabletop

Since Journal Entries can be put on the tabletop to create Journal Notes it would be good to have that functionality for PDFs as well. Currently if you stick a PDF to the tabletop the PDF can't be opened by clicking on those. It would also be great if for those notes a page could be defined.

When PDF Foundry is active, cannot draw horizontal lines or create tables in a journal entry

Reporting on the behalf of Pete | Dragons Are Real#6554, so I apologize if I don't have all the details. Pete, if you can add anything missing, that would be greatly appreciated!

Describe the bug
When Pdfoundry is active I cannot draw horizontal lines or create tables in a Journal entry using the TinyMCe editor.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Version Information:

  • Browser [e.g. Chrome, Safari] version [e.g. 22]
  • FoundryVTT [e.g. 0.7.5]
  • PDFoundry [e.g. 0.0.1]
  • DND5E 0.98, & Modules w/ Versions

Additional context
Add any other context about the problem here.

Interactive PDFs

Is your feature request related to a problem? Please describe.
No, I have been trying to find a way to play Vampire the Masquerade through FoundryVTT and your module seemed like the solution. Until I got it all installed and working properly and found that PDFs lose their interactivity function.
V20_4-Page_Neonate_Interactive.pdf

Describe the solution you'd like
I would love to have a way to be able to retain the interactive features of PDFs like the one above with the ability to save them after they were edited. This would allow me to use them as character sheets in Foundry

Other than that the module is great!

High CPU Load when having a PDF character sheet open, Fans spinning hard

Describe the bug
I am using a laptop, I notice when I open a character sheet that uses PDFs, my CPU fans start spinning hard and fast. And this remains so while the PDF is open. Stops when I close the pdf or alt-tab into another browser page.
PDF Sheet on the test is just 2 pages long.

Version Information:

  • Browser: Chromium Edge
  • FoundryVTT: 0.7.7
  • PDFoundry: Latest?
  • Activated Systems & Modules w/ Versions: Not much / Not relevant

Screenshots:
image

With sheet closed:
image

Be able to change the theme of PDFjs

Not sure if imagining things, but didn't PDFjs have a dark theme prior to 0.6.10 or something...?

My personal preference is a dark theme, which i think goes better together with the windows in FVTT. But maybe have an option in the module settings to change the theme?

[BUG] Page Offset needs a specific value, can't be null

Describe the bug
"Open to page" in dynamic links doesn't work unless a Page Offset value is entered in the PDF settings. For a PDF without an actual page offset, the value needs to be specifically set to 0.

To Reproduce
Steps to reproduce the behavior:

  1. Add a PDF
  2. Leave the Page Offset empty (no value)
  3. Make a dynamic link with a page offset
  4. Doesn't work 😞

Version Information:

  • Chrome
  • FoundryVTT 0.7.1 (tested on the 0.6beta on 0.6.5 too)
  • PDFoundry 0.6.1

Additional context
I think a null value should be treated as 0.

Programmatically "Create PDFs"

We would like to include a PDF with our game system and I want to programmatically create the PDF journal entry during the game initialization.

We want to include the "free" version of the game rules (GURPS LITE) and provide a few example character sheets which reference them. Due to the nature of our character sheets, the "page ref" is data driven, and it would just be easier if we could have the already created journal entry to enable PDFoundry's openPDFDataByCode() method.

Hide Highlighted Text Fields

Is your feature request related to a problem? Please describe.
Right now, the text fields for PDFs are always highlighted in blue.

Describe the solution you'd like
I’d like an option to hide the blue highlight text fields, like Adobe Reader can. I think it’s visually more pleasing and for character sheets generally not needed.

[BUG] Not saving dropdown box selection for MrGone PDF form fillable sheets

Sheet not saving dropdown box
WtF_2ndED_Official_4-Page_Interactive.pdf

When using MrGone PDFs for character sheets the dropdown selection is now saving in PDFoundry.

To Reproduce
Steps to reproduce the behavior:

  1. Download: https://mrgone.rocksolidshells.com/pdf/WtF/WtF_2ndED_Official_4-Page_Interactive.pdf
  2. Set it as a form fillable PDF character sheet.
  3. Make a new character with the sheet.
  4. Try to select something in the dropdown box.
  5. Sheet fails to save dropdown box.

Expected behavior
The sheet to save the dropdown box selection.

Version Information:

  • Browser [e.g. Chrome, Safari] version [e.g. 22]
  • FoundryVTT 0.6.6
  • PDFoundry 0.7.3
  • Mage the Awakening 2e system activated

Additional context
In addition the dropdown box does not allow you to enter a custom item even though that is how it is designed in normal browsers.

PDF and Exported Character Provided
PDF + Char Export.zip

Add the ability to include journal pdf into compendiums

Is your feature request related to a problem? Please describe.
When I drag & drop a pdf-journal entry into a new compendium, I cant open the pdf-journal from inside the compendium, no pdf is loaded, only an option for text/image, see image:

Describe the solution you'd like
To be able to create compendiums with journals/pdfs, so that we can export to modules that we can activate in other worlds.

Two books, but one prefix

Is your feature request related to a problem? Please describe.
The GURPS Basic books are two separate and distinct PDF files: Characters, and Campaigns. The page number, however, is consecutive: Characters start on page 1 and run to 336; Campaigns starts at page 337 and runs through 575.

It is a GURPS convention to refer to both these books using the abbreviation, "B" (e.g., B100, B450).

I would like PDFoundry to allow me to create two PDFs and map both of them to the B prefix; but to look at the page number to decide which PDF to open.

Describe the solution you'd like
In the PDFoundry settings, allow both a PDF Code and a Page Range to refer to a specific PDF. If the page range is omitted, PDFoundry works as it does now. If the page range is included, the module would check the combination of Code and Page Range to determine which book to open.

If the user enters something inconsistent, such as overlapping page numbers, PDFoundry may either show the user an Alert and bail out or pick the first PDF to display when clicking a PDF code.

Describe alternatives you've considered
Certainly the authors of GURPS material in Foundry may edit the book abbreviation ("B1:" and "B2:" for example, leading to non-ambiguous references such as B1:100 and B2:450) but the current standard (B100, B450) is well established and would lead to lots of hacking of imported data of established materials (such as character sheet data).

Warhammer System interactions.

Interaction issue with background when using the Warhammer Fantasy System. Screen that shows PDF information can't be seen due to the background graphic not loading. Leaving it as a black screen. You can faintly see the gray writing enough to continue and make things work, but isn't 100%

image

[BUG] Links to PDF do not function in SWADE Edges/Hindrance/Powers preview

Describe the bug
In SWADE Character sheets (not NPC sheets) have a section called Edges which have their description shown on the right when an Edge/Hindrance is selected on the right. In this description preview (not technically a preview as it shows the entire description) links to PDFs to not function. Links to journalEntries and such core function links work fine. The same is true for the powers.

To Reproduce
Steps to reproduce the behavior:

  1. Create a character sheet (not an NPC sheet)
  2. Create a new Edge by clicking on New Item in Foundry and selecting Edge from the drop down menu.
  3. Mark it as an arcane Background Edge (not related to the issue, but important for the second part of the issue).
  4. In the description of the edge put a link to a PDF.
  5. Save and close the Edge. Open the character created in Step 1 and click on the Edges Tab, then drag the just created Edge onto the sheet.
  6. Click on the new edge on the left and the link will be shown as plain text on the right. The same is true for Hindrances.
  7. Since the new edge is marked as an Arcane Background Edge, a new tab is available: "Powers", Click on it.
  8. Click on the plus on the right in the headline next to "power points".
  9. In the new power put a PDF link, save and close.
  10. In the new power the PDF link will be shown as plain text as well.

Expected behavior
PDF links should always be shown as links, not in plain text.

Screenshots
Screenshots where provided on Discord.

Export to PDF Tools

Requested for the PF2E for use with Pathfinder Society. Need to map specific data from the PFS tab to fillable form fields. Should make this generic enough while I'm at it other systems can support it if desired.

Form data was occasionally not rendered

Describe the bug
During play, for some of the players some of the data in forms of Actor Sheets occasionally wasn’t rendered. While most of the data was there, in some of form fields the data was simply missing (as in invisible or not rendered, the data was still there in the background). Closing and re-opening the window solved this and the data re-appeared correctly.

It happened with different forms for different characters each time this happened.

To Reproduce
I wasn’t able to reproduce it reliably as the host, but I think it happened once for me, too. All the players did was opening and closing their sheets from time to time.

As a GM, I also opened their sheets. We did have the same sheet open by the player and by me as the GM simultaneously, but that didn’t result in the missing data directly (or at least immediately), as far as we could tell.

I also once showed them another PDF using the “Show to...” button.

Sorry this is so vague. We were not able to see a pattern at which it happened.

Expected behavior
I expected that all the data in the forms are rendered all the time.

Version Information:

  • Browser Chrome and Firefox (both on the newest version, according to my players)
  • FoundryVTT 0.6.6
  • PDFoundry 0.7.3
  • Simple Worldbuilding 0.3.6, Backgroundless Pins 1.0.0, Better Text Drawings 1.0.1, Combat Effects Tracker 1.0.0, Cursor Zoom 1.0.0, Custom Theme for PDFoundry (the one we did on Discord), Dice So Nice! 2.0.4, Show Notes 0.2, libWrapper 1.0.2, Pin Cushoin 1.1.2, Simple Dice Roller 1.0.1, Token Animation Tools 1.1.3

[BUG] route prefix is not used

PDF path does not take into account the routePrefix in options.json

To Reproduce
Steps to reproduce the behavior:

  1. setup a foundry instance with a route prefix "examplePrefix"
  2. install module
  3. enable and view PDFoundry manual error.

PDF.js v2.6.320 (build: bfbef604) Message: Missing PDF "https://vtt.example.com/modules/pdfoundry/assets/manual/en/manual.pdf".

route should be https://vtt.example.com/examplePrefix/modules/pdfoundry/assets/manual/en/manual.pdf

  • FoundryVTT [e.g. 0.6.6]
  • PDFoundry [e.g. 0.7.1]

I can still add pdf's by manually adding the route prefix so I know it works but the manual doesn't load through the default ui buttons and it's slightly more work to add new pdf's. There may be other issues caused by this but I have not found them.

[Tracking] PDF Automation Tools

Automation Tools for form fillable actor sheets will allow users to easily create helpers and permit disabling fields.

The use case here is game speed and removal of mathematical errors during play.

These features are still in the planning phase.

Editing

  • A GM only edit mode should be available to prevent clutter during gameplay.
  • A canvas should be overlaid onto the PDF to allow metadata to be drawn onto the PDF.
  • Visualize linked fields by drawing lines between them. Overlay operator onto the line to illustrate performed operation.
  • Allow drag and drop connections between fields

Functionality

  • Virtual derived statistics should be definable with data sources from form fields
  • Fields should be as having a value equal to a derived statistic
  • Addition of form and derived statistics

Actor

  • Make available PDF data and user defined derivative data to the actor for use in roll macros

[BUG] Opening PDF results in errors in console, when caching is set to off

Describe the bug
I seem to get some errors in the dev console when opening a PDF (see screenshot below). The PDF is configured to not cache, and I'm opening it as a GM. Foundry VTT is running locally on the computer, and the pdf is stored locally.

Checking caching seems to get rid of the errors...

Screenshots
image

Version Information:

  • FVTT Electron App
  • FoundryVTT 0.7.1
  • PDFoundry 0.6.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.