Roland Dreger
Contributor
Roland Dreger
Contributor
Activity
Mar 23, 2025
02:59 AM
Hi, I was just wondering the same thing. There is currently no way to run preflights via the API, is there? Are there plans to make this possible? I am thinking in particular of correction preflights, such as setting the PDF/UA marker (Accessibility) and the like. Roland
... View more
Feb 11, 2025
08:48 AM
Thanks for the clarification, Joel!
... View more
Feb 10, 2025
10:07 AM
Hello everyone! Adobe PDF Service API: HTML to PDF Input fields cannot be converted to PDF form fields, or can they? <input id="test-id" type="text" name="example" value="Predefined Value"> What I get is the value with an outline around it, but no form field. What I would like to have: Couldn't find anything about it. Roland
... View more
Feb 04, 2025
03:13 PM
I'm not going to try pagedjs after what you've written. Margins and page-break-before, - after is working fine. Maybe Adobe will extend this at some point.
... View more
Feb 04, 2025
09:15 AM
Thanks for the answer and your experience, good to know.
... View more
Feb 04, 2025
03:14 AM
Does anyone know which CSS paged media module properties are supported by HTML to PDF API? Is there documentation for this somewhere? Margins seems to work, boxes not: @page {
/* works */
margin-top: 15mm;
margin-bottom: 15mm;
margin-left: 15mm;
margin-right: 15mm;
/* no result */
@bottom-center {
content: "– " counter(page) " –";
}
} Or better work with pagedjs. Thanks Roland
... View more
Dec 16, 2024
01:13 PM
No special settings. Only Interactive PDF and “Create PDF with tags”. You get the same result, don't you?
... View more
Dec 16, 2024
01:10 PM
This (I'll call it) bug is certainly a rare case and apparently only occurs with documents that previously contained an XML structure. But there is also a practical relevance. If this is not dealt with, a check (in this case PAC) results in an error: "Alternative text missing for 'Figure' structure element" But of course, curiosity also plays a role here.
... View more
Dec 15, 2024
02:38 PM
Define "not normal". By @Robert at ID-Tasker Normal is perhaps the wrong term. But look in the layer palette, there the two rectangles differ in their automatically assigned names. The tag behavior is different when exporting. If you create an IDML and open a document from it, “Rectangle” appears again in the layer palette. So they are obviously different, but not in the script properties. And I think that's strange.
... View more
Dec 15, 2024
02:25 PM
Here are some screenshots But don't do too much work. It's a special case. And I'd just be interested to know how you can identify these special items.
... View more
Dec 15, 2024
02:21 PM
1 Upvote
In principle, I just want to identify these specific spline items. I get an unknown document, loop through the items and analyze them. These items that are not “normal” should be listed. The reason is that they are treated differently when exported to a tagged PDF. InDesign: PDF
... View more
Dec 15, 2024
02:18 AM
Hi Mark, hi Eugene, thank you for your investigation. My use case: Before the PDF export, it should be checked whether a tag (tagged PDF) is exported for an object. I would prefer not to change anything in the document during this check, otherwise it could potentially irritate the users. But for an action to correct these issues, this is a good idea. Possibly also check whether an XML element is still associated with the object. Roland
... View more
Dec 14, 2024
01:14 PM
Thank you for your answer. That's right, you can convert it back to its original state. But what I want to find out is how these two states of the rectangle can be distinguished at script level. Both are rectangle frames, both have (it seems) the same script properties and are the same in IDML. Only one rectangle was tagged once (XML) and the tag removed again. Background, why I want to find out: one rectangle is tagged when exporting a PDF, the other is not.
... View more
Dec 14, 2024
08:18 AM
Hi all, does anyone have any idea how to differentiate between these two rectangles using ExtendScript. About the creation process: An XML tag was assigned to the lower rectangle, which was then removed. This way, the appearance in the layer palette can be recreated. They do not differ in IDML. Thus, the lower element becomes a “normal” rectangle when the IDML file is opened. Thanks for any hints Roland
... View more
Oct 22, 2024
09:50 AM
Hi Sunil, I know I'm late to the party. But as a separator of group and style in the aid:pstyle attribute you can use the Charater U+E00B A requirement for the correct assignment is that the group and the style already exist in the InDesign document, i.e. InDesign does not create the group by XML import if not. Works for me in InDesign 2024. An example is attached. Roland
... View more
Aug 26, 2024
02:47 PM
With PDFjs from Mozilla you can get the ALT texts: Page.getStructTree() https://github.com/mozilla/pdf.js But: The paths that PDF Extract API provides correspond to the reading order in the PDF. With the getStructTree method from PDFjs, however, you get the tag structure tree in the PDF. The order does not have to match. Roland
... View more
Aug 01, 2024
02:58 AM
Hi all, if I am correct, there is currently no way to get the ALT text of an image via the PDF Extract API? You get the content, the images and the path of the object in the structure tree. Does anyone know if this is planned for the future? Thanks Roland
... View more
Jul 16, 2024
11:42 PM
Sometimes it helps to check with “properties”, e.g. Cell.properites.overflows or using Cell.recompose()
... View more
May 16, 2024
07:12 AM
I have discovered the same issue and I would also say that this is a bug in the generated code. https://files.mastodon.social/media_attachments/files/112/345/333/359/158/515/original/1840a96d5408b89e.mp4 https://mastodon.social/@rolanddreger/112345356612982742 Roland
... View more
Mar 03, 2024
02:02 PM
2 Upvotes
Hello, the namespace was the right hint. The elements here are in the default namespace. Alternatively, you can also set it: setDefaultXMLNamespace(xmlData.name().uri); and then reset it e.g. in finally: } finally {
setDefaultXMLNamespace("");
} Roland
... View more
Nov 21, 2023
07:28 AM
3 Upvotes
Hi Monisha, you can use xPath from E4X, for example: var imageTypes = myXMLDefaults.xpath("//image_type");
var firstImageFile = imageTypes["*"]["@IMAGE_FILE"][0]; or var imageFiles = myXMLDefaults.xpath("//image_type/*/@IMAGE_FILE");
$.writeln(imageFiles.length()); Roland
... View more
Nov 01, 2023
11:16 AM
Hi Mike You can only read out what the font manufacturer has written in. Font manufacturer and foundry may not always be the same. You can try it yourself with your fonts here: https://fontdrop.info Roland
... View more
Nov 01, 2023
09:25 AM
2 Upvotes
Hi Manan, in UXP, the font file can be read as an ArrayBuffer and parsed with a special library, e.g. opentype.js. Roland
... View more
Oct 31, 2023
03:39 PM
1 Upvote
You can also read out additional information via the font file. However, not all entries are available for every font. Example: Myriad Pro Bold Font Family: Myriad Pro Font Subfamily: Bold Full Name: MyriadPro-Bold PostScript Name: MyriadPro-Bold Unique ID: 2.102;ADBE;MyriadPro-Bold;ADOBE Version: Version 2.102;PS 2.000;hotconv 1.0.67;makeotf.lib2.5.33168 Manufacturer: Adobe Systems Incorporated Manufacturer URL: http://www.adobe.com/type Designer: Robert Slimbach and Carol Twombly Trademark: Myriad is either a registered trademark or a trademark of Adobe Systems Incorporated in the United States and/or other countries. Copyright: © 1992, 1994, 1997, 2000, 2004 Adobe Systems Incorporated. All rights reserved. License URL: http://www.adobe.com/type/legal.html But I don't know any existing script either. That would have to be created individually. Roland
... View more
Dec 13, 2022
12:35 PM
1 Upvote
You can try createContainerItem() and setProperty(). Here is an example. Roland
... View more
Sep 24, 2022
07:07 AM
1 Upvote
Thank you for sharing your story Andrea, this is really a great inspiration and motivation. Roland
... View more
Apr 23, 2022
12:53 PM
2 Upvotes
Hello, you could try appliedParagraphStyle.jsx or appliedFont.jsx for your purpose. The scripts are written for CS6, but they should also run in the current versions. Roland
... View more
Oct 13, 2021
04:03 AM
1 Upvote
What about WordPress as CMS? There are already open source solutions for this use case, e.g. press2id. Here an short article how to connect the CMS Kirby with InDesign. With EasyCatalog you can connect InDesign to a database. Roland
... View more
Sep 22, 2021
08:31 AM
Hi, unfortunately no. The script is already quite outdated. I would have to adapt it to the current InDesign versions and rework the Word transformation. Roland
... View more
Jun 29, 2021
02:18 AM
Addendum: My version of the workaround works for single replacements via UI but unfortunately not with changeGrep in the script. 🙁
... View more