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

Were there any breaking changes between require adobe/pdfservices-node-sdk v2.2 and v3.0?

Explorer ,
Oct 25, 2022 Oct 25, 2022

Checking around I don't see any.

 

I'm returning back to a document which I haven't touched in months.  The json I am trying to pass is valid (console.log) before I create the payload and valid after (console.log) but a previously working tag is not rendering correct/any values. Really stumped.

 

TIA.  

 

 

TOPICS
AWS , Document Generation API , Node.js SDK
1.8K
Translate
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

correct answers 1 Correct answer

Adobe Employee , Oct 26, 2022 Oct 26, 2022

I stand corrected, it DOES work for me. It failed when Word inserted "smart" quotes. When I switched to NON smart quotes, it worked:

RaymondCamden_0-1666810491081.png

 

Translate
Adobe Employee ,
Oct 26, 2022 Oct 26, 2022

Nope, there shouldn't be. You said 'tag', so I assume you mean a Document Generation call. Can you share more details?

Translate
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
Explorer ,
Oct 26, 2022 Oct 26, 2022
Thanks for the quick response and look-see.

I've got some hashtags which I am passing to the docx template-->

const hashtags = fooHashtags.map((i) => '#' + i);

const compactedhashtags = hashtags.map(function (item) {
return item.replace(/\s+/g, '').toLowerCase();
});


sampleData = {

hashtags: compactedhashtags,
}


In the docx, using this to get all on one line, {{ $join(hashtags,", ") }} which used to return the expected result but now returns 'hashtags'
Translate
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
Explorer ,
Oct 26, 2022 Oct 26, 2022

Thanks for the quick response and look-see.

I've got some hashtags which I am passing to the docx template


const hashtags = fooHashtags.map((i) => '#' + i);

 

const compactedhashtags = hashtags.map(function (item) {
return item.replace(/\s+/g, '').toLowerCase();
});


sampleData = {
<other variables>
hashtags: compactedhashtags,
}


In the docx, using this to get all on one line, {{ $join(hashtags,", ") }} which used to return the expected result but now returns 'hashtags'.

Translate
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 ,
Oct 26, 2022 Oct 26, 2022

I can confirm it isn't working. Are you sure it did before? If so, I'll log the bug. Please note that in the meantime, you could just do the join in your code, w/ a reduce() call for example.

Translate
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 ,
Oct 26, 2022 Oct 26, 2022

I stand corrected, it DOES work for me. It failed when Word inserted "smart" quotes. When I switched to NON smart quotes, it worked:

RaymondCamden_0-1666810491081.png

 

Translate
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
Explorer ,
Oct 26, 2022 Oct 26, 2022

Thanks, I did the join in my code and back on track.

Translate
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
Explorer ,
Oct 26, 2022 Oct 26, 2022

A bit above my paygrade, but could there be any issues with Libreoffice and .docx formats re: picking up tags.  Or with AWS Lambda(?). There's an inconsistency I can't figure out. I came across another instance whereas a simple input is not being rendered.

 

I.E.

 

const totalBingIssues = Object.keys(
event.Payload.bingproof.flaggedTokens
).length;
 

# inputs: 

const sampleData = {
totalBingIssues: totalBingIssues
};

 

# console.log output:

2022-10-27T02:48:23.306Z INFO sampleData--> {
totalBingIssues: 9
}

 

# docx: thie tag remains, no results 

Our tools picked up {{totalBingIssues}} potential issues.

Translate
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
Explorer ,
Oct 26, 2022 Oct 26, 2022

*the

Translate
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 ,
Oct 27, 2022 Oct 27, 2022

Can you share your Word file and I'll see if I can recreate? Did you ever open the file in Word, or just LibreOffice?

 

FYI, the issue with smart quotes - I reported it internally.

Translate
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
Explorer ,
Oct 27, 2022 Oct 27, 2022

I am able to upload/open it to office 365 online and don't see any issues with the tag.  It's a Word 2007-265.docx format.

 

libreoffice 7.3.6.2 / ubuntu 22.04

 

 

Translate
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 ,
Oct 28, 2022 Oct 28, 2022

I'm not able to recreate this. Opened it in Word, set totalBingIssues to 9 in JSON, and it rendered just fine.

Translate
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
Explorer ,
Oct 28, 2022 Oct 28, 2022
LATEST

Wow, ok.  I'll tinker some more.  Thanks.  

Translate
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