• Resolved jcartea

    (@jcartea)


    Hello! I am really stuck and cannot find a solution to this issue anywhere! I hope someone will be able to us. We have created a WooCommerce shop on our website, and have added a few products. The products are downloadable file types with PDF form fields. The PDF files were created using Bluebeam Revu x64 eXtreme Version 2017.0.40. The PDF files created include the following form field types: Text Box and Check Box. Some of the Text Box form fields are pre-filled with sample text, use Calculation field, and Simplified field notation.

    Here is the issue:
    We completed test purchases of all the current files in our shop and then completed test downloads. Upon downloading, we discovered the following:

    -The files that only use plain Text Box form fields work fine, even if they are pre-filled with sample text.
    -The files that also use Check Box form fields had ALL of the form fields deleted from the downloaded PDF file, any sample text/sample checks became permanently embedded in the document, and the file was also automatically unlocked for editing.
    -The files that use plain Text Box form fields along with Text Box form fields that include calculations and simplified field notation had also had ALL of the form fields deleted from the downloaded PDF file, any sample text/sample checks became permanently embedded in the document, and the file was also automatically unlocked for editing.

    We have triple checked the PDF files in our Media Library, and they are the correct files. We have deleted the files and re-uploaded them again to ensure the correct PDF files are in our Media Library. We continuously get the same result with the same issues as noted above. We have no idea what to do at this point.

    To Recreate:
    Our shop is still set to test mode at https://www.miniriches.com/shop/. To recreate, go to the shop and complete a test purchase of the Chore Chart & Age Appropriate Tasks product. In the product images, you can see the pink form fields that should be present with the downloadable Chore Chart Fillable Form PDF file. Upon completing a test download of the Chore Chart Fillable Form PDF, you will find there are no form fields present in the document, the pre-filled sample text in the form fields has become permanent, and the document is unlocked for editing.

    System Status Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://miniriches.com
    Site address (URL): https://miniriches.com
    WC Version: 4.3.1
    REST API Version: ? 1.0.10
    WC Blocks Version: ? 2.7.2
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.3.1
    Log Directory Writable: ?
    WP Version: 5.4.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.20
    PHP Post Max Size: 260 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1g
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.41-84.1
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.3.1
    WC Database Prefix: wp_
    Total Database Size: 14.91MB
    Database Data Size: 13.23MB
    Database Index Size: 1.68MB
    wp_woocommerce_sessions: Data: 0.04MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_actionscheduler_logs: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_comments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_essb3_click_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_imagify_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_imagify_folders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_dynamic_segment_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_feature_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_forms: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_mapping_to_external_entities: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_newsletters: Data: 0.13MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_newsletter_links: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_mailpoet_newsletter_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_newsletter_option_fields: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_mailpoet_newsletter_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_newsletter_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_newsletter_templates: Data: 4.19MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_premium_newsletter_extra_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_scheduled_tasks: Data: 0.06MB + Index: 0.02MB + Engine MyISAM
    wp_mailpoet_scheduled_task_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_segments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_sending_queues: Data: 0.04MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_settings: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_statistics_clicks: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_mailpoet_statistics_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_statistics_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_statistics_opens: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_mailpoet_statistics_unsubscribes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_mailpoet_statistics_woocommerce_purchases: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_stats_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_subscribers: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_mailpoet_subscriber_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_subscriber_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_mailpoet_user_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_action_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_chunks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_field_meta: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_form_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_objects: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_object_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nf3_upgrades: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 1.87MB + Index: 0.08MB + Engine MyISAM
    wp_popularpostsdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_popularpostssummary: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_postmeta: Data: 0.69MB + Index: 0.08MB + Engine MyISAM
    wp_posts: Data: 0.20MB + Index: 0.14MB + Engine MyISAM
    wp_rank_math_404_logs: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_rank_math_internal_links: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_rank_math_internal_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rank_math_redirections: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rank_math_redirections_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rank_math_sc_analytics: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_relevanssi: Data: 0.14MB + Index: 0.23MB + Engine MyISAM
    wp_relevanssi_log: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_relevanssi_stopwords: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ta_link_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ta_link_clicks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_usermeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfconfig: Data: 0.46MB + Index: 0.01MB + Engine MyISAM
    wp_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wffilemods: Data: 2.91MB + Index: 0.40MB + Engine MyISAM
    wp_wfhits: Data: 0.41MB + Index: 0.07MB + Engine MyISAM
    wp_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfknownfilelist: Data: 1.60MB + Index: 0.17MB + Engine MyISAM
    wp_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wflogins: Data: 0.04MB + Index: 0.01MB + Engine MyISAM
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine MyISAM
    wp_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wfstatus: Data: 0.07MB + Index: 0.03MB + Engine MyISAM
    wp_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_campaign: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_campaign_list: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_email: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_email_user_stat: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_email_user_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_list: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_queue: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_url_mail: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_user: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wysija_user_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_user_history: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wysija_user_list: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yarpp_related_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yoast_indexable: Data: 0.07MB + Index: 0.03MB + Engine MyISAM
    wp_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_yoast_seo_links: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 78
    custom_css: 1
    customize_changeset: 1
    elementor_library: 15
    elementor-hf: 2
    jetpack_migration: 2
    mailpoet_page: 1
    nav_menu_item: 42
    page: 15
    post: 11
    product: 3
    shop_coupon: 2
    wp_block: 1
    wpforms: 4
    wysijap: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (23) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.6
    Astra Pro: by Brainstorm Force – 2.6.2
    Easy Social Share Buttons for WordPress: by CreoApps – 7.3
    Elementor Pro: by Elementor.com – 2.10.3
    Elementor: by Elementor.com – 2.9.14
    Erident Custom Login and Dashboard: by Libin V Babu – 3.5.8
    FileBird: by Ninja Team – 3.9
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.12.0
    Imagify: by WP Media – 1.9.10
    MailPoet 3 Premium (New): by MailPoet – 3.0.89
    MailPoet 3 (New): by MailPoet – 3.48.0
    Really Simple SSL: by Really Simple Plugins – 3.3.4
    Relevanssi: by Mikko Saari – 4.7.2.1
    Rank Math SEO: by Rank Math – 1.0.46
    Temporary Login Without Password: by StoreApps – 1.6.3
    ThirstyAffiliates: by ThirstyAffiliates – 3.9.3
    Ultimate Addons for Gutenberg: by Brainstorm Force – 1.16.1
    UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.26
    
    WooCommerce Stripe Gateway: by WooCommerce – 4.5.0 – Installed version not tested with active version of WooCommerce 4.3.1
    WooCommerce: by Automattic – 4.3.1
    Wordfence Security: by Wordfence – 7.4.10
    WP Rocket: by WP Media – 3.6.3
    WPS Hide Login: by WPServeur
    NicolasKulka
    tabrisrp – 1.5.6
    
    ### Inactive Plugins (3) ###
    
    PHP Compatibility Checker: by WP Engine – 1.5.0
    WordPress Popular Posts: by Hector Cabrera – 5.2.2
    Yet Another Related Posts Plugin (YARPP): by YARPP – 5.5.0
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    Endurance Page Cache: by Mike Hansen – 2.0.2
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #1681 - /shop/
    Cart: #1683 - /cart/
    Checkout: #1685 - /checkout/
    My account: #1687 - /my-account/
    Terms and conditions: #555 - /terms-and-conditions/
    
    ### Theme ###
    
    Name: Astra
    Version: 2.5.2
    Author URL: https://wpastra.com/about/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 33
    Oldest: 2020-07-24 02:12:06 +0000
    Newest: 2020-08-08 01:43:30 +0000
    
    

    I have switched themes, and searched for a plugin causing the issue, but did not have any luck. A huge thank you in advance for any help in resolving this issue!

    Thank you,
    Joe

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hey Joe,

    I wasn’t able to see the original PDF and what it was like, however I did place a test order and see the resulting PDF file.

    WooCommerce itself wouldn’t alter the file, but it’s possible WordPress is stripping some of the custom formatting from the file when you upload it.

    I just ran a test with this PDF file:
    https://foersom.com/net/HowTo/data/OoPdfFormExample.pdf

    I was able to offer that as a downloadable product and all fields worked normally. Can you try uploading that file to your site to see if all the fields work after purchasing? If they do, it would appear to be an issue with the formatting your third-party PDF editing program is using.

    Thread Starter jcartea

    (@jcartea)

    Hi Phil,

    After 2 weeks, I have found the solution! I feel like this was a super easy fix, even for someone like me who is not a developer and doesn’t really know CSS.

    It looks like the plugin Imagify was automatically optimizing the PDF files with Check Box form fields, and the ones with calculations and simplified field notations. On a whim, I clicked to Restore Original on the Attachment Details window in the Media Library for once of the PDF files I was having an issue with. That was the solution as everything works perfectly fine now. I don’t know how this went unfound when I spent what seemed like a ridiculous amount of time deactivating plugins one by one.

    In summary, it appears as though Imagify was auto-optimizing files upon upload, and the auto-optimization was stripping the form fields out of certain PDF files. All PDF form fields came back once the file was returned to its original condition. I completed a test purchase, and everything within the PDF file works perfectly.

    Thank you much for your response! I became burnt out with this issue. Your response prompted me to sit back down this morning to look at it once more.

    Thanks,
    Joe

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hey @jcartea So glad to hear you were able to find the source of that problem!

    If you haven’t already, I’d recommend reaching out to the developers of this “Imagify” plugin. They may have some options to exclude certain file types from their optimization.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce Deleting Form Fields From Downloadable Files’ is closed to new replies.