• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Strikethrough merge variable not retaining strike

New Here ,
Feb 14, 2023 Feb 14, 2023

Copy link to clipboard

Copied

Hi

We're using the Acrobat PDF Services API "Document Generation" to fill a Word document template with variables, and outputting a PDF.

 

Some of the merge tags include strikethroughs, (think a price being discounted shown as :

 

Was £100 Now £50
Our Word document would be

Was £{{price_was}} Now {{price_now}}

 

However when the PDF generates the strikethrough has been removed. Does the API support this?

TOPICS
Document Generation API , PDF Services API , REST APIs

Views

337

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 14, 2023 Feb 14, 2023

Copy link to clipboard

Copied

Hi @williamr41166379 ,

 

I was able to produce this effect. There isn't any reason you wouldn't be able to do this. More than likely it is something in Word. Sometimes things can be strange in Word it is stripping out styling, so try:

  1.  Add the Was: £{{BeforeTag}} 
  2. Add a space after the last }.
  3. Add the strikethrough for the tag and the space like this: {{BeforeTag}} .
  4. Then remove the space.

 

The other thing you can try is doing a character style.

 

BenVanderberg_0-1676401280959.png

BenVanderberg_1-1676401288195.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 16, 2023 Feb 16, 2023

Copy link to clipboard

Copied

LATEST

Hi @Ben Vanderberg , on behalf of @williamr41166379 ,  this has fixed it for us! Thank you for your help

Edward2843617869ec_0-1676540592044.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources