Re: Functional Cross-Reference in PDF
Still this warning:
Warning! The following errors must be corrected before your message can be posted:
The selected file was too large to upload. The server didn't allow the upload.
You are not logged in. Please login or register.
QElectroTech → Code → Functional Cross-Reference in PDF
Still this warning:
Warning! The following errors must be corrected before your message can be posted:
The selected file was too large to upload. The server didn't allow the upload.
Problem is on server return -> 413 Request Entity Too Large
So put your code to github, and create tag after you can import big files under the tag, I don't know the limit size?
i got a bit of time. Here is the link
https://github.com/Kellermorph/QuerverweiseAppImage
i hope that i've done evertything right and it's working. It's my first time.
Please put your code on Github if you can, for us it's more esay to see which code changes!
It is very easy if you have git, ssh, etc on your setup, but I remenber you use macOS, so no problem!
On Terminal get your github repository
git clone https://github.com/Kellermorph/QuerverweiseAppImage.git
Now work in QuerverweiseAppImage folder with your IDE as usual,
but if you want use terminal:
for adding files or files changed use
git add file_name
git diff
what files was added or removed.
- it is removed
+ it is added
For upload your changes to your online Github branch, it's very easy.
git push
For refreshing your local repository.
git pull
The Code ist there. Its called "Querverweise.py".
Or did i Miss understand Something?
Btw i'm using Linux Mint.
Or did i Miss understand Something?
Same for me ....,
in first you talk avout QET 's code, now I see a python file, it 's me or then I need to return to bed for rest?
I can reassure you, Laurent:
I understood that differently, too!
Maybe it's also due to my poor English. I apologize for that.
I had first tried the source code via chatgpt. That was not successful. PLC-User then asked me to compile the code myself and give it a try. But in my current situation this is too complicated / time-consuming. That's why I've been looking for an alternative that can at least temporarily help me and possibly some others. I have written a small Python program (with the help of ChatGPT), which searches a finished exported circuit diagram (PDF) for cross-references and then links them. However, only to the page and not directly to the component.
Translated with DeepL.com (free version)
@scorpio810:
(...) forgot to Refresh hooks in attachments plugin....I'm tired!!!
Something's wrong with the forums' attachments, Laurent!
This afternoon, I attached a file and it was marked as "not allowed to download"
And now I don't see any attachment in the forum!
@plc-user,
I was able to fix my error...I re-imported the attached files from the rsnapthot backup and on the server for SQL database with phpMyAdmin I re imported the old ‘punbb_attach_files’ table for recreate these ‘indexes!
But the last backup was made yesterday at 15h00, so please put again your script, many sorry.
@scorpio810:
It's not just about the Registry-script:
It seems that many attachments are lost somehow!
If you look at this post from 20. February:
https://qelectrotech.org/forum/viewtopi … 099#p21099
There should be a png as attachment, but there is only a link!
When I follow the link, it says:
Bad request. The link you followed is incorrect or outdated.
Same here with post from 10. March
https://qelectrotech.org/forum/viewtopi … 220#p21220
Bad request. The link you followed is incorrect or outdated.
Auch, wenn Du den Text als Link markierst und den Text als Ziel-Adresse definieren kannst:
Das Ziel muss auch wissen, daß es Ziel ist, (...)
In the meantime, I have written a code that creates a position list with links and targets in the print module that can be used to insert PDF links.
I just haven't found anything in the Qt docs that explains what a link or a corresponding target should look like so that it works in the PDF file!
***** find positions for PDF-internal links...
XRef from page 3 QPoint(1380,620) to page 4 QPoint(120,440)
XRef from page 3 QPoint(1380,770) to page 4 QPoint(120,90)
XRef from page 3 QPoint(1380,640) to page 4 QPoint(120,420)
XRef from page 3 QPoint(1380,600) to page 4 QPoint(120,400)
XRef from page 3 QPoint(1380,790) to page 4 QPoint(120,110)
XRef from page 4 QPoint(120,90) to page 3 QPoint(1380,770)
XRef from page 4 QPoint(1320,90) to page 5 QPoint(120,90)
XRef from page 4 QPoint(120,110) to page 3 QPoint(1380,790)
XRef from page 4 QPoint(120,440) to page 3 QPoint(1380,620)
XRef from page 4 QPoint(1320,110) to page 5 QPoint(120,110)
XRef from page 4 QPoint(120,400) to page 3 QPoint(1380,600)
XRef from page 4 QPoint(120,420) to page 3 QPoint(1380,640)
XRef from page 5 QPoint(1380,90) to page 6 QPoint(120,90)
XRef from page 5 QPoint(120,90) to page 4 QPoint(1320,90)
XRef from page 5 QPoint(1380,110) to page 6 QPoint(120,110)
XRef from page 5 QPoint(120,110) to page 4 QPoint(1320,110)
XRef from page 6 QPoint(120,110) to page 5 QPoint(1380,110)
XRef from page 6 QPoint(1380,270) to page 8 QPoint(110,180)
XRef from page 6 QPoint(1380,440) to page 8 QPoint(110,440)
XRef from page 6 QPoint(1380,410) to page 8 QPoint(110,410)
XRef from page 6 QPoint(1380,240) to page 8 QPoint(110,210)
XRef from page 6 QPoint(120,90) to page 5 QPoint(1380,90)
XRef from page 8 QPoint(110,440) to page 6 QPoint(1380,440)
XRef from page 8 QPoint(110,180) to page 6 QPoint(1380,270)
XRef from page 8 QPoint(110,410) to page 6 QPoint(1380,410)
XRef from page 8 QPoint(110,210) to page 6 QPoint(1380,240)
There are also additional constraints such as fitting on the page or the print area. "Automagic" zoom factors are used here, which also have to be applied to the positions of the links and targets.
Hallo plc-user!
You could share a patch?
Based on the qt6-make branch with some more cleanup regarding Qt version checks.
By the way: I have to take a closer look at git-branches. How to use them and so ...
QElectroTech → Code → Functional Cross-Reference in PDF
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.045 seconds (49% PHP - 51% DB) with 12 queries