Hi lefnire,

Quick question, is there any views integration with this module? For example am I able to refer Fill PDF to a views page to get the required data fields to populate the PDF fields? The reason I ask this is because I'm currently using this with the relativity module and I wanted to link fields from a parent node to the PDF generated using the child node.

Just I just thought of another way to get by this, can you page more than 1 NID for PDF fill to get field information from?

Thanks

Damo

Comments

Parkes Design’s picture

Hi, any suggestions would be greatly appreciated.

cm_is’s picture

Hi there,

would also really be interested to use tokens from two diffrent nodes.

e.g. a user signs up an chooses a particulary node, the user information stored as cck as well as the information regarding the choosen node should be handed to the PDF.

Any help would be really appreciated.

Great module !

Thx

Christian

lefnire’s picture

The >1nid (or multiple token-sources in general) problem is definitely on my TODO. This shouldn't be difficult to develop, and was in fact what I was originally intending, but got sidetracked .

When I get that puppy going, pulling en entire view in as one field would be easy via token_custom, but I'm not sure about linking a Form to a view to map view-fields to form-fields. Initial impression is that this will be difficult, and will be towards the bottom of my list. If the >1nid fix sheds light as to the contrary, I'll keep you posted.

cm_is’s picture

Sounds great!
thanks for the fast reply!

lefnire’s picture

Title: Views Integration / or more than 1 NID » Views Integration
Version: 6.x-1.2 » 6.x-1.x-dev

Alright, I'm separating this out into two tickets: views integration, and multiple Nodes. Added the multiple node functionality! see #708796: Multiple node sources for how-to

wizonesolutions’s picture

This is an interesting request. Is anyone still interested in this? I think it can all be done with what we have right now myself...since Views are usually made up of nodes anyway, or the two can be tied together in various ways.

Parkes Design’s picture

I'm still interested in this. I've come up with a dodgy way of doing this using rules to actually load a reference node and populate hidden fields on a node then getting Fill PDF to use those tokens. There has to be an easier way.

wizonesolutions’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

New features will happen for 7.x now, so bumping version.

perisdr’s picture

From what I have read and tried there is no way now to actually populate a pdf with a user's data. A feature likes this would be amazing addition to this amazing module.

What I want to know if there is a workaround I could implement. Like using a view with an uid argument to create the data and then save them elsewhere in the site so Fill PDF can get them. The #7 comment got me thinking but I cannot figure out how using views and rules I could achieve this. Any insights anyone?

wizonesolutions’s picture

perisdr: This is a bit late in the game, but you can use chained Node or Webform tokens to get user information. So if the user owns a node, you could fill with stuff like node:author:(token). If you expand the token help, these are there.

JohnnyX’s picture

Could it also possible to generate a PDF from a views?
I try to serve a views page as PDF (download)...

wizonesolutions’s picture

JohnnyX: Check Views PDF.

JohnnyX’s picture

Tested, but doesn't working because of a bug. Waiting for a fix.

Thanks

wizonesolutions’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Postponed
Issue tags: +fillpdf2

#1606828: Expose FillPDF metadata to Views has some discussion around this too. This one will likely be solved when Fill PDF Fields are developed, but leaving it open and postponed until the issues regarding Fill PDF Fields in Views and views of Fill PDF Configurations are distinct and clear (right now they're all kind of running together).

Tagging also.

liam morland’s picture

Version: 7.x-2.x-dev » 8.x-4.x-dev
Issue summary: View changes
liam morland’s picture

Status: Postponed » Active
Issue tags: -fillpdf2
pancho’s picture

Title: Views Integration » Allow using a view as data source
Priority: Normal » Major
Related issues: +#3042868: Limit FillPDF Form to a single entity type by default, +#1517652: [PP-1] Increase redirectability of Fill PDF URLs

Will be looking at this interesting and IMO important feature request.

While chained tokens cover a number of usecases, using a view as our single source would allow us to completely deprecate populating a single FillPDF form with n entities. Instead we would allow either one entity or one view as our data source.

Complex entities with a number of 1:1 and/or 1:n relations wouldn't require replicating the logic anymore, if all fields are present in a single, flat (and possibly aggregated) view.

This would also simplify #1517652: [PP-1] Increase redirectability of Fill PDF URLs.