Skip to content

Artwork tools

Set up Canva artwork and approved company templates

Configure the shop app, customer authorisation, company Autofill and reviewed PDF handoff.

PressFlow 3.0.0 · 14 min read

Guide source reviewed for PressFlow 2.0.5.

PressFlow includes an optional Canva REST connector. It is off by default. It can use a customer's own Canva account for artwork, or a company's authorised Canva connection to fill approved Brand Templates. The existing PressFlow designer, private uploads and native locked templates remain available independently.

This release supplies the connector code, not a Canva subscription, approved developer app, shared client secret or Print Partnership. The printer must configure a Canva app and validate real exports before allowing customer use.

1. Prepare the Canva app

  1. Open Canva's Developer Portal and create an app with the REST APIs enabled. A public app needs Canva review before public release. Private apps are restricted to eligible Enterprise teams; development access does not mean all customers can already authorise the app.

  2. In WordPress, open PressFlow → Canva artwork. Copy the displayed callback URL.

  3. Add that exact URL to the app's authentication redirect URLs. Enable Return navigation and use the same URL as its Return URL. In 2.0.1 and later this is the query-free WordPress handler, for example https://your-shop.example/wp-admin/admin-post.php. Do not add a question mark, action=pfw_canva_callback, code, state or correlation_jwt to the registered URL. Canva adds the response parameters on return. Replace the previous URL in both Canva settings if upgrading. Use HTTPS and the actual shop domain. The shop and callback must share an origin (scheme, host and port), so the customer session can return securely.

  4. Enable these scopes for ordinary customer artwork:

    design:meta:read design:content:read design:content:write
    
  5. For corporate Brand Templates, also enable:

    brandtemplate:meta:read brandtemplate:content:read
    
  6. Paste the app's Client ID and client secret into PressFlow → Canva artwork. Save. The secret is encrypted on the WordPress server and is never shown again. Leave its field blank to keep it; use the removal checkbox to clear it.

  7. Open PressFlow settings → Features & integrations, enable Canva artwork, then save. The option appears only when the site connection is configured.

If Canva reports “This URL must not contain query components”, install PressFlow 2.0.1 or later, copy the query-free URL from Canva artwork settings and update both the authentication redirect and Return navigation URL in Canva. Close any old Canva connection window and start a new connection from the product or company page. Do not remove the query component while using 2.0.0: its handler requires the old action. The corrected handler needs no permalink flush, server rewrite rule or new WordPress page. Visiting the bare callback directly can return an empty page; it is used when Canva returns connection or signed editor-response data.

This first connector uses the printer's own app credentials. It does not depend on a PressFlow-hosted OAuth broker and does not ship one shared secret to every installation. A central approved PressFlow app/broker is a separate distribution decision. Each shop must have the callbacks registered for its configured app. Never paste credentials into product descriptions, browser scripts, screenshots or customer-facing content.

References: OAuth setup, return navigation, public/private apps.

Unsupported Canva return signature (fixed in 2.0.2)

Canva's current signing keys are OKP/Ed25519 and editor return headers use EdDSA. Earlier PressFlow releases accepted only RS256. Install 2.0.2 or later, keep the query-free callback URL configured in both Canva settings, and open/return from the design again. Do not post complete callback URLs in public support channels.

Signature verification uses PHP Sodium, or WordPress's bundled Sodium compatibility library when the extension is unavailable. If neither can be loaded, PressFlow fails closed with a host/core-file explanation. Restoring verifier support does not require changing the Canva client secret. Signing keys come only from Canva's fixed HTTPS key endpoint; a missing cached key can trigger a bounded refresh during rotation. Account, app, design, expiry, flow ownership and one-use return checks remain active.

2. Prepare products

  • Configure Artwork checks with a confirmed finished size, bleed and sides/pages. The connector supports up to 16 pages. PressFlow must resolve a valid specification; it never guesses dimensions from an image or a nominal WooCommerce price.
  • Use Product data → General → Canva artwork to inherit the shop setting, allow Canva, or disable it for that product. A product override cannot bypass a disabled central connector or a company's restrictions.
  • Canva's new-document action imports a blank PDF with the selected full-bleed size and number of pages. It does not upload an existing customer's artwork automatically.
  • Check that the host provides PHP OpenSSL, fileinfo and mbstring. WordPress must be able to reach Canva over HTTPS and run cron for temporary-file cleanup.

For example, an 85 × 55 mm card with 3 mm bleed needs 91 × 61 mm PDF pages. Two sides need two pages. Canva artwork is checked against the PDF's full MediaBox, within 0.3 mm; extra crop-mark margins or an incorrect page count are rejected. PressFlow does not stretch or automatically resize a mismatched export.

3. Normal customer shopping

  1. Select the product, options, quantity and production date as usual.
  2. In Artwork, choose Use Canva.
  3. Choose Connect my Canva account and authorise your own account in the separate Canva window. The original product page and its choices stay open.
  4. Select an existing design, or choose Create document for this product.
  5. Edit in Canva and use its Return button. Resume / refresh can check an operation that is still running. Allow pop-ups for the shop if the editor cannot open.
  6. Choose Get PDF preview. PressFlow downloads and measures the export on the server, then displays its pages using the bundled local PDF viewer. An Open/download link is available when the browser cannot render the inline preview.
  7. Check every page, tick the confirmation and choose Use this PDF artwork.
  8. Save the print job, add it to the basket, or save the basket/order artwork panel. The PDF is attached only when that existing PressFlow action is completed.

The same control is used in product configuration, Quick Order and editable basket/ order artwork forms. Each committed job receives its own private PDF copy. Editing the original Canva design later does not change an existing order's artwork. To replace it, create and attach a fresh export through the permitted artwork-update workflow.

The customer can disconnect their personal Canva account in the dialog. Saved job PDFs remain subject to the shop's ordinary artwork retention; disconnecting Canva does not delete orders or their existing artwork copies. Changing size/pages invalidates a pending Canva attachment. Changing company, session or artwork destination requires a fresh authorised flow. After a long editing session expires, reopen Use Canva and select the saved design; the design itself is still in Canva. Canva actions do not change print prices, tax or checkout totals.

4. Company access and personal designs

Open B2B storefronts → Manage company → Brand templates → Canva templates. Company administrators can also use My Account → Company portal → Brand templates.

  1. Enable Canva for this company; it is off by default.
  2. Decide whether to also allow colleagues' personal Canva designs on products without a strict brand requirement. This is separate from the company's approved-template route.
  3. A printer or company administrator connects a company-owned Canva account with access to its Brand Templates and an eligible Autofill plan. Refresh the page after connecting.

Purchasers never receive the company's access token, design list or unrestricted editor. Company Autofill accepts approved text fields only and creates designs in the connected company account. Purchasers do not enter the company's Canva login. Confirm that the company's Canva plan/agreement permits this intended use before enabling it publicly; an API connection is not a promise of unlimited generation or seats for every purchaser.

Catalogue viewers cannot generate corporate artwork. Other companies cannot list, generate from, or attach these templates. The same company catalogue, branch/address, financial approval and credit rules apply after the artwork step.

5. Import and publish an approved Canva template

  1. In Canva, prepare a Brand Template with the exact full-bleed size and page count. Keep the fixed logo, graphics and brand formatting in the template.
  2. Tag the text areas that should change as Canva Autofill data fields. Use clear keys such as EMPLOYEE or TELEPHONE. Canva's Brand Template/Autofill documentation explains how to tag and publish these fields.
  3. In PressFlow's company Canva section, expand Import a company Canva template.
  4. Choose an approved product's starting specification, or an existing shared print job when another size/pages/options combination is needed. Enter its Canva Brand Template ID and choose Read Canva text fields.
  5. Select the permitted text fields. Give each a customer-facing label, representative sample text, maximum characters and required/optional setting. Other data types, arbitrary images, fonts and layout commands are not offered to purchasers.
  6. Save a draft for sample check. This does not publish it or impose a new product requirement yet.
  7. Choose Generate and check sample PDF on the draft. Inspect every page, branding, text fit, full bleed and production suitability. A recent successful sample from this exact template version is required before publication.
  8. Confirm the sample check and choose Publish checked Canva template. If selected, its required-product flag now prevents ordinary files, personal Canva designs and transfer links from substituting for approved template artwork.

Purchasers open the template's company-portal link, review its print choices, then choose Personalise Canva template. They enter only the approved values, generate the PDF, inspect it and attach it to the job. No personal Canva sign-in is required for that server-authorised company generation route.

Native PressFlow locked templates can coexist with approved Canva templates. Required products accept only trusted server-generated artwork from an approved route. Every job still needs artwork acceptance and approval of its current proof before production; financial approval and payment/authorised credit are separate checks.

Versions and retirement

Published versions cannot be edited in place. Import and check a new version when its field rules or source template changes. PressFlow compares Canva's source modification time/dataset and the connected account before generating/exporting. A changed source or account pauses generation until a fresh version is checked.

Retirement prevents new use. Existing ordered PDF copies keep their recorded version. Retiring the last template does not silently remove a strict brand requirement. Publish a replacement or deliberately clear the requirement in the company Brand templates settings. Up to 100 Canva template versions are retained per company.

  • Basic customer editing/export can use compatible free-account content. Premium assets and premium export settings require the calling account's entitlement.
  • Canva currently documents Autofill/Brand Templates for eligible Pro, Teams and Enterprise accounts. Availability and usage limits remain Canva's responsibility.
  • Regular/premium PDF export is not a guarantee of CMYK, PDF/X, embedded font behaviour, printable transparency or a particular resolution. The ordinary REST export API does not expose the separate Print Partnerships bleed/CMYK/PDF-X controls.
  • Approved text keys and character limits are enforced by PressFlow. Canva's text fitting and rendering remain governed by the Canva template. Configure them appropriately and inspect proofs; use native locked text templates when fixed font/overflow enforcement by PressFlow itself is required.
  • Requests are asynchronous and rate limited locally and by Canva. Slow operations can be resumed. PressFlow does not automatically retry a failed design-creation POST and create another design without a further user action. Template previews create actual designs in the connected Canva account and may consume provider quotas.
  • Export files must be a single PDF within the current PressFlow upload limit. Signed download addresses are used only server-side and are not retained as artwork links.

References: Autofill, PDF export, Print Partnerships export controls.

Troubleshooting

Recover an interrupted preview

Keep the original browser tab and customer session. Choose Resume / refresh if Canva is still preparing the file or the preview response was interrupted. A completed PDF is recovered from its private saved copy; this does not start another export. Closing/reopening the dialog or reloading this tab can restore the same flow for the remainder of its original one-hour lifetime. Browser session storage must be available for reload recovery. With storage disabled, Resume still works in the open dialog.

Review every page and confirm it again before attaching. If attachment succeeded on the server but its response was lost, repeat Use this PDF artwork. The same handoff is returned safely. A changed specification, another customer/company, expired flow, missing file or failed integrity check requires a fresh valid preview instead.

When an import has finished but its editor window was closed, choose the created document from your Canva designs and reopen it. Reload recovery does not recreate a closed editor window automatically.

Use RELEASE-ACCEPTANCE.md to record real-account acceptance.

ProblemWhat to check
Canva button missingCentral switch, app credentials, HTTPS, product override, Artwork checks and company policy.
Customer cannot authorise the appCanva public-app review/development access, exact registered callback URL and requested scopes.
Editor will not openAllow pop-ups; keep the original print page open.
Return button missingEnable Return navigation on the Canva app and register the exact displayed URL.
Return rejectedUse the initiating customer/session/account and the editor link created for this job; expired or replayed returns are rejected.
Wrong PDF dimensions/pagesDesign at full-bleed dimensions and the correct number of pages; remove extra crop-mark margins. No automatic scaling is performed.
HTTP 401Reconnect the relevant personal/company Canva account.
HTTP 403Check app approval, scopes, Canva account permissions and plan/asset entitlements.
HTTP 429 or busy messageWait before retrying. Resume a pending operation instead of repeatedly creating new documents.
Company template changedImport a fresh version, generate/check its sample, publish, then retire the old version.
Sample will not publishGenerate a successful sample of that exact draft within 24 hours and confirm that you checked it.
Required product cannot accept a file/linkUse an approved company template, or ask its manager to change the brand policy explicitly.
Connection unreadable after migrationKeep the WordPress authentication salts with the encrypted credentials, or re-enter app credentials and reconnect.

Privacy, retention, caching and staging checks

Canva is an optional external service. Connecting authorises requests on behalf of that account. Normal new-document creation sends a blank document; existing designs remain in Canva. Company Autofill sends the approved text values entered by the purchaser and stores generated designs in the connected company account. Describe this optional service in the shop's privacy information and use company-owned accounts appropriately.

App secrets, access and refresh tokens are encrypted using the site's authentication salt and stored in non-autoloaded options. They never appear in product HTML or browser requests to Canva's token API. Changing app credentials invalidates existing connections. Personal connections can be disconnected and are removed on user deletion or WordPress personal-data erasure. Company assets/accounts require company administration rather than one employee's personal-data erasure request. Guest connections are disconnected after 24 hours through cron. Canva's own connected-app settings can also revoke access.

Temporary artwork sessions last one hour, with at most five retained per actor. Cron removes temporary originals even if a transient has expired. Completed jobs hold their own copies under the shop's normal private-artwork retention policy. Unsaved artwork does not become an order automatically. Switching Canva off preserves saved PDFs, template versions and required-brand restrictions.

Keep logged-in/member pages, My Account, basket, checkout, AJAX/session routes and the callback out of page/CDN caches. Exclude pfw_canva_template product query requests and the /wp-admin/admin-post.php callback including Canva's return parameters. Keep the legacy pfw_canva_callback action uncached too. Exclude assets/canva.js from delayed-script execution if an optimiser prevents its first click, popup or dynamic PDF viewer from working. Existing PressFlow cache guidance still applies.

Before launch, use actual authorised Canva accounts on staging. Test a guest/customer, company administrator, purchaser, viewer and another company. Include both checkout interfaces; option/size/page changes; Quick Order; basket/order artwork replacement; expired/revoked connections; popup blocking; source-template changes; retirement; actual supplier print requirements; and the company approval/credit workflow. The included isolated tests do not replace installed WordPress or Canva app acceptance.

Need a hand?

Contact the PressFlow team with details of what you are trying to do.